<!--#include file="count.asp"-->
<%
If Not FoundInArr(SiteLanguage,2,",") then Response.Write chr(69)&chr(110)&chr(103)&chr(108)&chr(105)&chr(115)&chr(104)&chr(32)&chr(105)&chr(115)&chr(32)&chr(110)&chr(111)&chr(116)&chr(32)&chr(101)&chr(110)&chr(97)&chr(98)&chr(108)&chr(101)&chr(100):Response.End
'=================================================
'过程名：ShowUserLogin
'作  用：显示用户登录表单
'参  数：无
'=================================================
sub ShowUserLogin()
	dim strLogin
	If Session("UserName")="" Then
    	strLogin= "<table width='100%' border='0' cellspacing='0' cellpadding='0'>"
    	strLogin=strLogin & "<tr><td height='34' class='title_left' colspan='2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Member Center</td></tr>"
		strLogin=strLogin & "<form action='EnUserLogin.asp' method='post' name='UserLogin' onSubmit='return CheckForm();'>"
        strLogin=strLogin & "<tr><td height='25' align='right'>User name：</td><td height='25'><input name='UserName' type='text' id='UserName' size='10' maxlength='20'></td></tr>"
        strLogin=strLogin & "<tr><td height='25' align='right'>Password：</td><td height='25'><input name='Password' type='password' id='Password' size='10' maxlength='20'></td></tr>"
        strLogin=strLogin & "<tr align='center'><td height='25' colspan='2'><input name='Login' type='submit' id='Login' value=' Login ' Class='BUTTON'> <input name='Reset' type='reset' id='Reset' value=' Reset ' Class='BUTTON'>"
        strLogin=strLogin & "</td></tr>"
        strLogin=strLogin & "<tr><td height='20' align='center' colspan='2'><a href='EnUserReg.asp' target='_blank'>Register</a>&nbsp;&nbsp;<a href='EnGetPassword.asp' target='_blank'>Forget password？</a></td></tr>"      
        strLogin=strLogin & "</form></table>"
		response.write strLogin
%>
<script language=javascript>
	function CheckForm()
	{
		if(document.UserLogin.UserName.value=="")
		{
			alert("Please input user name！");
			document.UserLogin.UserName.focus();
			return false;
		}
		if(document.UserLogin.Password.value == "")
		{
			alert("Please input password！");
			document.UserLogin.Password.focus();
			return false;
		}
	}
</script>
<%Else%>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="34" class="title_left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Member Center </td>
      </tr>
      <tr>
        <td height="20"><div align="center">Welcome!:<%=Session("username")%></div></td>
      </tr>
      <TR>
        <TD 
                            height=1 colspan="2" 
                            background=img/naSzarym.gif><IMG height=1 src="img/1x1_pix.gif" 
                              width=10></TD>
      </TR>
      <tr>
        <td height="20"><div align="center"><a href="EnUserOrder.asp">Inquire Search</a></div></td>
      </tr>
      <TR>
        <TD 
                            height=1 colspan="2" 
                            background=img/naSzarym.gif><IMG height=1 src="img/1x1_pix.gif" 
                              width=10></TD>
      </TR>
      <tr>
        <td height="20"><div align="center"><a href="EnFeedback.asp">Add Feedback </a></div></td>
      </tr>
      <TR>
        <TD 
                            height=1 colspan="2" 
                            background=img/naSzarym.gif><IMG height=1 src="img/1x1_pix.gif" 
                              width=10></TD>
      </TR>
      <tr>
        <td height="20"><div align="center"><a href="EnFeedbackMember.asp">My Feedback </a></div></td>
      </tr>
      <TR>
        <TD height=1 colspan="2" 
                            background=img/naSzarym.gif><IMG height=1 src="img/1x1_pix.gif" 
                              width=10></TD>
      </TR>
      <tr>
        <td height="20"><div align="center"><a href="EnUserEdit.asp">Modify info</a></div></td>
      </tr>
      <TR>
        <TD 
                            height=1 colspan="2" 
                            background=img/naSzarym.gif><IMG height=1 src="img/1x1_pix.gif" 
                              width=10></TD>
      </TR>
      <tr>
        <td height="20"><div align="center"><a href="EnUserEditPwd.asp">Modify Password</a></div></td>
      </tr>
      <TR>
        <TD 
                            height=1 colspan="2" 
                            background=img/naSzarym.gif><IMG height=1 src="img/1x1_pix.gif" 
                              width=10></TD>
      </TR>
      <tr>
        <td height="20"><div align="center"><a href="UserLogout.asp?Action=En">Member Logout</a></div></td>
      </tr>
      <TR>
        <TD 
                            height=1 colspan="2" 
                            background=img/naSzarym.gif><IMG height=1 src="img/1x1_pix.gif" 
                              width=10></TD>
      </TR>
    </table>
<%
end if	
end sub
%>