<!--
// browser test:
agent = navigator.userAgent
browserVer = 2
if (agent.indexOf("a/3",6) == -1) {browserVer = 2}
else {browserVer = 1}
if (navigator.appVersion.charAt(0)>=3) {browserVer = 1}

// preload universal images:
if (browserVer == 1) {
moreOn = new Image(120,21);
moreOn.src = "images/moreOn.gif";
moreOff = new Image(120,21);
moreOff.src = "images/moreOff.gif";
}
function hiLite(imgDocID,imgObjName) {
// manages mouseOver animations
//   imgDocID - the name or number of the document image to be replaced
//   imgObjName - the name of the image object to be swapped in

if (browserVer == 1) {
document.images[imgDocID].src = eval(imgObjName + ".src")
}}


function isBlank(val){
	if(val==null){return true;}
	for(var i=0;i<val.length;i++) {
		if ((val.charAt(i)!=' ')&&(val.charAt(i)!="\t")&&(val.charAt(i)!="\n")&&(val.charAt(i)!="\r")){return false;}
		}
	return true;
	}


function submitForm(){
    var errMessage = '';
// required field:
      if (isBlank(document.MyContact.RequestorName.value)){
        errMessage = errMessage + 'First Name is required\n';
    }
      if (isBlank(document.MyContact.Email.value)){
        errMessage = errMessage + 'Email is required\n';
    }
  	if (!isEmail(document.MyContact.Email.value)){
		errMessage = errMessage + 'Email Address is not valid.\n';
	}  
    //print out errors or submit        
    if (errMessage!=""){
        alert(errMessage);
    }
    else {
    	document.MyContact.submit();
    }
}

function showHide(div){
    //document.all[div].style     
    obj = document.getElementById(div).style   
    // If Style.Display is Block (Visible) then set it to None (Not-Visible) 
	if(obj.display=='block'){
        obj.display='none';
    }
   // Else set Style.Display to Block (Visible) 
	else {
        obj.display='block';
    }
}

function DoShow(div){
    obj = document.getElementById(div).style;
    obj.display='block';
}


function DoHide(div){
    obj = document.getElementById(div).style;
    obj.display='none';
}

function showPic (whichpic) {
 if (document.getElementById) {
  document.getElementById('MainImage').src = whichpic.href;
  document.location.href = "#top"
  return false;
 } else {
  return true;
 }
}

function ImageCloseup(ThisImageID){
	var ThisImgSRC = document.images[ThisImageID].src
	
	var newURL = '/image.asp?FileName=' + ThisImgSRC
	newWindow=window.open(newURL, "ImageWindow", "toolbar=no,status=no,location=no,menubar=no,left=10,top=10,width=820,height=560,scrollbars=yes,resizable=yes");
	newWindow.focus();
}

function jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
// -->
