input_chk.js
398 Bytes
function Inputcheck(){
var id = document.frm.login_id.value;
var pass = document.frm.login_pass.value;
if (id == ""){
alert("Please input the ID.");
return false
}
if (pass == ""){
alert("Please input the Password.");
return false
}
if ((id == "lws-event") && (pass == "ppm0509")){
return true
}else{
alert("The ID or Password you entered is incorrect.");
return false
}
}