<SCRIPT language=JavaScript><!--
function FrontPage_Form1_Validator(theForm)
{
 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("在 密码 域中,只能输入 字母与数字 个字符。");
    theForm.password.focus();
    return (false);
  }
    if (theForm.repwd.length < 6)
  {
    alert("在 密码 域中,请至少输入 6 个字符。");
    theForm.repwd.focus();
    return (false);
  }
    if (theForm.repwd.value !=theForm.password.value)
  {
    alert("新密码与确认密码不相同,请重试。");
    theForm.repwd.focus();
    return (false);
  }
  if (theForm.repwd.value == "")
  {
    alert("请在 确认密码 域中输入值。");
    theForm.repwd.focus();
    return (false);
  }  if (theForm.password.value.length > 16)
  {
    alert("在 密码 域中,请最多输入 16 个字符。");
    theForm.password.focus();
    return (false);
  }
  return (true);
}
//--></SCRIPT>
$password=$_REQUEST['password'];
if(empty($password)){
echo "<script>
        alert('密码不能为空');
        history.go(-1);
      </script>";
}