<%
if Session("m_UserID")="" then
%>
<form action="chklogin.asp" method="post" name="regForm" id="regForm" onSubmit="return checkReg(this)">
                    <table width="100%" height="96" border="0" cellpadding="0" cellspacing="0">
                      <tr> 
                        <td width="37%" align="right"><font color="#FFFFFF"><strong>账 
                          号：</strong></font></td>
                        <td width="63%"><input name="txtName" type="text" id="txtName" size="12"> 
                        </td>
                      </tr>
                      <tr> 
                        <td height="31" align="right"><font color="#FFFFFF"><strong>密 
                          码：</strong></font></td>
                        <td><input name="txtPassWord" type="password" id="txtPassWord" size="12"></td>
                      </tr>
                      <tr align="center"> 
                        <td colspan="2"> <input type="submit" name="Submit" value="登 录">
        <input type="button" name="Submit2" value="注 册" onClick="location='contract.asp'"> 
                        </td>
                      </tr>
                    </table>
					<script language="JavaScript">
					function checkReg(theform){
						if(!CheckEmpty(theform.txtName,"用户名")) return false;
						if(!CheckEmpty(theform.txtPassWord,"密码")) return false;
					}
					</script>
                  </form>
<%
Else
%>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="37%" height="30" align="right"><strong>　<font color="#FFFFFF">欢迎您，</font></strong></td>
    <td width="63%" height="30"><font color="#FFFFFF"><strong><%=Session("m_LoginName")%></strong></font></td>
  </tr>
  <tr align="center"> 
    <td height="30" colspan="2"><font color="#FFFFFF"><strong>[<a href="logout.asp" class="aWhite">退出登录</a>][<a href="reginfo.asp" class="aWhite">修改注册资料</a>]</strong></font></td>
  </tr>
  <tr> 
    <td height="30">&nbsp;</td>
    <td height="30">&nbsp;</td>
  </tr>
</table>
<%
End if
%>

