<!--#include file="conn.asp"-->
<script language="JavaScript">
<%
rs.open "Select * from user_info where id="&clng(trim(Request.Cookies("jnw")("userid"))),conn,1,3,1
if rs.eof then
	Response.write "window.close()"
else
	if rs("Password")<>Request.form("pass1") Then
		Response.write "alert('旧密码不对');history.back();"
	else
		rs("password")=trim(Request("pass2"))
		rs.update
		Response.write "alert('密码修改成功');history.back();"
	end if
End if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
</script>