<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="start_client" value="<?php echo $_REQUEST['start_client']?>" />
 <div style="padding-top:40px;">
<table width="90%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td align="left" class="breadcrumb"><a href="index.php">Home</a> &raquo; Change Password</td>
                </tr>
              <tr>
                <td>&nbsp;</td>
                </tr>
                
              <tr>
                <td><h3 align="center">Change Password</h3></td>
                </tr>
                <tr>
                <td>&nbsp;</td>
                </tr>
			<tr>
                <td align="center"><font color="#FF0000"><?php echo $error_msg;?></font></td>
                </tr>
              
              <tr>
                <td>
                <table width="70%" border="0" align="center" cellpadding="0" cellspacing="0" class="table table-bordered">
                  
				  <tr>
                    <td width="46%" align="right">Old Password</td>
                    <td width="54%" align="left">
					<div class="form-group">
						<input name="oldpass" id="oldpass" type="password"  class="form-control" placeholder="New Password" required autofocus > 
					<div id="oldpass_vmsg"></div>
                      </div>
					</td>
                  </tr>
                  <tr>
                    <td width="46%" align="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">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"><input type="submit" value="Submit" name="Submit" class="btn btn-primary" /></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>
</form>
<script type="text/javascript">
$(document).ready(function() {
    $('#frm').bootstrapValidator({
        message: 'This value is not valid',
        fields: {
			oldpass: {
				container:'#oldpass_vmsg',
                message: 'The Old Password is not valid',
                validators: {
                    notEmpty: {
                        message: 'The Old Password is required and can\'t be empty'
                    }
                }
            },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>