<!--
function Form1_Validator(theForm)
{
  if (theForm.T01.value == "")
  {
    alert("Please enter your Name.");
    theForm.T01.focus();
    return (false);
  }
  if (theForm.T01.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"Name\" field.");
    theForm.T01.focus();
    return (false);
  }
  if (theForm.T04.value == "")
  {
    alert("Please enter your Street Address.");
    theForm.T04.focus();
    return (false);
  }
  if (theForm.T04.value.length > 60)
  {
    alert("Please enter at most 60 characters in the \"Street Address\" field.");
    theForm.T04.focus();
    return (false);
  }
  if (theForm.T06.value == "")
  {
    alert("Please enter the City.");
    theForm.T06.focus();
    return (false);
  }
  if (theForm.T06.value.length > 60)
  {
    alert("Please enter at most 60 characters in the \"City\" field.");
    theForm.T06.focus();
    return (false);
  }
  if (theForm.T07.value == "")
  {
    alert("Please enter your State.");
    theForm.T07.focus();
    return (false);
  }
  if (theForm.T07.value.length > 20)
  {
    alert("Please enter at most 20 characters in the \"State\" field.");
    theForm.T07.focus();
    return (false);
  }
  if (theForm.T08.value == "")
  {
    alert("Please enter your Zip Code.");
    theForm.T08.focus();
    return (false);
  }
  if (theForm.T08.value.length < 5)
  {
    alert("Please enter your Zip Code.");
    theForm.T08.focus();
    return (false);
  }
  if (theForm.T08.value.length > 11)
  {
    alert("Please enter at most 11 characters in the \"Zip\" field.");
    theForm.T08.focus();
    return (false);
  }

  if ((theForm.T10.value.length < 6) && (theForm.T10.value.length > 0))
  {
    alert("You have entered an improper Key Code. Please correct or erase this field.");
    theForm.T10.focus();
    return (false);
  }
  if (theForm.T10.value.length > 6)
  {
    alert("You have entered an improper Key Code. Please correct or erase this field.");
    theForm.T10.focus();
    return (false);
  }
  if (theForm.T10.value.length == 6)
  {
    var keycodestr = theForm.T10.value
    keycodestr = keycodestr.toUpperCase()
    var cc=''
    cc = keycodestr.charAt(4)
    if (cc!='I')
    {
      if (cc!='H')
      {
        alert("You have entered an improper Key Code. Please correct or erase this field.");
        theForm.T10.focus();
        return (false);
      }
    }
    var ee=''
    ee = keycodestr.charAt(5)
    if (cc=='I')
    {
      if (ee != 'C')
      {
        alert("You have entered an improper Key Code. Please correct or erase this field.");
        theForm.T10.focus();
        return (false);
      }
    }
    if (cc=='H')
    {
      if (ee != 'H')
      {
        alert("You have entered an improper Key Code. Please correct or erase this field.");
        theForm.T10.focus();
        return (false);
      }
    }
    keycodestr = keycodestr.substring(0,4)
    var nstr = '1234567890'
    var dd=''
    var isit = false
    cc = keycodestr.charAt(0)
    for (j = 0 ; j < 10 ; j++)
    {
      dd = nstr.substring(j, j + 1)
      if (cc == dd) 
      {
        isit = true;
        break;
      }
    }
    if (isit == false)
    {
      alert("You have entered an improper Key Code. Please correct or erase this field.");
      theForm.T10.focus();
      return (false);
    }
    isit = false
    cc = keycodestr.charAt(1)
    for (j = 0 ; j < 10 ; j++)
    {
      dd = nstr.substring(j, j + 1)
      if (cc == dd) 
      {
        isit = true;
        break;
      }
    }
    if (isit == false)
    {
      alert("You have entered an improper Key Code. Please correct or erase this field.");
      theForm.T10.focus();
      return (false);
    }
    isit = false
    cc = keycodestr.charAt(2)
    for (j = 0 ; j < 10 ; j++)
    {
      dd = nstr.substring(j, j + 1)
      if (cc == dd) 
      {
        isit = true;
        break;
      }
    }
    if (isit == false)
    {
      alert("You have entered an improper Key Code. Please correct or erase this field.");
      theForm.T10.focus();
      return (false);
    }
    isit = false
    cc = keycodestr.charAt(3)
    for (j = 0 ; j < 10 ; j++)
    {
      dd = nstr.substring(j, j + 1)
      if (cc == dd) 
      {
        isit = true;
        break;
      }
    }
    if (isit == false)
    {
      alert("You have entered an improper Key Code. Please correct or erase this field.");
      theForm.T10.focus();
      return (false);
    }
  }




}
//-->