\n
session_start();
?>
\n
function checkinput(form){
if(document.mod_pwd.curr_pwd.value==”"){
alert(“請輸入原始密碼!”);
document.mod_pwd.curr_pwd.select();
return(false);
}
if(document.mod_pwd.new_pwd.value==”"){
alert(“請輸入新密碼!”);
document.mod_pwd.new_pwd.select();
return(false);
}
if(document.mod_pwd.new_pwd.value.length <6){
alert(“請至少輸入6位新密碼!”);
document.mod_pwd.new_pwd.select();
return(false);
}
if(document.mod_pwd.renew_pwd.value==”"){
alert(“請再輸入一遍新密碼!”);
document.mod_pwd.renew_pwd.select();
return(false);
}
if(document.mod_pwd.new_pwd.value!=document.mod_pwd.renew_pwd.value){
alert(“您兩次輸入的密碼不一緻,請重新輸入!”);