function Form1_Validator(theForm)
{

 if (theForm.firstname.value == "")
  {
    alert("Please enter your first name.");
    theForm.firstname.focus();
    return (false);
  }

 if (theForm.lastname.value == "")
  {
    alert("Please enter your last name.");
    theForm.lastname.focus();
    return (false);
  }

 if (theForm.email.value == "")
  {
    alert("Please enter your email address.");
    theForm.email.focus();
    return (false);
  }

  if (isEmail(theForm.email.value) == false)
  {
    alert("Please enter a valid email address.");
    theForm.email.focus();
    return (false);
  }

 if (theForm.company.value == "")
  {
    alert("Please enter your company name.");
    theForm.company.focus();
    return (false);
  }

  if (theForm.phone_areacode.value == "" || theForm.phone_prefix.value == "" || theForm.phone_last4.value == "")
  {
    alert("Please enter a phone number.");
    theForm.phone_areacode.focus();
    return (false);
  }


  if (isNaN(theForm.phone_areacode.value) || isNaN(theForm.phone_prefix.value) || isNaN(theForm.phone_last4.value))
  {
    alert("Please enter a valid phone number.");
    theForm.phone_areacode.focus();
    return (false);
  }

 if (theForm.street_address.value == "")
  {
    alert("Please enter your street address.");
    theForm.street_address.focus();
    return (false);
  }

 if (theForm.city.value == "")
  {
    alert("Please enter your city.");
    theForm.city.focus();
    return (false);
  }

 if (theForm.state.value == "")
  {
    alert("Please enter your state.");
    theForm.state.focus();
    return (false);
  }

 if (theForm.zip.value == "")
  {
    alert("Please enter your zip.");
    theForm.zip.focus();
    return (false);
  }


}
