<script Language="JavaScript"><!--
function Validate(theForm)
{
  if (theForm.EPusername.value == "")
  {
    alert("Please enter a value for the \"Username\" field.");
    theForm.EPusername.focus();
    return (false);
  }

  if (theForm.EPusername.value.length > 15)
  {
    alert("Please enter at most 15 characters in the \"Username\" field.");
    theForm.EPusername.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz&#402;c&#338;Rü&#339;?&#376;&Agrave;&Atilde;&Aring;&AElig;&Egrave;&Ecirc;&Igrave;&Iuml;&ETH;&Ntilde;&Ograve;&Otilde;&Oslash;&Ugrave;&Ucirc;&THORN;&agrave;Ą˘&atilde;¤&aring;&aelig;§&egrave;Š&ecirc;Ť&igrave;­Ž&iuml;&eth;&ntilde;&ograve;ăä&otilde;ć&oslash;&ugrave;ę&ucirc;ěí&thorn;&yuml;0123456789--_. \t\r\n\f";
  var checkStr = theForm.EPusername.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 letter, digit, whitespace and \"-_.\" characters in the \"Username\" field.");
    theForm.EPusername.focus();
    return (false);
  }

  if (theForm.ProfilePassword.value == "")
  {
    alert("Please enter password");
    theForm.ProfilePassword.focus();
    return (false);
  }

 
    return (true);
}
//--></script>

