<!-- 
 
  var BadData = false;  //bad data trip wire
  var errMsg = "";  //error message string

function Errors(strE) {
//error message string builder
  errMsg = errMsg + "\n" + strE;
  BadData = true;
}

function addrCheck(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) {
    Errors(eName + ": contains an invalid E-mail extension"); 
	//remove for > sendonly mail
	document.eForm1.txtFrom.select();
  }
  // check for @ symbol
  if (strAddr.indexOf("@") == -1) {
    Errors(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"; }
      Errors(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 = "";
  BadData = false;
  var fromAddress = document.eForm1.txtFrom.value; 
// alert("hi");
  //CName check
  if (document.eForm1.txtCName.value == "" ) {
    Errors("Contact Name required");
	document.eForm1.txtCName.select();    
  }  
    //CNumber check
  if (document.eForm1.txtCNumber.value == "" ) {
    Errors("Contact Number required");
	document.eForm1.txtCNumber.select();    
  }  
    //body check
  if (document.eForm1.txtMessage.value == "") {
    Errors("Message required");
	document.eForm1.txtMessage.select();    
  }  

  // zero length email address check
  if (fromAddress == "") { 
    Errors("Missing E-mail Address");
	document.eForm1.txtFrom.focus();
  }  
  
  // address check
  if (fromAddress != "") { addrCheck2(fromAddress,"From"); }
  
   // zero length CITY check
  if (document.eForm1.txtCity.value == "") { 
    Errors("City required");
	document.eForm1.txtCity.focus();
  }  
  
     // no STATE check
  if (document.eForm1.selState.selectedIndex == 0) { 
    Errors("State required");
	document.eForm1.selState.focus();
  }  
  
       // no Country check
  if (document.eForm1.selCountry.selectedIndex == 0) { 
    Errors("Country required");
	document.eForm1.selCountry.focus();
  }  
  
   // Null Budget check
  if (document.eForm1.selBudget.selectedIndex == 0) { 
    Errors("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("TMRUS") !=  -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 formCheck() {
//all form field check
  errMsg = "";
  BadData = false;
  var fromAddress = document.eForm1.txtFrom.value; 

  //body check
  if (document.eForm1.txtMessage.value == "Your message goes here!" | 
      document.eForm1.txtMessage.value == "") {
    Errors("Comment required");
	document.eForm1.txtMessage.select();    
  }  

  // zero length E-mail address check
  if (fromAddress == "") { 
    Errors("Missing E-mail address");
	document.eForm1.txtFrom.focus();
  }  
  
  // address check
  if (fromAddress != "") { addrCheck(fromAddress,"From"); }
  
  // 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("tmrus.com") !=  -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 selMe(itsme) {
  itsme.select();
}

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";		      
	}
}

function contact_tmrus() {
// description send quick mail message
  popwin=window.location = "/contact/frmcomment.asp";
}

function info_us() {
// description send information request email
  popwin=window.location = "/contact/frminfo.asp";
}

function refer_us() {
// description send a referal E-mailmessage to a friend
  popwin=window.location = "/contact/frmRefer.asp";
}

var st = "";
var gs = "";

/*  noscript causes failure:  void code
function goFish() {	
	st = document.getElementById("search");
    st2 = st.value;
	if((st2=="")||(st2<"a")){
		alert("Please enter at least one keyword!    ");
		st.focus();
		st.select();
	}
	else
	{
  document.form1.submit();
		//gs = "http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=" + st2;
		//newwindow = window.open(gs,"","toolbar,resizable,scrollbars,width=500,height=500");
	}

}  */

function focusSearch() {
  document.form1.search.focus();
}

//-->