日期:2014-05-16 浏览次数:20414 次
function form_validate(){
//验证邮箱
if(("")== document.form1.mailname.value ){
document.getElementById("checkEmail").innerHTML="邮箱不能为空";
form1.mailname.focus();
return false;
}
if(checkEmail(trim(document.form1.mailname.value))==false){
document.getElementById("checkEmail").innerHTML="邮箱不合法,请重新填写";
form1.mailname.focus();
return false;
}
return true;
}