// JavaScript Document
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.Phone.value == "")
  {
    alert("Please enter a value for the \"Phone\" field.");
    theForm.Phone.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.Comments.value == "")
  {
    alert("Please enter a value for the \"Comments\" field.");
    theForm.Comments.focus();
    return (false);
  }
 
  if (theForm.Comments.value.length < 10)
  {
    alert("Please enter at least 10 characters in the \"Comments\" field.");
    theForm.Comments.focus();
    return (false);
  }
 
  if (theForm.Comments.value.length > 256)
  {
    alert("Please enter at most 256 characters in the \"Comments\" field.");
    theForm.Comments.focus();
    return (false);
  }
  return (true);
}
//-->
