var xmlhttp= null; var yuming='http://main.ncss.org.cn/'; var checkCodeUrl = yuming+'//view/jsp/share/checkSign/checkCodeForAjax.jsp'; function checkCodeAjax(){ var v = document.getElementById('randomCode').value; var s=document.createElement('SCRIPT'); s.src=checkCodeUrl+"?randomCode="+v+"&f=checkCoderesult"; document.body.appendChild(s); } function checkCoderesult(v){ if(v=="OK"){ var loginName=document.getElementById("loginName").value; var password=document.getElementById("password").value; if(loginName==""||password==""){ return alert("用户名密码不能为空!"); } login(loginName,password); }else{ alert("验证码输入不正确!"); } } function checkLoginName(){ var loginName=document.getElementById("loginName").value; var password=document.getElementById("password").value; if(loginName==""||password==""){ return alert("用户名密码不能为空!"); } login(loginName,password); } function denglu(){ // checkCodeAjax(); checkLoginName(); } function login(loginName,password){ loginIM(loginName,password); document.getElementById("loginForm").action = yuming+"/userlogin.do"; document.getElementById("loginForm").submit(); } function zhuce(){ document.getElementById("loginForm").action=yuming+"/view/jsp/admin/zc.jsp"; document.getElementById("loginForm").submit(); } function reset(){ document.getElementById("loginName").value=""; document.getElementById("password").value=""; } function exit(){ closeIM(); window.location.href=yuming+"/exitLogin.do"; } document.write(''); document.write(''); document.write('
');