document.write('
'); String.prototype.trim=function(){return this.replace(/^\s+|\s+$/ig, "");} function $1(id){return document.getElementById(id);} if(typeof($)=="undefined") $=$1; function checkLoginForm(){ if($1("username").value.trim().length==0){ alert('提示:请输入用户名!'); $1("username").focus(); return false; }else if($1("password").value.trim().length==0){ alert('提示:请输入密码!'); $1("password").focus(); return false; } document.location="/default.aspx?retUrl="+encodeURIComponent(document.URL+"?"+new Date().getTime())+"&tabId=412&username="+$1("username").value+"&password="+$1("password").value; return false; }