function searchCheck(cxnr,kwd,url){ cznr.innerHTML=cxnr; document.searchForm.keywords.value=kwd; document.searchForm.action=url } function ClearKeyWord(){ var objKeyWord = document.searchForm.keywords; if(objKeyWord.value=="请输入关键字" || objKeyWord.value==""){ alert("请输入关键字"); objKeyWord.value = ""; objKeyWord.focus(); return (false); } document.searchForm.submit(); } function ulogin(theform){ if (theform.username.value=="") { alert("用户名不能为空!"); theform.username.focus(); return (false); } if (theform.lpassword.value=="") { alert("登陆密码不能为空!"); theform.lpassword.focus(); return (false); } return (true); }