function Form1_Validator(theForm)
{

  if (theForm.name.value == "")
  {
    alert("Please enter a value for the \"users_name\" field.");
    theForm.name.focus();
    return (false);
  }

  if (theForm.name.value.length > 40)
  {
    alert("Please enter at most 40 characters in the \"users_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 > 50)
  {
    alert("Please enter at most 50 characters in the \"email\" field.");
    theForm.email.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 > 2)
  {
    alert("Please enter at most 2 characters in the \"state\" field.");
    theForm.state.focus();
    return (false);
  }

  if (theForm.telephone.value == "")
  {
    alert("Please enter a value for the \"contact_area_code\" field.");
    theForm.telephone.focus();
    return (false);
  }

  return (true);
}
