function form2_onsubmit() { if (document.form1.username.value == "") { alert("会员帐户不能为空!"); document.form1.username.focus(); return (false); } if (document.form1.userpass.value == "") { alert("会员密码不能为空!"); document.form1.userpass.focus(); return (false); } document.form1.submit() } function checkketang() { var chkbs = document.getelementsbyname("cpbm"); var chknum= 0; for(i=0;i会员请登录,非会员请注册! 会员名:会员密码:'; javastr=javastr+' '; javastr=javastr+'' ; document.write(javastr);