<%@ Control Language="c#" AutoEventWireup="True" Codebehind="UserGetPassWord.ascx.cs" Inherits="DreamerShop.UserControl.UserGetPassWord" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<%@ Register TagPrefix="uc1" TagName="LanguagesDeal" Src="../LanguagesManage.ascx" %>
<uc1:LanguagesDeal id="myLanguagesDeal" runat="server" Visible="False"></uc1:LanguagesDeal>
<FORM style="MARGIN: 0px" name="formgetpass" method="post">
	<TABLE cellSpacing="0" cellPadding="0" align="center" border="0">
		<TR>
			<TD align="right">用户名：</TD>
			<TD align="left" colSpan="2"><INPUT class="wenbenkuang" onkeypress="return LogonCheckInput()" type="text" maxLength="20"
					size="12" name="FGUserName">
			<TD></TD>
		</TR>
		<TR>
			<TD style="HEIGHT: 20px" align="right">验证码：</TD>
			<TD style="HEIGHT: 20px" vAlign="bottom" align="left"><INPUT class="wenbenkuang" type="text" maxLength="20" size="6" name="FGVerifyCode">
			</TD>
			<TD>
				<asp:Image id="Image2" runat="server" ImageUrl="../GetVerifyCode.aspx" ImageAlign="Bottom"
					BorderWidth="0px"></asp:Image></TD>
		</TR>
		<TR>
			<TD align="center" colSpan="3">
				<asp:Label id="lbFGMessage" runat="server" ForeColor="Red"></asp:Label></TD>
		</TR>
		<TR>
			<TD align="center" colSpan="3"><INPUT type="hidden" value="GetPass" name="logonGetPass">
				<INPUT class="go-wenbenkuang" onclick="return logonpasscheck();" type="button" value="找回密码"
					name="btlogonGetPass">
			</TD>
		</TR>
	</TABLE>
</FORM>
<SCRIPT language="javascript">
	<!--
	function LogonCheckInput(){
		if (event.keyCode == 37 || event.keyCode == 39  || event.keyCode == 60  || event.keyCode == 62 )
			event.returnValue = false;
	}
		function checkspace(checkstr) {
			var str = '';
			for(i = 0; i < checkstr.length; i++) {
				str = str + ' ';
			}
			return (str == checkstr);
		}
	
	function logonpasscheck()
	{
		if(checkspace(document.formgetpass.FGUserName.value)) {
			document.formgetpass.FGUserName.focus();
			alert('<%=GetMessageString("LoginAccountRequest")%>');
			return false;
		}
		
		
		document.formlogon.submit();
	}
	//-->
</SCRIPT>
