<!-- svm
 
  var BadData = false;  //bad data trip wire
  var errMsg = "";  //error message string

function Errors2(strE) {
//error message string builder
  errMsg = errMsg + "\n" + strE;
  BadData = true;
}

function addrCheck2(strAddr,eName) {
//email address Extens1ion checker
  var Extens1 = new Array(".com",".org",".net",".mil",".gov",".local",".ctc",".edu",".wa",".ca",".uk",".jp");
  strAddr = String(strAddr).toLowerCase();
  var badExtens1 = 0;
  for (i=0; i < Extens1.length; i++) {
    if (strAddr.indexOf(Extens1[i]) == -1) {
      badExtens1 = badExtens1 + 1;
	}
  }
  if (badExtens1 == Extens1.length) {
    Errors2(eName + ": contains an invalid E-mail extension"); 
	//remove for > sendonly mail
	document.eForm1.txtFrom.select();
  }
  // check for @ symbol
  if (strAddr.indexOf("@") == -1) {
    Errors2(eName + ": requires an @ symbol");
	//remove for > sendonly mail
	document.eForm1.txtFrom.select();	
  }  
  // valid characters check
  var validchars = "abcdefghijklmnopqrstuvwxyz0123456789@~.-!";  
  for (i=0; i < strAddr.length; i++) {
    var letter = strAddr.charAt(i).toLowerCase();
    if (validchars.indexOf(letter) == -1) {
	  if (letter == " ") { letter = "blank space"; }
      Errors2(eName + " contains invalid character: " + letter);
	  //remove for > sendonly mail
  	  document.eForm1.txtFrom.select();	  
      break;
    } //end if-then
  } //end loop  

}

function formCheckInfo() {

//all form field check
  errMsg = "";
  var bContact=0;
  BadData = false;
  var fromAddress = document.eForm1.txtFrom.value; 
// alert("hi");
  //CName check
  if (document.eForm1.txtCName.value == "" ) {
    Errors2("Contact Name required");
	document.eForm1.txtCName.select();    
  }  
    //CNumber always required check 
  if (document.eForm1.txtCNumber.value != "" ) {
	bContact=1;
  }
  else
  {
	document.eForm1.txtCNumber.select();    
  }  
    //body check
  if (document.eForm1.txtMessage.value == "") {
    Errors2("Message required");
	document.eForm1.txtMessage.select();    
  }  

  // zero length email address check
  if (fromAddress == "") { 
	document.eForm1.txtFrom.focus();
  }  
  
  // address check
  if (fromAddress != "") { 
    addrCheck2(fromAddress,"eMail");
  }
  else
  {
     if (bContact==0) { 
	    //contact email or phone required if no email address present
	    Errors2("eMail Address or Phone Number required");
	    document.eForm1.txtCNumber.select(); 
	 }
   }
  
   // zero length CITY check
//  if ((document.eForm1.txtCity) && (document.eForm1.txtCity.value == "")) { 
//    Errors2("City required");
//	document.eForm1.txtCity.focus();
//  }  
  
     // no STATE check
  if ((document.eForm1.selState) && (document.eForm1.selState.selectedIndex == 0)){ 
    Errors2("State required");
	document.eForm1.selState.focus();
  }  
  
       // no Country check
  if ((document.eForm1.selCountry)&&(document.eForm1.selCountry.selectedIndex == 0)) { 
    Errors2("Country required");
	document.eForm1.selCountry.focus();
  }  
  
   // Null Budget check
  if ((document.eForm1.selBudget)&&(document.eForm1.selBudget.selectedIndex == 0)) { 
    Errors2("Budget required");
	document.eForm1.selBudget.focus();
  }  
    
  // error message
  if (BadData) { 
    errHead = "The following errors occured while processing your E-mail request:    " + "\n";
	errMsg = errHead + errMsg;
    alert(errMsg);
	return false;
  }
  //wraparound check
  if (fromAddress.indexOf("SKYVALLEYMARINE") !=  -1) {
    stx =  "Are you sure that you want to send a message  \n" + 
	                 "that's supposed to be from " +  fromAddress + "?"
    if (!confirm(stx)) {
	document.eForm1.txtFrom.select();
	return false;
	}
  }
   stx = "Are you sure?"
   if (!confirm(stx)) {
	  return false;
	}  
	
//  set VIP to client IP Address from ASP code
 document.eForm1.VIP.value = document.frmUNV.sVIP.value;

} // end formCheck function


function errCorrect() {
  var ms = false;
  var nn = false;
  ms = (navigator.appName.substring(0,9) == "Microsoft");
  nn = (navigator.appName.substring(0,8) == "Netscape");	
  var vers = (navigator.appVersion.substring(0,1));	
	if (nn) {
	//netscape user
	  if (vers >4) {
		  document.eForm1.txtFrom.style.fontSize = "11px";
		  document.eForm1.txtFrom.style.width = "293px";	  
		  document.eForm1.txtFrom.style.fontFamily = "arial";	
		  document.eForm1.btnSend1.style.height = "20px";
		  document.eForm1.btnClear.style.height = "20px";		  			  
		  document.eForm1.txtMessage.style.cols = "55px";	  
		  document.eForm1.txtMessage.style.fontSize = "11px";	  
		  document.eForm1.txtMessage.style.fontFamily = "arial";	    
		  document.eForm1.txtMessage.style.width = "376px";	
      }
	}
	else
	//not netscape
	{
	  document.eForm1.txtFrom.style.fontSize = "11px";
	  document.eForm1.txtFrom.style.width = "300px";		  
	  document.eForm1.txtFrom.style.fontFamily = "arial";	
	  document.eForm1.txtMessage.style.cols = "55px";
	  document.eForm1.txtMessage.style.fontSize = "11px";	  
	  document.eForm1.txtMessage.style.fontFamily = "arial";	
	  document.eForm1.txtMessage.style.width = "370px";		      
	}
}

//called on page load
function focusSearch() {
//  document.eForm1.txtFrom.focus();
}

//this script creates a popup window function 
//parapeters include the target window and the window height & width
//after 30 seconds the window will close line is commented out
function pop_win(url,w,h) {
    if((w==0)||(h==0)) {
	  h=300; w=250;
	}
    strXY = "width=" + w + "," + "height=" + h
    //url is appended to popup path
    //url = "_popups/" + url 
	msgWindow=window.open(url,'myWindow',strXY);
    window.setTimeout("msgWindow.close()",30000);
}
//-->