function check_input() { if (document.hylogin.hyname.value == "") { alert("请输入用户名!"); document.hylogin.hyname.focus(); return false; } if (document.hylogin.hypass.value == "") { alert("请输入密码!"); document.hylogin.hypass.focus(); return false; } if (document.hylogin.proof.value == "") { alert("请输入验证码!"); document.hylogin.proof.focus(); return false; } return true; } document.write("
"); document.write("用户名: "); document.write("密   码: "); document.write("验证码: "); document.write("验证码,看不清楚?请点击刷新验证码 "); document.write(" "); document.write("<\/a> "); document.write("<\/form>");