function menu2Select(theform) {
   parent.contents.location.href = theform.page2Select.options[theform.page2Select.selectedIndex].value; 
   parent.contents.focus();
}

function popWin(URL,features) {
   openWindow(URL,"_new",features);
}

function openWindow(URL,name,features) {
// possible features: (comma delimited) 
//   numeric: width height
//   yes/no: titlebar menubar resizable locationbar personalbar=no   
//   var newWin = open(URL,'_new',features);
   if (!window.newWin) {
      // has not yet been defined
      newWin = window.open(URL,name,features);
   }
   else {
      // has been defined
      if (!newWin.closed) {
         // still open
         newWin = window.open(URL,name,features);
         newWin.focus();
      }
      else {
         newWin = window.open(URL,name,features);
      }
   }
}

function openWindowMaximized( aURL, aWinName, features ) {
   var wOpen;
   var sOptions;

   sOptions = features;
   sOptions = sOptions + ',width=' + (screen.availWidth - 10).toString();
   sOptions = sOptions + ',height=' + (screen.availHeight - 122).toString();
   sOptions = sOptions + ',screenX=0,screenY=0,left=0,top=0';

   wOpen = window.open( '', aWinName, sOptions );
   wOpen.location = aURL;
   wOpen.focus();
   wOpen.moveTo( 0, 0 );
   wOpen.resizeTo( screen.availWidth, screen.availHeight );
   return wOpen;
}

function BrowserOK () {
   if (navigator.appName == "Netscape") {
      if (navigator.appVersion.substring(0, 1) >= 5) {
         return true; }
   } else if (navigator.appName == "Microsoft Internet Explorer") {
      if (navigator.appVersion.substring(0, 1) >= 4.0) {
         return true; }
   } else {
      return false;
   }
}

function toggle(divId) {
   if (document.getElementById(divId).style.display == null) document.getElementById(divId).style.display = "";
   document.getElementById(divId).style.display == "" ? document.getElementById(divId).style.display = "none" : document.getElementById(divId).style.display = "";
   return false;
}
