<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<!--#include virtual = "/_inc/inc_fcv_functions.asp"-->
<!--#include file = "../../fcvDAL/fcv.inc.asp"-->
<!--#include virtual = "/_inc/lib_email.asp"-->

<head>
	<title>Live Asian Webcam Girls at AsiaBarGirlCams.com</title>
	<link href="/_css/main.css" rel="stylesheet" type="text/css">
</head>

<body bgcolor="#393939" style="background-color:#393939">
<%
if cstr("" & request.form("btnSubmit")) = "" then
	call display_login_form()
else
	call send_pswd_via_email()
end if
%>
</body>
</html>

<% sub display_login_form() %>
<form method="post" action="/members/member_forgot_pswd_form.asp">
	<p>&nbsp;</p>
	<table border="0" cellspacing="0" cellpadding="4" align="center">
		<tr>
			<td align="left" colspan="2"><span class="taho-org"><b>Forgot My Password</b></span><hr></td>
		</tr>
		<tr>
			<td align="right" nowrap>User Name:</td>
			<td align="left"><input type="text" name="MemberID" value="" size="23"></td>
		</tr>
		<tr>
			<td align="right" colspan="2">
				<br><input class="button_submit" type="submit" value="Get Password >" name="btnSubmit" onmouseover="javascript:this.style.color='#000000';window.status='';return true" onmouseout="javascript:this.style.color='#FFFFFF'">
			</td>
		</tr>
	</table>
</form>
<% end sub %>



<% sub send_pswd_via_email() %>
<%
strMemberID = request.form("MemberID")
strQuery = "SELECT Password, EmailAddr FROM Viewers where ViewerID = '" & strMemberID & "'"
set adoWrapper = new FCV_ADOWrapper
set objRS = adoWrapper.GetStaticRS(strQuery)
if objRS.EOF then
	bFound = false 
else 
	bFound = true
	strPassword = objRS.fields("Password")
	strEmailAddr = objRS.fields("EmailAddr")
end if
set objRS = Nothing
set adoWrapper = Nothing

if bFound then
	message = "Password: " & strPassword
	who_to_name = strMemberID
	who_to_email = strEmailAddr
	who_from_name = "ABGC - Support Dept"
	who_from_email = "support@asiabargirlcams.com"
	subject = "ABGC - Password Recovery"
	if send_email_msg(who_to_name, who_to_email, who_from_name, who_from_email, subject, message, 0, 1, "") then
		if pdebug then response.write "Your email was successfully sent."
	else
		if pdebug then response.write "Failed to send email."
	end if
end if
%>
<div align="center">
	<p>&nbsp;</p>
	<span class="taho-org"><b>Password Retrieved</b></span></td>
	<% if bFound then %>
	<p>Your password has been emailed to<br><br><b><%=strEmailAddr%></b></p>
	<% else %>
	<p><%=strMemberID%> doesn't exist in our database. <a href="javascript:history.go(-1)" onmouseover="javascript:window.status='';return true">Try again</a></p>
	<% end if %>
	<p><input class="button_submit" type="button" value="Close Window" onClick="javascript:window.close()" onmouseover="javascript:this.style.color='#000000'" onmouseout="javascript:this.style.color='#FFFFFF'"></p>
</div>
<% end sub %>