<script language="javascript" type="text/javascript"> function validate() { re= /^([a-zA-Z+]+[0-9+]+[&@!#+]+)$/ ; if (!re.test(document.getElementById("txtNewPassword").value)) { alert("Your new password does not comply with the password policy" + '\n' + "" + '\n' + "-must contain at least 6 characters" + '\n' + "-must contain at least one number (0-9)" + '\n' + "-must contain at least one character" + '\n' + "-must contain at least one special character (@#$%)"); document.getElementById("txtNewPassword").focus(); return false; } else { return true; } } </script>
<script type = "text/javascript"> function validate() { x = document.getElementById("txtNewPassword").value; if ((/[a-z]/g.test(x)) && (/[0-9]/g.test(x)) && (/[@#$%]/g.test(x)) && (x.length >= 6) && (x.length <= 20)) { return true; } else { return false; } } </script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)