<!--webbot BOT="GeneratedScript" PREVIEW=" " startspan -->
<!--
function FrontPage_Form1_Validator(theForm)
{

  if (theForm.State.selectedIndex < 0)
  {
    alert("Please select one of the \"State of residence\" options.");
    theForm.State.focus();
    return (false);
  }

  if (theForm.Year.value.length > 4)
  {
    alert("Please enter at most 4 characters in the \"Year\" field.");
    theForm.Year.focus();
    return (false);
  }

  var checkOK = "0123456789-";
  var checkStr = theForm.Year.value;
  var allValid = true;
  var validGroups = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \"Year\" field.");
    theForm.Year.focus();
    return (false);
  }

  if (theForm.Payment.selectedIndex < 0)
  {
    alert("Please select one of the \"Monthly disability payment\" options.");
    theForm.Payment.focus();
    return (false);
  }

  if (theForm.Payment.selectedIndex == 0)
  {
    alert("The first \"Monthly disability payment\" option is not a valid selection.  Please choose one of the other options.");
    theForm.Payment.focus();
    return (false);
  }
  return (true);
}
//-->
<!--webbot BOT="GeneratedScript" endspan -->