<?php include("includes/php/dbconnection.php");
session_start();
      if($_REQUEST['msg'])
	   {
	   $error="<font color='red'> No User Exist Against This Email Address.</font>";
	   }
	   else
	   {
	   $error="";
	   }
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title><?php echo $page_title;?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="includes/css/style.css" rel="stylesheet" type="text/css">
<script language="JavaScript">
function validatefor()
{
if(!(isEmail(document.form1.txt_email.value)) || document.form1.txt_email.value == "")
	{
	  alert("Please Enter Valid Email Address");
	  document.form1.txt_email.focus();
	  return false;
	}
		else return true;
	}
	
function isEmail (theStr) 
{
	var atIndex = theStr.indexOf('@');
 	var dotIndex = theStr.indexOf('.', atIndex);
 	var flag = true;
 	theSub = theStr.substring(0, dotIndex+1)
 	if ((atIndex < 1)||(atIndex != theStr.lastIndexOf('@'))||(dotIndex < atIndex + 2)||(theStr.length <= theSub.length)) 
 	{	 
 		flag = false; 
 	}
 	else 
	{ 
 		flag = true; 
 	}
 	return(flag);
}
</script>
<style type="text/css">
<!--
.style6 {color: #aedo84}
-->
</style>
</head>

<body topmargin="0" bottommargin="0" onLoad="javascript: document.form1.txt_name.focus();">
<table width="80%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0"  class="border-leftt">
  <tr> 
    <td height="10" colspan="2"><?php include('includes/php/top.php'); ?></td>
  </tr>
  <tr> 
    <td width="25%" valign="top" bgcolor="#F2F2F4">&nbsp;</td>
    <td width="75%"  valign="top" class="border-right">
<form name="form1" method="post" action="recover_password.php" onSubmit="return validatefor();">
        <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="2">
                <tr> 
                  <td colspan="2" class="heading-nml">Recover Password</td>
                </tr>
                <tr> 
                  <td colspan="2" align="center" class="err-mesage"><b><?=$error; ?><?php echo $_SESSION['msg']; unset($_SESSION['msg']);?></b></td>
                </tr>
                
                <tr> 
                  <td height="10" colspan="2"></td>
                </tr>
               <!-- <tr> 
                  <td width="34%" align="right" class="lbl-text">Admin Login :&nbsp;&nbsp;</td>
                  <td width="66%" align="left"> <input name="txt_name" type="text" class="text-field" id="txt_name"> &nbsp;</td>
                </tr>-->
                <tr> 
                  <td height="35" align="right"  class="lbl-text">Email Address : &nbsp;</td>
                  <td align="left"> <input name="txt_email" type="text" class="text-field" id="txt_email"> </td>
                </tr>
                <tr> 
                  
                  <td align="center" colspan="2"><input type="submit" name="Submit" value="  Recover" class="button"> 
                  <input name="reset"  type="button" class="button" value="Cancel" onClick="window.location.href='index.php';"></td>
                </tr>
                <tr> 
                  <td height="5" colspan="2"></td>
                </tr>
                <tr> 
                  <td  align="center" colspan="2" class="txt11brown">&nbsp;</td>
                </tr>
              </table></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
        </table>
      </form>
    </td>
  </tr>
  <tr> 
    <td height="10" colspan="2"><?php include('includes/php/bottom.php'); ?></td>
  </tr>
</table>
</body>
</html>