<script Language="JavaScript">
function ChkFields() { if (document.myform.UserName.value=='') { window.alert ("请输入用户名!"); myform.UserName.focus(); return false}if (document.myform.UserName.value.Length<=2) { window.alert ("请用户名长度必须大于2!"); myform.UserName.focus(); return false}if (document.myform.Pwd.value.length<3) { window.alert ("新密码长度大于等于6!"); myform.Pwd.focus(); return false}if (document.myform.Pwd.value=='') { window.alert ("请输入新密码!"); myform.Pwd.focus(); return false}if (document.myform.Pwd1.value=='') { window.alert ("请确认新密码!"); myform.Pwd1.focus(); return false}if (document.myform.Pwd.value!=document.myform.Pwd1.value) { window.alert ("两次输入的新密码必须相同!"); return false}return true}</script><body><form method="POST" action="UserSave.asp" name="myform" οnsubmit="return ChkFields()">