var myimages=new Array()
function preloadimages(){
for (i=0;i<preloadimages.arguments.length;i++){
myimages[i]=new Image()
myimages[i].src=preloadimages.arguments[i]
}
}


function Hilite(name,over)
{
	if(window.document.images) 
	{
		if (over)
			window.document.images[name].src = "images/" + name + "_ov.gif";
		else
			window.document.images[name].src = "images/" + name + ".gif";
	}
}
  
  
  function Info_Validator(theForm){
  if (theForm.contact.value == ""){
    alert("You must enter a name in the 'Contact Name' field.");
    theForm.contact.focus();
    return (false);
  }
  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ";
  var checkStr = theForm.contact.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++){
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
      if (j == checkOK.length){
        allValid = false;
        break;
      }
  }
  if (!allValid){
    alert("Please enter only letters in the 'Contact Name' field.");
    theForm.contact.focus();
    return (false);
  }

  if (theForm.business.value == ""){
    alert("You must enter a name in the 'Business Name' field.");
    theForm.business.focus();
    return (false);
  }	
  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ";
  var checkStr = theForm.business.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++){
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
      if (j == checkOK.length){
        allValid = false;
        break;
      }
  }
  if (!allValid){
    alert("Please enter only letters in the 'Business Name' field.");
    theForm.business.focus();
    return (false);
  }

   if (theForm.email.value == "")
  {
    alert("Please enter a value for the 'E-Mail' field.");
    theForm.email.focus();
    return (false);
  }

  if (!isEmailAddr(theForm.email.value))
  {
    alert("Please enter a complete email address in the form: yourname@yourdomain.com");
    theForm.email.focus();
    return (false);
  }
   
  if (theForm.email.value.length < 3)
  {
    alert("Please enter at least 6 characters in the 'E-Mail' field.");
    theForm.email.focus();
    return (false);
  }

}