function DoLogin() { var UsernameGet = trim(document.loginForm.UsernameGet.value); var PasswordGet = trim(document.loginForm.PasswordGet.value); var Verifycode = trim(document.loginForm.Verifycode.value); if(UsernameGet == "") { alert("请输入会员登录名!"); document.loginForm.UsernameGet.focus(); return false; } if(PasswordGet == "") { alert("请输入密码!"); document.loginForm.PasswordGet.focus(); return false; } if(Verifycode == "") { alert("请输入验证码!"); document.loginForm.Verifycode.focus(); return false; } } function trim(inputString) { if (typeof inputString != "string") { return inputString; } var retValue = inputString; var ch = retValue.substring(0, 1); while (ch == " ") { //检查字符串开始部分的空格 retValue = retValue.substring(1, retValue.length); ch = retValue.substring(0, 1); } ch = retValue.substring(retValue.length-1, retValue.length); while (ch == " ") { //检查字符串结束部分的空格 retValue = retValue.substring(0, retValue.length-1); ch = retValue.substring(retValue.length-1, retValue.length); } while (retValue.indexOf(" ") != -1) { //将文字中间多个相连的空格变为一个空格 retValue = retValue.substring(0, retValue.indexOf(" ")) + retValue.substring(retValue.indexOf(" ")+1, retValue.length); } return retValue; } function on_forgetpwd() { if (document.Login.Typ(0).checked ==true) { document.Login.action="http://shop.taishanx.com/individual/Chkadmin.asp"; document.Login.submit(); } else { document.Login.action="http://shop.taishanx.com/user/Chkadmin_.asp"; document.Login.submit(); } return false; } function show_1(){ document.getElementById("login1").style.display=""; document.getElementById("login2").style.display="none"; } function show_2(){ document.getElementById("login2").style.display=""; document.getElementById("login1").style.display="none"; } document.write('
| 商贸会员登陆 | 电子传真登陆 |