function Form1_Validator(theForm)
{

  if (theForm.NAME.value == "")
  {
    alert("Please enter your name in the \"Name\" field.");
    theForm.NAME.focus();
    return (false);
  }

  if (theForm.NAME.value.length > 100)
  {
    alert("Please enter at most 100 characters in the \"Name\" field.");
    theForm.NAME.focus();
    return (false);
  }
  if (theForm.COMPANY.value == "")
  {
    alert("Please enter your company name in the \"Company\" field.");
    theForm.COMPANY.focus();
    return (false);
  }

  if (theForm.COMPANY.value.length > 100)
  {
    alert("Please enter at most 100 characters in the \"Company\" field.");
    theForm.COMPANY.focus();
    return (false);
  }

  if (theForm.EMAIL.value == "")
  {
    alert("Please enter your email address in the \"Email\" field.");
    theForm.EMAIL.focus();
    return (false);
  }

  if (theForm.EMAIL.value.length > 100)
  {
    alert("Please enter at most 100 characters in the \"Email\" field.");
    theForm.EMAIL.focus();
    return (false);
  }

  if (theForm.URL.value == "")
  {
    alert("Please enter your website address in the \"Web site URL\" field.");
    theForm.URL.focus();
    return (false);
  }

  if (theForm.URL.value.length > 100)
  {
    alert("Please enter at most 100 characters in the \"Url\" field.");
    theForm.URL.focus();
    return (false);
  }
  if (theForm.COUNTRY.value == "")
  {
    alert("Please enter your country in the \"Country\" field.");
    theForm.COUNTRY.focus();
    return (false);
  }

  if (theForm.COUNTRY.value.length > 100)
  {
    alert("Please enter at most 100 characters in the \"Country\" field.");
    theForm.COUNTRY.focus();
    return (false);
  }
  if (theForm.PHONE.value == "")
  {
    alert("Please enter your telephone number in the \"Phone\" field.");
    theForm.PHONE.focus();
    return (false);
  }

  if (theForm.PHONE.value.length > 100)
  {
    alert("Please enter at most 100 characters in the \"Phone\" field.");
    theForm.PHONE.focus();
    return (false);
  }
  if (theForm.SUBJECT.value == "")
  {
    alert("Please enter a value in the \"Subject\" field.");
    theForm.SUBJECT.focus();
    return (false);
  }

  if (theForm.SUBJECT.value.length > 100)
  {
    alert("Please enter at most 100 characters in the \"Subject\" field.");
    theForm.SUBJECT.focus();
    return (false);
  }
  
  if (theForm.LEAD.selectedIndex < 0)
  {
    alert("Please select one of the \"How did you find out about us?\" options.");
    theForm.LEAD.focus();
    return (false);
  }

  if (theForm.LEAD.selectedIndex == 0)
  {
    alert("Please tell us how did you find us?");
    theForm.LEAD.focus();
    return (false);
  }

  return (true);
}
