onload="PreloadMenu()"

var browser = "";
var browsername = navigator.appName;
var browserversion = parseInt(navigator.appVersion);
if (browsername == "Netscape") {
    browser = "ns" + browserversion;
} else {
    if (browsername == "Microsoft Internet Explorer") {
        if (browserversion >= 4) {
            browser = "ie" + browserversion;
        } else {
            browser = "ie3";
        }
    }
}

function popNav(url,name,features) {
   if ((browser == "ns3","ns4") || (browser == "ie4")) {
   popBox = window.open(url,name,features);
   //popBox.focus();
     } else {
          if (browser == "ie3") {
          popBox = window.open(url,name,features);
          }  
   }
}

function OpenScreenShotWindow (sWindowName, imgHeight){
	var screenHeight = imgHeight + 85;
	var screenWidth = (browser.substring(0,2) == "ie") ? 505 : 520;
	popNav('screens.html',sWindowName,'scrollbars=no,resizable=no,width=' + screenWidth + ',height=' + screenHeight)
}

function Swapimages(objImgName,sImgName) {
	if (document.images) {document.images[objImgName].src = sImgName}
}

function WM_preloadimages() {
  // Don't bother if there's no document.images
  if (document.images) {
    if (typeof(document.WM) == 'undefined'){
      document.WM = new Object();
    }
    document.WM.loadedimages = new Array();
    // Loop through all the arguments.
    var argLength = WM_preloadimages.arguments.length;
    for(arg=0; arg<argLength; arg++) {
      // For each arg, create a new image.
      document.WM.loadedimages[arg] = new Image();
      // Then set the source of that image to the current argument.
      document.WM.loadedimages[arg].src = WM_preloadimages.arguments[arg];
    }
  }
}

function PreloadMenu() {
	WM_preloadimages('images/selBall.gif');
}

function validateEmailForm() {
    if ( document.email.msg.value.length == 0 ) {
		if ( confirm("You haven't typed anything yet. Do you want to continue?")) {
		    return true;
		} else {
			return false;
		}
    } else {
		 return true;
    }
}