<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 name="frm" id="frm" method="post">
<input type="hidden" name="List" value="<?php echo $_REQUEST['List']?>" />
<input type="hidden" name="e" value="<?php echo $_REQUEST['e']?>" />
<input type="hidden" name="passkey" value="<?php echo $_REQUEST["key"]?>" />
<input type="hidden" name="member" value="<?php echo $_REQUEST["member"]?>" />
<input type="hidden" name="start_client" value="<?php echo $_REQUEST['start_client']?>" />


 
 <div class="container" style="padding-top:10px;">
        <div class="row" >
			<table width="99%" border="0" cellspacing="0" cellpadding="0">
             
			<tr>
                <td align="center"><font color="#FF0000"><?php echo $error_msg;?></font></td>
                </tr>
              <tr>
                <td>&nbsp;</td>
                </tr>
              <tr>
                <td>&nbsp;</td>
                </tr>
              <tr>
                <td align="center"><table width="50%" border="0" align="center" cellpadding="10" cellspacing="1">
                  <tr>
                    <td colspan="2" align="center">&nbsp;</td>
                  </tr>
                  <tr>
                    <td colspan="2" align="center">&nbsp;</td>
                  </tr>
                  <tr>
                    <td width="46%" align="right" class="frm-pad-right">New Password</td>
                    <td width="54%" align="left" >
					<div class="form-group">
						<input name="newpass" id="newpass" type="password"  class="form-control" placeholder="New Password" required autofocus > 
					<div id="pass_vmsg"></div>
                      </div>
					</td>
                  </tr>
                 <tr>
                    <td width="46%" align="right" class="frm-pad-right">Confirm New Password</td>
                    <td width="54%" align="left">
					<div class="form-group">
						<input name="repass" id="repass" type="password"  class="form-control" placeholder="Confirm Password" required autofocus > 
					<div id="repass_vmsg"></div>
                      </div>	
					</td>
                  </tr>
                  <tr>
                    <td align="center">&nbsp;</td>
                    <td align="left" style="padding-bottom:20px"><input type="submit" value="Submit" name="Submit" class="btn btn-primary" /></td>
                  </tr>
                  <tr>
                    <td colspan="2" align="center"><a href="login" class="onav">Remembered?</a> <!--| <a href="memberreg" class="onav">New Registration</a>--></td>
                  </tr>
                  <tr>
                    <td colspan="2" align="center">&nbsp;</td>
                  </tr>
                  <tr>
                    <td colspan="2" align="center">&nbsp;</td>
                  </tr>
                </table></td>
                </tr>
              <tr>
                <td>&nbsp;</td>
                </tr>
              <tr>
                <td>&nbsp;</td>
                </tr>
              <tr>
                <td>&nbsp;</td>
                </tr>
              <tr>
                <td>&nbsp;</td>
                </tr>
              </table>
            </div>
        </div>
</form>
<script type="text/javascript">
$(document).ready(function() {
    $('#frm').bootstrapValidator({
        message: 'This value is not valid',
        fields: {
            newpass: {
				container:'#pass_vmsg',
                message: 'The Password is not valid',
                validators: {
                    notEmpty: {
                        message: 'The Password is required and can\'t be empty'
                    },identical: {
                        field: 'repass',
                        message: 'The password and its confirm are not the same'
                    }
                }
            },repass: {
				container:'#repass_vmsg',
                message: 'The Confirm Password is not valid',
                validators: {
                   identical: {
                        field: 'newpass',
                        message: 'The password and its confirm are not the same'
                    }
                }
            }
        }
    });
});
</script>