<!--
function BulkOrderForm_Validator(theForm)
{

    if ((theForm.discuss_cb6.checked == true)&&(theForm.discuss_cb6_other.value == ""))
    {
      alert("Please describe the other matter you would like to discuss.");
      theForm.discuss_cb6_other.focus();
      return (false);
    }
    
    if ((theForm.discuss_cb6.checked == false)&&(theForm.discuss_cb6_other.value != ""))
    {
      theForm.discuss_cb6.checked = true
    }
    
    
    

    if ((theForm.discuss_cb7.checked == true)&&(theForm.discuss_cb7_other.value == ""))
    {
      alert("Please the new Treasured Letter booklet you would like.");
      theForm.discuss_cb7_other.focus();
      return (false);
    }

    if ((theForm.discuss_cb7.checked == false)&&(theForm.discuss_cb7_other.value != ""))
    {
      theForm.discuss_cb7.checked = true
    }


    if (theForm.how_learned.value == "")
    {
      alert("Please enter how you learned about us.");
      theForm.how_learned.focus();
      return (false);
    }

  //First Name:
    if (theForm.fname.value == "")
    {
      alert("Please enter a value for the \"First name\" field.");
      theForm.fname.focus();
      return (false);
    }

  //First Name:
    if (theForm.lname.value == "")
    {
      alert("Please enter a value for the \"Last name\" field.");
      theForm.lname.focus();
      return (false);
    }


  //Email Address1:
    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);
      }

  //Email Repeat check:
    var str1=theForm.email.value;
    var str2=theForm.email_repeat.value;
    if (str1 != str2)
    {
      alert("Email addresses do not match");
      theForm.email_repeat.focus();
      return (false);
    }

  //Address:
    if (theForm.address.value == "")
    {
      alert("Please enter a street address.");
      theForm.address.focus();
      return (false);
    }

    if (theForm.city.value == "")
    {
      alert("Please enter a city address.");
      theForm.city.focus();
      return (false);
    }

    if (theForm.state.value == "")
    {
      alert("Please enter a state.");
      theForm.state.focus();
      return (false);
    }

    if (theForm.zip_code.value == "")
    {
      alert("Please enter a zip/postal code.");
      theForm.zip_code.focus();
      return (false);
    }

    if (theForm.phone.value == "")
    {
      alert("Please enter a phone number.");
      theForm.phone.focus();
      return (false);
    }

  //Other type of business check:
    if ((theForm.bus_type[4].checked == true)
    &&  (theForm.bus_other.value == ""))
    {
      alert("Please enter \"Other\" business type");
      theForm.bus_other.focus();
      return (false);
    }

    if (theForm.comments.value == "")
    {
      alert("Please enter a your comments.");
      theForm.comments.focus();
      return (false);
    }

//Script end
  return (true);
}

//-->

