<%
if Not ChkPost then response.redirect ("chklogin.asp?login=4")
Response.Expires = 0
Response.AddHeader "Pragma", "no-cache"
Response.AddHeader "cache-control", "no-store"
%>
<SCRIPT language=javascript>
//--检测登陆-->

	   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;
           } 

//-->
</SCRIPT>
<style type="text/css">
<!--
.C {font-size:14px}
.S {font-size:12px}
.boardMain {    height:100px;
    line-height: 150%;
    background-color: #F1F1F1;
    border-top:1px solid #CC3300;
    border-left:1px solid #B1B0B0;
    border-right: 1px solid #B1B0B0;
    border-bottom: 1px solid #B1B0B0;
    padding-bottom: 5px;
    padding-top: 5px
}
.cardFont {}
.cardSelected1 {	BORDER-left: #b1b0b0 1px solid;BORDER-right: #b1b0b0 1px solid;border-top:#D24D4D 4 solid;background: #CC3300; COLOR: #fff;  HEIGHT: 25px;TEXT-DECORATION: underline; BORDER-BOTTOM: #cc3300 1px solid
}
.cardSpace {	background-color: #FFFFFF;border-bottom: 1px solid #cc3300;
}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<FORM name="loginForm" action="/login/login1.asp" method=post onsubmit="javascript:if(DoLogin()==false) return false;">


	  <table border=0 cellspacing=0 cellpadding=0 width=100% id=secTable class=cardFont>
        <tr align=center>
          <td width=100 height="27" class=cardSelected1 nowrap> <img src=/images/icon_contact.gif width="23" height="15" align=absmiddle border=0   hspace="3" >联系信息 </td>
          <td class=cardSpace width=230 align=left> &nbsp;商贸通会员请<font color=CC3300>登录后</font>查看 &nbsp; </td>
        </tr>
      </table>
	  <table border=0 cellspacing=0 cellpadding=0 width=100% height=38 id=mainTable class=boardMain>
        <tbody style="display:none;">
        </tbody>
        <tbody style="display:blank;">
          <tr>
            <td align=center>
              <script language="javascript">
					  <!--
					  function attachVerifyCode() {
					    var temp = document.form1.Done.value;
					    temp = temp + "&verifyCode=" + document.form1.verifyCode.value;
					    document.form1.Done.value = temp;
					  }
					  //-->
					</script>
              <table width="95%"  border="0" cellpadding="3" cellspacing="0">
                <Input TYPE="hidden" NAME="Done" VALUE="y">
                <input type="hidden" name="cc" value="1">
                <input TYPE="hidden" NAME="step" VALUE="2">
                <input type="hidden" NAME="from_where" VALUE="1">
                <input type="hidden" NAME="asker" VALUE="">
                <tr>
                  <td width="23%" class="S"><strong>登录名：</strong></td>
                  <td width="43%" colspan=2><input tabindex=1 maxlength=20 size=17 name="UsernameGet" value="<%=Request.cookies("Myworldname")%>">
                    </td>
                  <td width="34%" class="S"><A 
                        href="../login/getmemberid.asp">忘了登陆名？</A></td>
                </tr>
                <tr>
                  <td class="S"><strong>密　码：</strong></td>
                  <td colspan=2><input tabindex=2 type=password size=17 
                        name="PasswordGet"></td>
                  <td class="S"><A 
                        href="../login/getanswer.asp">忘了密码？</A></td>
                </tr>
                <tr>
                  <td class="S">&nbsp;</td>
                  <td colspan="3" class="S"><b>照此输入验证码</b> <img src=/login/images/icon_downarrow1.gif width="12" height="12" align=absmiddle border=0> &nbsp;&nbsp;&nbsp;&nbsp;<a  href="javascript:win=window.open('../help/whatcheck.asp','contact','width=400,height=380,scrollbars=no,status=no,toolbar=no%20,menubar=no,location=no');win.focus();">什么是验证码？</a> </td>
                </tr>
                <tr>
                  <td class="S"></td>
                  <td> <IMG src="/inc/verifycode.asp?<%=timer()%>" height=20 width=60></td>
                  <td><input tabindex=3 size=8 name="Verifycode">
                  </td>
                  <td class="S"><input tabindex=4 type=submit value="登   录" name=Submit></td>
                </tr>
            </table></td>
          </tr>
        </tbody>
      </table>
	  <br>
      <table width="98%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td class="S lh13"> <img src=/images/icon_point.gif width="18" height="19" align=absmiddle border=0> 还不是商贸通会员？<a href="../login/register.asp" target=_blank>点此马上申请！</a>
          <br>　　
          <font color=CC3300 class=C><strong>  申请热线：<%=hottel%></strong></font> </td>
        </tr>
      </table>
</FORM>
