<!--#include file="conn.asp" -->
<%
user=request.form("username")
set rs=Server.CreateObject("Adodb.Recordset")
sql="select * from [admin] where user='"&user&"' "
rs.open sql,conn,1,1
If rs.eof Then
%>
<script language="javascript">
alert("这个用户没有注册，请注册！")
;javascrip:close();</script>
<%
End If
%>
<html><head><title>取回密码 | 回答问题</title>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="images/css.css" rel="stylesheet" type="text/css">
<script language="javascript">
<!--
function form1_onsubmit() {
if (document.form1.answer.value=="")
	{
	alert("请输入您的问题答案。")
	document.form1.answer.focus()
	return false
	}
}
// --></script>
</head>
<body topmargin="20" leftmargin="0" oncontextmenu="self.event.returnValue=false">
<form method="POST" name="form1" language="javascript" onSubmit="return form1_onsubmit()" action="getpwd3.asp?username=<%=user%>">
<table border="0" cellpadding="2" cellspacing="1" width="400" bgcolor="#FFF9F4" style="border-collapse: collapse" align="center">
<TR><TD bgColor=#ffffff height=1></TD></TR>
<TR><TD align=center height=30>第二步：请回答下列问题。</TD></TR>
<tr bgcolor="#ffffff"> 
<td height="100" bgcolor="F8FAFB">  
<table border="0" cellpadding="0" width="99%" cellspacing="0" height="1" style="border-collapse: collapse" bordercolor="#111111">
<%if rs("quesion")<>"" then%>
<tr> 
<td width="100%" height="22">
问 题：
<font color="red"><%=rs("quesion")%></font> 
	<%     
conn.close     
set conn=nothing     
%>
</td>
</tr>
<tr> 
<td width="100%" height="1" align="center">答 案：
<input type="text" name="answer" size="18">
<input name="imageField" type="submit" value=" 下一步 " onFocus="this.blur()">
<br>
如果您的提示问题或答案为空，请与*<a href="mailto:qsm66@126.com">管理员</a>*联系取回您的密码!</td>
</tr>
<%end if%>
</table>
<p align="center"><a href="javascript:window.close()" class="1">关闭窗口</a></p>
</td>
</tr>
</table>
</form>
</div>
</body>
</html>