<!--
function QuoteForm_Validator(theForm)
{


  //Name:
    if (theForm.Name.value == "")
    {
      alert("Please enter a value for the \"Name\" field.");
      theForm.Name.focus();
      return (false);
    }

  //City:
    if (theForm.City.value == "")
    {
      alert("Please enter a value for the \"City\" field.");
      theForm.City.focus();
      return (false);
    }

  //State:
    if (theForm.State.value == "")
    {
      alert("Please enter a value for the \"State\" field.");
      theForm.State.focus();
      return (false);
    }

  //Address:
    if ((theForm.MethodOfResponse[2].checked)&&(theForm.Address.value == ""))
    {
      alert("You have checked \"Postal Response\" but have not entered an address.");
      theForm.Address.focus();
      return (false);
    }

  //City:
    if ((theForm.MethodOfResponse[2].checked)&&(theForm.City.value == ""))
    {
      alert("You have checked \"Postal Response\" but have not entered a City.");
      theForm.City.focus();
      return (false);
    }
  
  //State:
    if ((theForm.MethodOfResponse[2].checked)&&(theForm.State.value == ""))
    {
      alert("You have checked \"Postal Response\" but have not entered a State.");
      theForm.State.focus();
      return (false);
    }
  
  //Zip:
    if ((theForm.MethodOfResponse[2].checked)&&(theForm.Zip.value == ""))
    {
      alert("You have checked \"Postal Response\" but have not entered Zip Code.");
      theForm.Zip.focus();
      return (false);
    }

  //Phone:
  //  if ((theForm.MethodOfResponse[3].checked)&&(theForm.Phone.value == ""))
  //  {
  //    alert("You have selected \"Phone\" as your preferred contact method, but have not entered a Phone number.");
  //    theForm.Phone.focus();
  //    return (false);
  //  }

  //Evening Phone:
  //  if ((theForm.MethodOfResponse[4].checked)&&(theForm.EvePhone.value == ""))
  //  {
  //    alert("You have selected \"Evening Phone\" as your preferred contact method, but have not entered a Evening Phone number.");
  //    theForm.EvePhone.focus();
  //    return (false);
  //  }

  //Cell Phone:
  //  if ((theForm.MethodOfResponse[5].checked )&&(theForm.CellPhone.value == ""))
  //  {
  //    alert("You have selected \"Cell Phone\" as your preferred contact method, but have not entered a Cell Phone number.");
  //    theForm.CellPhone.focus();
  //    return (false);
  //  }

  //Fax:
    if ((theForm.MethodOfResponse[1].checked)&&(theForm.Fax.value == ""))
    {
      alert("You have selected \"Fax\" as your preferred contact method, but have not entered a Fax number.");
      theForm.Fax.focus();
      return (false);
    }

  //Email:
    var str=theForm.Email.value
    var filter=/^(\w+(?:\.\w+)*)@((?:\w+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
      if (filter.test(str))
      testresults=true
      else{
      alert("Please input a valid email address!");
      return (false);
      }
  
  //Info Request:
    if (theForm.InfoRequest.value == "")
    {
      alert("Please enter a value for the \"Information Request\" field.");
      theForm.InfoRequest.focus();
      return (false);
    }

    if (theForm.InfoRequest.value.length > 1000)
    {
      alert("Please enter at most 1000 characters in the \"Information Request\" field.");
      theForm.InfoRequest.focus();
      return (false);
    }

//Script end
  return (true);
}

//-->

