<script Language="JavaScript"><!--
function Validate(theForm)
{
  if (theForm.ProfileID.value == "")
  {
    alert("Please enter a value for the \"Profile ID\" field.");
    theForm.EPusername.focus();
    return (false);
  }

  var checkOK = "0123456789";
  var checkStr = theForm.ProfileID.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 enter only digit in the \"Profile ID\" field.");
    theForm.ProfileID.focus();
    return (false);
  }

  if (theForm.password.value == "")
  {
    alert("Please enter password");
    theForm.password.focus();
    return (false);
  }

 
    return (true);
}
//--></script>

