<%
if Session("m_UserID")="" then
%> 
<table border="0" cellpadding="0" cellspacing="0" align="center" class="white">
  <form action="chklogin.asp" method="post" name="loginFM" id="loginFM" onSubmit="return checkReg(this)">
    <tr> 
      <td width="60" height="40" valign="middle">用户名:</td>
      <td width="100" valign="middle"> <input name="txtName" type="text" id="txtName" size="10"> 
      </td>
      <td width="50" align="right" valign="middle">密码:</td>
      <td width="100" valign="middle"> <input name="txtPassWord" type="password" id="username" size="10"> 
      </td>
      <td width="55" valign="middle"> 
        <input type="submit" name="Submit" value="登陆">
      </td>
      <td width="55" valign="middle"><input type="button" name="Submit2" value="注册" onClick=location.href='contract.asp';></td>
    </tr>
  </form>
</table>
        <script language="JavaScript">
					function checkReg(theform){
						if(!CheckEmpty(theform.txtName,"用户名")) return false;
						if(!CheckEmpty(theform.txtPassWord,"密码")) return false;
					}
					</script>
<%
Else
%>
<table border="0" align="center" cellpadding="0" cellspacing="0" class="white">
  <tr> 
    <td width="60"><strong>欢迎您，</strong></td>
    <td width="70"><strong><%=Session("m_LoginName")%></strong></td>
    <td width="160"><strong>[<a href="logout.asp" style="color:#00000">退出登录</a>][<a href="reginfo.asp" style="color:#00000">修改资料</a>]</strong></td>
  </tr>
</table>
<%
End if
%>
