<script>
function validloginmain(){
	if(document.searchfrm.uname.value==''){
		alert('Please enter User name');
		document.searchfrm.uname.focus();
		return false;
	}
	if(document.searchfrm.pass.value==''){
		alert('Please enter Password');
		document.searchfrm.pass.focus();
		return false;
	}
}
</script>
<form class="form-signin" role="form" name="login" action="<?php echo $page_name?>" method="post">
<input type="hidden" name="act" value="Submit">
       
 
<div class="container" style="padding-top:100px;">
        <div class="row" >
        	
<table width="70%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td align="left" class="breadcrumb"><a href="index.php">Home</a> &raquo; Forgot Password</span></td>
                </tr>
              <tr>
                <td>&nbsp;</td>
                </tr>
              <tr>
                <td><h3 align="center">Forgot Password</h3></td>
                </tr>
			<tr>
                <td align="center"><font color="#FF0000"><?php echo $error_msg;?></font></td>
                </tr>
              <tr>
                <td>&nbsp;</td>
                </tr>
              <tr>
                <td>&nbsp;</td>
                </tr>
              <?php if($nextstep == "OTP"){ ?>
				<tr>
                <td align="center" ><table width="50%" border="0" align="center" cellpadding="10" cellspacing="1" class="table table-bordered table-striped">
                  <tr>
                    <td width="46%" align="right" class="frm-pad-right">Enter OTP</td>
                    <td width="54%" align="left" style="padding-left:20px;"><input name="mobile_otp" id="mobile_otp" type="text"  class="form-control" placeholder="Enter OTP" required autofocus > </td>
                  </tr>
                 <tr>
                    <td align="center">&nbsp;</td>
                    <td align="left"></td>
                  </tr>
                  <tr>
                    <td align="center">&nbsp;</td>
                    <td align="left">
                    <input type="hidden" name="email" id="email" value="<?php echo $_POST['email']?>">
                    <input type="submit" value="Submit" name="Submit" class="btn btn-primary" /> &nbsp; &nbsp;<a href="login">Remembered?</a></td>
                  </tr>
                </table></td>
                </tr>  
			  <?php }else{?>  
              <tr>
                <td align="center" ><table width="50%" border="0" align="center" cellpadding="10" cellspacing="1" class="table table-bordered table-striped">
                  <tr>
                    <td width="46%" align="right" class="frm-pad-right">Your Email Address / Mobile Number</td>
                    <td width="54%" align="left" style="padding-left:20px;"><input name="email" id="email" type="text"  class="form-control" placeholder="Email address" required autofocus > </td>
                  </tr>
                 <tr>
                    <td align="center">&nbsp;</td>
                    <td align="left"></td>
                  </tr>
                  <tr>
                    <td align="center">&nbsp;</td>
                    <td align="left"><input type="submit" value="Submit" name="Submit" class="btn btn-primary" /> &nbsp; &nbsp;<a href="login">Remembered?</a></td>
                  </tr>
                </table></td>
                </tr>
               <?php }?> 
             <tr>
             <td>&nbsp;</td>
             </tr>
             <tr>
             <td>&nbsp;</td>
             </tr>
             <tr>
             <td>&nbsp;</td>
             </tr>
              </table>
              
               </div>
    </div>
</form>