function Form1_Validator(theForm)
{

  if (theForm.NAME.value == "")
  {
    alert("Please enter a value for 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.EMAIL.value == "")
  {
    alert("Please enter a value for 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.USERNAME.value == "")
  {
    alert("Please enter a value for the \"username\" field.");
    theForm.USERNAME.focus();
    return (false);
  }

  if (theForm.USERNAME.value.length > 100)
  {
    alert("Please enter at most 100 characters in the \"username\" field.");
    theForm.USERNAME.focus();
    return (false);
  }

 if (theForm.PASSWORD.value == "")
  {
    alert("Please enter a value for the \"Web site password\" field.");
    theForm.PASSWORD.focus();
    return (false);
  }

  if (theForm.PASSWORD.value.length > 100)
  {
    alert("Please enter at most 100 characters in the \"password\" field.");
    theForm.PASSWORD.focus();
    return (false);
  }
  if (theForm.ADDRESS.value == "")
  {
    alert("Please enter a value for the \"address\" field.");
    theForm.ADDRESS.focus();
    return (false);
  }

  if (theForm.ADDRESS.value.length > 100)
  {
    alert("Please enter at most 100 characters in the \"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.CITY.value.length > 100)
  {
    alert("Please enter at most 100 characters in the \"city\" field.");
    theForm.CITY.focus();
    return (false);
  }
  if (theForm.STATE.value == "")
  {
    alert("Please enter a value for the \"State\" field.");
    theForm.STATE.focus();
    return (false);
  }

  if (theForm.STATE.value.length > 100)
  {
    alert("Please enter at most 100 characters in the \"State\" field.");
    theForm.STATE.focus();
    return (false);
  }

  if (theForm.COUNTRY.value == "")
  {
    alert("Please enter a value for 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.POSTCODE.value == "")
  {
    alert("Please enter a value for the \"postcode\" field.");
    theForm.POSTCODE.focus();
    return (false);
  }

  if (theForm.POSTCODE.value.length > 100)
  {
    alert("Please enter at most 100 characters in the \"postcode\" field.");
    theForm.POSTCODE.focus();
    return (false);
  }  
  
  if (theForm.PHONE.value == "")
  {
    alert("Please enter a value for 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.FAX.value == "")
  {
    alert("Please enter a value for the \"fax\" field.");
    theForm.FAX.focus();
    return (false);
  }

  if (theForm.FAX.value.length > 100)
  {
    alert("Please enter at most 100 characters in the \"fax\" field.");
    theForm.FAX.focus();
    return (false);
  }  
  
  if (theForm.URL.value == "")
  {
    alert("Please enter a value for the \"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.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("The first \"How did you find out about us?\" option is not a valid selection.  Please choose one of the other options.");
    theForm.LEAD.focus();
    return (false);
  }

  return (true);
}