
function FrontPage_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 > 50)
  {
    alert("Please enter at most 50 characters in the \"Name\" field.");
    theForm.Name.focus();
    return (false);
  }

  if (theForm.namelast.value == "")
  {
    alert("Please enter a value for the \"namelast\" field.");
    theForm.namelast.focus();
    return (false);
  }

  if (theForm.namelast.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"namelast\" field.");
    theForm.namelast.focus();
    return (false);
  }

  if (theForm.EmailAddress.value == "")
  {
    alert("Please enter a value for the \"EmailAddress\" field.");
    theForm.EmailAddress.focus();
    return (false);
  }

  if (theForm.EmailAddress.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"EmailAddress\" field.");
    theForm.EmailAddress.focus();
    return (false);
  }

  if (theForm.Procedure0.selectedIndex < 0)
  {
    alert("Please select one of the \"Procedure0\" options.");
    theForm.Procedure0.focus();
    return (false);
  }

  if (theForm.Procedure0.selectedIndex == 0)
  {
    alert("The first \"Procedure0\" option is not a valid selection.  Please choose one of the other options.");
    theForm.Procedure0.focus();
    return (false);
  }
  return (true);
}

