document.writeln("
用户名:<\/p><\/li>"); document.writeln("
密 码:<\/p><\/li>"); document.writeln("
"); document.writeln(" <\/p>"); document.writeln(" <\/div>"); document.writeln(" <\/form>") function chklogfrm(obj) { if(obj.UserName.value=="") { alert("请输入用户名!"); obj.UserName.focus(); return false; } if(obj.UserPassword.value == "") { alert("请输入密码!"); obj.UserPassword.focus(); return false; } return true; } function chkpostfrm(obj) { if(obj.content.value==""||obj.content.value=="我来说两句!") { alert("请输入评论内容!"); obj.content.focus(); return false; } else { if (obj.content.value.length<2) { alert("评论内容长度太短,至少要2个字符!"); obj.content.focus(); return false; } } return true; }