<!--
function Validator(theForm)
{
 if (theForm.FirstName.value == "")
  {
    alert("Please enter a value for the \"First Name\" field.");
    theForm.FirstName.focus();
    return (false);
  }
  if (theForm.LastName.value == "")
  {
    alert("Please enter a value for the \"Last Name\" field.");
    theForm.LastName.focus();
    return (false);
  }
   if (theForm.Company.value == "")
  {
    alert("Please enter a value for the \"Company\" field.");
    theForm.Company.focus();
    return (false);
  }  
   if (theForm.Phone.value == "")
  {
    alert("Please enter a valid \"Phone\" Number. Format (AREA)123-4567");
    theForm.Phone.focus();
    return (false);
  }
   if (theForm.Phone.value.length < 8)
  {
    alert("Please enter a valid \"Phone\" Number. Example: 949-123-4567! ");
    theForm.Phone.focus();
    return (false);
  }
   if (theForm.Address.value == "")
  {
    alert("Please enter a value for the \"Street Address\" field.");
    theForm.Address.focus();
    return (false);
  }
   if (theForm.City.value == "")
  {
    alert("Please enter a value for the \"City\" field.");
    theForm.City.focus();
    return (false);
  }
  if (theForm.State.selectedIndex < 0)
  {
    alert("Please select one of the \"State\" options.");
    theForm.State.focus();
    return (false);
  }
  if (theForm.State.selectedIndex == 0)
  {
    alert("The first \"State\" option is not a valid selection.  Please choose one of the other options.");
    theForm.State.focus();
    return (false);
  }
   if (theForm.Zip.value == "")
  {
    alert("Please enter a value for the \"Zip/Postal Code\" field.");
    theForm.Zip.focus();
    return (false);
  }
  //Email address
  newEmail = theForm.Email.value;
  while (newEmail.indexOf("-") != -1)
  {
  	newEmail = newEmail.replace('-','');
  }
  var emailaddress_re = /^\w+([\.|\-]\w+){0,2}@\w+(\.\w+)+$/;
  if (emailaddress_re.test(newEmail) == false){
	alert("Please enter email address in \"xxx@xxx.xxx\" format.");
	theForm.Email.select();
	theForm.Email.focus();
	return false;
  }
      
  return (true);
}
//-->

