package preferences
#######################################################################
# java images/scripts
#######################################################################
# the _javalinks_ macros are the flashy image links at the top right of
# the page. this is overridden here as we don't want a 'preferences'
# link on this page
_javalinks_ {_imagehome__imageabout__imagehelp_}
_javalinks_ [version=text] {
_imagehome_
_imageabout_
_imagehelp_
}
#######################################################################
# scripts
# note that changing either the "m" or the "o" argument
# from the preferences page necessitates reseting the "r"
# argument to 1
#######################################################################
_pagescriptextra_ {
// preferences scripts generated from \_preferences:pagescriptextra\_
savedhrefs = new Object();
k\_arg = "";
s\_arg = "";
m\_arg = "";
o\_arg = "";
function initialize () \{
for (i = 0; i < document.links.length; i++)
savedhrefs[i] = document.links[i].href;
\}
function update\_hrefs () \{
for (i = 0; i < document.links.length; i++)
document.links[i].href = savedhrefs[i] + k\_arg + s\_arg + m\_arg + o\_arg;
\}
function k\_update (value) \{
if (value != _cgiargk_) k\_arg = "&k=" + value;
else k\_arg = "";
update\_hrefs();
\}
function s\_update (value) \{
if (value != _cgiargs_) s\_arg = "&s=" + value;
else s\_arg = "";
update\_hrefs();
\}
function m\_update () \{
value = document.PrefForm.m.options[document.PrefForm.m.selectedIndex].value;
if (value != _cgiargm_) m\_arg = "&r=1&m=" + value;
else m\_arg = "";
update\_hrefs();
\}
function o\_update () \{
value = document.PrefForm.o.options[document.PrefForm.o.selectedIndex].value;
if (value != _cgiargo_) o\_arg = "&r=1&o=" + value;
else o\_arg = "";
update\_hrefs();
\}
function l\_update () \{
value = document.PrefForm.l.options[document.PrefForm.l.selectedIndex].value;
location.href = location.href + k\_arg + s\_arg + m\_arg + o\_arg + "&l=" + value;
\}
function v\_update () \{
value = document.PrefForm.v.options[document.PrefForm.v.selectedIndex].value;
location.href = location.href + k\_arg + s\_arg + m\_arg + o\_arg + "&v=" + value;
\}
}
#######################################################################
# headers
# these are overridden so we can put an onLoad event handler
# in the
} ####################################################################### # https ####################################################################### _httpiconhpref_ {_httpimg_/h\_pref.gif} _httpiconhpref_ [language=mi] {_httpimg_/mh\_pref.gif} _widthhpref_ {200} _widthhpref_ [language=mi] {220} _heighthpref_ {57} ####################################################################### # icons ####################################################################### _iconthispage_ {