|
|
Welcome Guest | Register | Login
< src="/rafaforum/mvnplugin/mvnforum/js/md5.js" type=text/java>>
< type=text/java>
//function checkEnterLogin(event) {
var agt=navigator.userAgent.toLowerCase();
// Maybe, Opera make an onClick event when user press enter key
// on the text field of the form
if (agt.indexOf("opera") >= 0) return;
// enter key is pressed
if (getKeyCode(event) == 13)
SubmitFormLogin();
}
function SubmitFormLogin() {
if (ValidateFormLogin()) {
var enableEncrypted = true;
if (enableEncrypted) {
pw2md5(document.sublogin.MemberMatkhau, document.sublogin.md5pw);
}
document.sublogin.submitbutton.disabled=true;
return document.sublogin.submit();
}
return false;
}
function ValidateFormLogin() {
if (isBlank(document.sublogin.MemberName, "Login Name")) return false;
if (isBlank(document.sublogin.MemberMatkhau, "Password")) return false;
//Check Password"s length
if (document.sublogin.MemberMatkhau.value.length < 3) {
alert("Password is not allowed to be less than 3 characters.");
document.sublogin.MemberMatkhau.focus();
return false;
}
return true;
}
//]]>
>
|
| |
No member browsing this forum |
All threads in this forum: (5781 Posts in 31 Threads) |
|
¤ نویسنده: بنیامین میرزایی
88/9/22 ساعت 7:28 عصر
نظرات دیگران ()
لیست کل یادداشت های این وبلاگ
|