<%@ page language="C#" autoeventwireup="true" inherits="index, CrmCommand" %>

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" >
<head id="Head1" runat="server">
<title>无标题页</title>
<script type="text/javascript" src="Javascript/Trim.js"></script>
 <script type="text/javascript" src="Javascript/formCheck.js"></script>
<script  type="text/javascript">
function CheckForm()
{
   if(TrimStr(document.getElementById('txtUserId').value) == "")
   {
	 alert("用户名不能为空！");
	 document.getElementById('txtUserId').focus();
	 return (false);
   }
   if(TrimStr(document.getElementById('txtUserId').value) != "")
   {

   if(!CheckUserName(document.getElementById('txtUserId').value))
   {
     alert("用户名只能为数字和字母的组合！");
	 document.getElementById('txtUserId').focus();
     return (false);
   }
   }
   if(TrimStr(document.getElementById('txtPassword').value) == "")
   {
	 alert("密码不能为空！");
	 document.getElementById('txtPassword').focus();
	 return (false);
   }
   }
   </script>
   	<style type="text/css">
.style1 {
	background-image: url('general/images/top.gif');
}
.btn3_mouseout {
BORDER-RIGHT: #2C59AA 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #2C59AA 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#C3DAF5); BORDER-LEFT: #2C59AA 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: #2C59AA 1px solid
}
.btn3_mouseover {
BORDER-RIGHT: #2C59AA 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #2C59AA 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#D7E7FA); BORDER-LEFT: #2C59AA 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: #2C59AA 1px solid
}
.btn3_mousedown
{
BORDER-RIGHT: #FFE400 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #FFE400 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#C3DAF5); BORDER-LEFT: #FFE400 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: #FFE400 1px solid
}
.btn3_mouseup {
BORDER-RIGHT: #2C59AA 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #2C59AA 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#C3DAF5); BORDER-LEFT: #2C59AA 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: #2C59AA 1px solid
}

</style>
</head>
<body style="margin: 0">

    <form id="Form1" runat="server">
     
  <table style="width: 100%; height: 100%;" cellspacing="0" cellpadding="0">
	<tr>
		<td style="height: 73px;" class="style1">&nbsp;</td>
	</tr>
	<tr>
		<td valign="middle" align="center">
		<table style="width: 100%" cellspacing="0" cellpadding="0">
		<tr>
				<td height="80px" valign="middle" align="center"><h1 style="color: #204F86">
				<asp:Literal runat="server" id="companyname">
				</asp:Literal>
				</h1>
				</td>
			</tr>
			<tr>
				<td align="center" height="22px">
				<img alt="" src="general/images/main.gif" width="680" height="22"></td>
			</tr>
			
			<tr>
				<td height="10px">&nbsp;</td>
			</tr>
			<tr>
				<td valign="middle" align="center">
				<table style="width: 329px; height: 100%" cellspacing="0" cellpadding="0">
						<tr>
						<td style="height: 36px; width: 103px; font-size: 14px; color: #999999;" align="right">
								<img alt="" src="general/images/login.gif" width="16" height="16">&nbsp;&nbsp;UserName：</td>
						<td style="height: 36px" align="left">
						<input style="border: 1px solid #C0C0C0; WIDTH: 160px" id="txtUserId" type="text" maxLength="20" size="15" name="txtUserId" runat="server"></td>
					</tr>
					<tr>
						<td style="width: 103px; height: 32px;font-size: 14px; color: #999999;" align="right">
						Password：</td>
						<td style="height: 32px" align="left">
						<input style="border: 1px solid #C0C0C0; WIDTH: 160px" id="txtPassword" type="password" maxLength="20" size="15" name="txtPassword" runat="server">
                          </td>
					</tr>
					<tr>
						<td style="width: 103px; height: 21px;">&nbsp;</td>
						<td style="height: 21px">
						<asp:Button runat="server" Text="登  录" class="btn3_mouseout" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
  onmouseup="this.className='btn3_mouseup'" style="width: 82px" id="Button1" OnClientClick="return CheckForm();" OnClick="Button1_Click" />
						&nbsp;</td>
					</tr>
                   
				</table>
				&nbsp;</td>
			</tr>
		</table>
		</td>
	</tr>
	<tr>
		<td  height="25px" style="border-style: solid; border-width: 1px 0px 0px 0px; border-color: #C0C0C0">
		
		<table style="width: 100%" cellspacing="0" cellpadding="0">
			<tr>
				<td width="50%"><span style="font-size: 12px; font-style: normal; color: #C0C0C0">
				<asp:Literal runat="server" id="copyright">
				</asp:Literal>
				</span></td>
				<td width="50%" align="right"><span style="font-size: 12px; font-style: normal; color: #C0C0C0"><asp:Literal runat="server" id="contactus">
				</asp:Literal></span></td>
			</tr>
		</table>
		
		</td>
	</tr>
</table>
      

    </form>
</body>
</html>
