function checkemail() { if ("" == document.form1.email.value) { alert("请输入邮件地址") document.form1.email.focus() return false } var email = document.form1.email.value var is_error = false var pn_0 = email.indexOf("@") var pn_1 = email.indexOf(".",pn_0) var pn_2 = email.length if (pn_0<1 || pn_1pn_2) is_error=true if (is_error) { alert("请输入正确的邮件地址") document.form1.email.focus() return false } } document.write("
"); document.write(" "); document.write(" "); document.write(""); document.write("
");