Code:
<script language="javascript">
<!--
function ValidatePwd()
{
valid = true;
var NewP=document.getElementById("NPwd").value;
var OldP=document.getElementById("OPwd").value;
if (NewP.value == OldP.value)
{
alert("Change into new password,please!");
document.getElementById("NPwd").value="";
valid = false;
}
return valid;
}
//-->
</script>
<body>
<table border=0 cellspacing=0 cellpadding=0 width=100% height=100%>
<tr align=center valign=top>
<td>
<form method=post action=/Intranet/hr/Change_Password_db.asp id=form1 name=form1 onSubmit="return ValidatePwd();">
<BR><BR><BR>
...
....
.....
<td> <input type="password" maxlength="20" id="NPwd"> <input type="submit" value="Submit" id="submit1" name="submit1" style="WIDTH: 80px; HEIGHT: 24px"></td>
Comment