function fnRemoveBrank(strSource) { return strSource.replace(/^\s*/,'').replace(/\s*$/,''); } function check(myform) { if(fnRemoveBrank(myform.login.value)=="") { alert("请输入会员名!"); myform.login.focus(); return(false); } if(myform.pwd.value=="") { alert("请输入密码!"); myform.pwd.focus(); return(false); } } document.write("
"); document.write(" | "); document.write(" |