// JScript source code
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 < 2)
  {
    alert("Please enter at least 2 characters in the \"Name\" field.");
    theForm.Name.focus();
    return (false);
  }
  
  if (theForm.Financial_Name.value == "")
  {
    alert("Please enter a value for the \"Financial Name\" field.");
    theForm.Name.focus();
    return (false);
  }

  if (theForm.Financial_Name.value.length < 2)
  {
    alert("Please enter at least 2 characters in the \"Financial 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 < 3)
  {
    alert("Please enter at least 3 characters in the \"email\" field.");
    theForm.email.focus();
    return (false);
  }

  if (theForm.telephone.value == "")
  {
    alert("Please enter a value for the \"telephone\" field.");
    theForm.telephone.focus();
    return (false);
  }

  if (theForm.telephone.value.length < 10)
  {
    alert("Please enter at least 10 characters in the \"telephone\" field.");
    theForm.telephone.focus();
    return (false);
  }
  return (true);
}