function Validate(theForm)
{

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

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

  if (theForm.Zip.value.length < 5)
  {
    alert("Please enter at least 5 characters in the \"Zip\" field.");
    theForm.Zip.focus();
    return (false);
  }

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

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

  var checkOK = "0123456789-.,";
  var checkStr = theForm.EmployeeNbr.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  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 (ch == ".")
    {
      allNum += ".";
      decPoints++;
    }
    else if (ch != ",")
      allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \"EmployeeNbr\" field.");
    theForm.EmployeeNbr.focus();
    return (false);
  }

  if (decPoints > 1)
  {
    alert("Please enter a valid number in the \"EmployeeNbr\" field.");
    theForm.EmployeeNbr.focus();
    return (false);
  }

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

  var checkOK = "0123456789-.,";
  var checkStr = theForm.AnnualPayroll.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  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 (ch == ".")
    {
      allNum += ".";
      decPoints++;
    }
    else if (ch != ",")
      allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \"AnnualPayroll\" field.");
    theForm.AnnualPayroll.focus();
    return (false);
  }

  if (decPoints > 1)
  {
    alert("Please enter a valid number in the \"AnnualPayroll\" field.");
    theForm.AnnualPayroll.focus();
    return (false);
  }
  return (true);
}
