// resets page with new variable from dropdown menufunction loadPage(theform,theselect) {	show = eval("document."+theform+"."+theselect+"[document."+theform+"."+theselect+".selectedIndex].value");	if (show!="") {		newpage = window.location.pathname+"?page=" + show;		window.location = newpage;	}}// checks window size (for correct positioning on home page with small monitors)function getWinSize() {  myWidth = 0, myHeight = 0;  if( typeof( window.innerWidth ) == 'number' ) {    //Non-IE    myWidth = window.innerWidth;    myHeight = window.innerHeight;  } else if( document.documentElement &&      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {    //IE 6+ in 'standards compliant mode'    myWidth = document.documentElement.clientWidth;    myHeight = document.documentElement.clientHeight;  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {    //IE 4 compatible    myWidth = document.body.clientWidth;    myHeight = document.body.clientHeight;  }  //window.alert( 'Width = ' + myWidth ); // window.alert( 'Height = ' + myHeight );}function browserStyle(btn) {	  if (ie) {         thisObj = eval("document.all." + btn + ".style");      }      if (nn) {        thisObj = eval("document.layers." + btn + ".style");      }      if (dom) {         thisObj = eval("document.getElementById." + btn + ".style");      }      return thisObj;}function buttonChange(btn,clr) {	btnStyle = browserStyle(btn);	btnStyle.backgroundColor=clr;}// script for spawning new windowfunction openWindow(page,windowName,width,height,tools) {	switch (tools) {		case "all":			showTools = ",resizable=yes,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes";			break;		case "none":			showTools = ",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no";			break;		case "size":			showTools = ",resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes";			break;		default:			showTools = ",resizable=yes,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes";	}    if (nn) {        adjWidth = width + 16;        adjHeight = height + 16;    } else {        adjWidth = width + 16;        adjHeight = height + 16;    }    myWin = window.open(page,'windowName','width=' + adjWidth + ',height=' + adjHeight + showTools);        // if window has already been opened and is behind main window, bring to front	if (!myWin.focus()) {		myWin.focus();	}}