// ::::::::::::::: en/top.js ::::::::::::::: 


function Form1_Validator(theForm)
{

  if (theForm.MEMBER_ID.value == "")
  {
    alert("Please input the \"Individual ID\"");
    theForm.MEMBER_ID.focus();
    return (false);
  }

  if (theForm.MEMBER_ID.value.length > 15)
  {
    alert("You can input up to 15 characters in the \"Individual ID\" field");
    theForm.MEMBER_ID.focus();
    return (false);
  }

  if (theForm.PASSWORD.value == "")
  {
    alert("Please input your \"password\"");
    theForm.PASSWORD.focus();
    return (false);
  }

  if (theForm.PASSWORD.value.length < 6)
  {
    alert("Please input at least 6 characters in the \"Password\" field.");
    theForm.PASSWORD.focus();
    return (false);
  }

  if (theForm.PASSWORD.value.length > 30)
  {
    alert("Please input less than 30 characters in the \"Password\" field");
    theForm.PASSWORD.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-";
  var checkStr = theForm.PASSWORD.value;
  var allValid = 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 avoid using special characters in the \"Password\" field");
    theForm.PASSWORD.focus();
    return (false);
  }
  return (true);
}