<%@ page language="C#" autoeventwireup="true" enableeventvalidation="false" masterpagefile="~/MasterFile/TimeCheck.master" inherits="Masters_TA_UI_Master_EmployeeAdd, App_Web_2dnecc3k" %>

<%@ Register Src="~/UserControls/TA_uc_OrgLevelFilter_Updated.ascx" TagName="orglevel"
    TagPrefix="UC" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ContentPlaceHolderID="BodyContentPH" ID="Content1" runat="server">
    <script src="../plugins/datepicker/jquery-1.11.1.min.js"></script>
    <script language="javascript" src="../js/jquery.autocomplete.js" type="text/javascript"></script>
    <script src="../plugins/datepicker/bootstrap-datepicker.js"></script>
    <script type="text/javascript">
        //DateTime Control Loading
        $(function () {
            $('#ctl00_BodyContentPH_txt_Recdob').datetimepicker({ format: document.getElementById('ctl00_BodyContentPH_Hidden1').value });
            $('#ctl00_BodyContentPH_txt_dob').datetimepicker({ format: document.getElementById('ctl00_BodyContentPH_Hidden1').value });
            $('#ctl00_BodyContentPH_txt_doj').datetimepicker({ format: document.getElementById('ctl00_BodyContentPH_Hidden1').value });
            $('#ctl00_BodyContentPH_txteffDateLevel').datetimepicker({ format: document.getElementById('ctl00_BodyContentPH_Hidden1').value });
            $('#ctl00_BodyContentPH_txtInActive').datetimepicker({ format: document.getElementById('ctl00_BodyContentPH_Hidden1').value });
            $('#ctl00_BodyContentPH_txtEmpCatEffDate').datetimepicker({ format: document.getElementById('ctl00_BodyContentPH_Hidden1').value });
            $('#ctl00_BodyContentPH_txtEmpTypEffDate').datetimepicker({ format: document.getElementById('ctl00_BodyContentPH_Hidden1').value });
            $('#ctl00_BodyContentPH_txt_DesigEffDate').datetimepicker({ format: document.getElementById('ctl00_BodyContentPH_Hidden1').value });
            $('#ctl00_BodyContentPH_txtBasicSalEffDate').datetimepicker({ format: document.getElementById('ctl00_BodyContentPH_Hidden1').value });
            $('#ctl00_BodyContentPH_txt_PExpiry').datetimepicker({ format: document.getElementById('ctl00_BodyContentPH_Hidden1').value });
            $('#ctl00_BodyContentPH_txt_VExpiry').datetimepicker({ format: document.getElementById('ctl00_BodyContentPH_Hidden1').value });
            $('#ctl00_BodyContentPH_txt_AnniversaryDate').datetimepicker({ format: document.getElementById('ctl00_BodyContentPH_Hidden1').value });
            EnableRemindDays();
        });
    </script>
    <link href="../dist/css/bootstrap-responsive-tabs.css" rel="stylesheet" type="text/css">
    <script src="../dist/js/jquery.bootstrap-responsive-tabs.min.js"></script>
    <script type="text/javascript" src="../js/maxLength.js"></script>
    <script src="../js/maxLength.js" type="text/javascript"></script>
    <script type="text/javascript" src="../js/Authority.js"></script>
    <script src="../js/DateTimeValidation.js" type="text/javascript"></script>
    <script type="text/javascript" src="../js/childajax.js"></script>
    <script type="text/javascript" src="../js/spouseajax.js"></script>
    <script type="text/javascript" src="../js/Lookupddl.js"></script>
    <script type="text/javascript" src="../js/EmployeeGrade.js"></script>
    <script type="text/javascript" src="../js/LeavePolicy.js"></script>
    <script type="text/javascript" src="../js/EmpCodeValid.js"></script>
    <script type="text/javascript" src="../js/LeavePolicy_Remove.js"></script>
    <script type="text/javascript" src="../js/EmpLeavePolicy_Modify.js"></script>
    <script type="text/javascript" src="../js/EmpLeavepolicy_View.js"></script>
    <script type="text/javascript" src="../js/EmpLeavePolicyDetails.js"></script>
    <script type="text/javascript" src="../js/Emp_Leave.js"></script>
    <script type="text/javascript">
        function ShowOffical(msg) {
            jQuery(function () {
                jQuery('#tablist a[href="#Official"]').tab('show')
            });
            $('#ctl00_BodyContentPH_lblMandat').text("13 No.");
            $('html, body').animate({ scrollTop: 0 }, 'slow');
            alert(msg);
            return false;
        }
    </script>
    <script type="text/javascript">
        var Entervalid = "Enter valid";
        var AlertNumber = "number";
        var Enterchildrendetails = "Enter children details";
        var Enterspousedetails = "Enter spouse details";
        var SelectOrganizationLevel = "Select Organization Level in Official Tab";
        var EnterEmployeeFirstName = "Enter Employee First Name";
        var EnterEmployeeLastName = "Enter Employee Last Name";
        var SelectDOB = "Select DOB";
        var InvalidDOB = "Invalid DOB";
        var InvalidDOBRecord = "Invalid DOB-Record";
        var EnterContactAddress = "Enter Contact Address";
        var EntervalidEmailId = "Enter valid Email Id";
        var EnterEmployeeID = "Enter Employee ID";
        var EmployeeIdshouldnotexceed15digits = "Employee Id should not exceed 15 digits";
        var SelectDOJ = "Select Date Of Joing";
        var InvalidDOJ = "Invalid DOJ";
        var SelectDesignation = "Select Designation";
        var EnterPassword = "Enter Password";
        var Passwordshouldbeatleast5character = "Password should be atleast 5 character";
        var EnterConfirmPassword = "Enter Confirm Password";
        var PasswordAndConfirmNotMatch = "Password & Confirm Password Didn't Match";
        var EnterCardNo = "Enter Card No";
        var SelectEffectiveDateforLevel = "Select Effective Date for Level";
        var EnterEmployeeBasicSalary = "Enter Employee Basic Salary";
        var BasicSalaryshouldbegreaterthan0 = "Basic Salary should be greater than 0";
        var SelectDesignationEffectiveDate = "Select Designation Effective Date";
        var SelectBasicSalaryEffectiveDate = "Select Basic Salary Effective Date";
        var SelectEmployeeCategory = "Select Employee Category";
        var SelectEmployeeType = "Select Employee Type";
        var SelectEffectiveDateforCategory = "Select Effective Date for Category";
        var SelectEffectiveDateforEmployeeType = "Select Effective Date for Employee Type";
        var OrgLeveleffdateshouldbeequaltoDOJ = "Organization Level effective date should be equal to Date of Joining";
        var DesigeffdateshouldbeequaltoDOJ = "Designation effective date should be equal to Date of Joining";
        var BasicsaleffdateshouldbeequaltoDOJ = "Basic salary effective date should be equal to Date of Joining";
        var EmpCateffdateshouldbeequaltoDOJ = "Employee Category effective date should be equal to Date of Joining";
        var EmpTypeeffdateshouldbeequaltoDOJ = "Employee Type effective date should be equal to Date of Joining";
        var DOJshouldbegreaterthanDOB = "Date of Joining should be greater than Date of Birth";
        var ClickCalculateButtontocalProrata = "Click Calculate Button to calculate Prorata";
        var InvalidPassportExpiryDate = "Invalid Passport Expiry Date";
        var InvalidVisaExpiryDate = "Invalid Visa Expiry Date";
        var InvalidAnniversaryDate = "Invalid Anniversary Date";
        var SelectLeavePolicy = "Select Leave Policy";
        var SaveEmployeeInformation = "Do you want to save employee information?";
        var ChckMaxLength500 = "Maximum length is 500";
        var MaxLength = "Maximum length is ";
        var ErrorretrievingdatafromAuthority = "Error retrieving data from Authority!";
        var EmployeeIDAlreadyExists = "Employee ID already exists";
        var SwipeCardNumberAlreadyExists = "Swipe Card Number Already Exists";
        var EntertheChildrenintherangeof1to10 = "Enter the Children in the range of 1-10";
        var NoDetailsfoundinChild = "No Details found in Child";
        var Errorinretrivingdetails = "Error in retrieving details";
        var InvalidChildDOB = "Invalid Child DOB";
        var EntertheSpouseintherangeof1to4 = "Enter the Spouse in the range of 1-4";
        var NoDetailsfoundinspouse = "No Details found in spouse";
        var Errorinretrivingdetailsfromspouse = "Error in retrieving details from spouse";
        var InvalidSpouseDOB = "Invalid Spouse DOB";
        var EntertheSpouseintherangeof1to10 = "Enter the Spouse in the range of 1-10";
        var FillLeavePolicy = "Fill Leave Policy";
        var Leavepolicydurationshouldnotbeempty = "Leave policy duration should not be empty";
        var SelectDate = "Select Date";
        var InvalidDate = "Invalid Date";
        var PolicyStartDateshouldbegreaterthantheDOJ = "Policy Start Date should be greater than the Date Of Joining";
        var PolicyDatealreadyExists = "Policy Date Already Exists";
        var FillStartDateandEndDate = "Fill Start Date and End Date";
        var NoDetailsfoundinEmpLeave = "No Details found  in Emp Leave";
        var Errorinretrivingdetails = "Error in retrieving details";
        var LeavePolicyNoDetailsfoundinEmpLeave = "Leave Policy - No Details found  in Emp Leave";
        var LeavePolicyErrorinretrivingdetails = "Leave Policy - Error in retrieving details";
        var PolicyDateContinutyMissing = "Policy Date Continuty Missing";
        var Errorretrievingdatafromlookup = "Error retrieving data from lookup";
        var NoDetailsfoundinLeavePolicy = "No Details found in Leave Policy";
        var ErrorinretrivingdetailsfromLeavepolicy = "Error in retrieving details from Leave policy";
        var SelectOTCompOff = "Select either OT Eligible or Compensation Off Eligible";
        var AlertOTCompOff = "Select the CompOff Daywise Leave Policy.";
        var SelectInActiveDateinOfficalTab = "Select InActive Date in Offical Tab";
        var InactiveDateshouldbegreaterthanDOJ = "Inactive Date should be greater than Date of Joining";
        var FillPassportNo = "Fill Passport Number";
        var FillVisaNo = "Fill Visa Number";
        var FillPassportExpryDate = "Fill Passport Expiry Date";
        var FillVisaExpryDate = "Fill Visa Expiry Date";

        function MaxLengthh(maxLength) {
            MaxLength = maxLength;
        }
        function ChMaxLength500Fun(chckMaxLength500) {
            ChckMaxLength500 = chckMaxLength500;
        }
        function Alert_LookUp(errorretrievingdatafromlookup, noDetailsfoundinLeavePolicy, errorinretrivingdetailsfromLeavepolicy) {
            Errorretrievingdatafromlookup = errorretrievingdatafromlookup;
            NoDetailsfoundinLeavePolicy = noDetailsfoundinLeavePolicy;
            ErrorinretrivingdetailsfromLeavepolicy = errorinretrivingdetailsfromLeavepolicy;
        }
        function SetAlert_LeavePolicy
        (
         fillLeavePolicy,
         leavepolicydurationshouldnotbeempty,
         selectDate,
         invalidDate,
         policyStartDateshouldbegreaterthantheDOJ,
         policyDatealreadyExists,
         fillStartDateandEndDate,
         noDetailsfoundinEmpLeave,
         errorinretrivingdetails,
         leavePolicyNoDetailsfoundinEmpLeave,
         leavePolicyErrorinretrivingdetails,
         policyDateContinutyMissing,
         AlertOTCompOff
        ) {
            FillLeavePolicy = fillLeavePolicy;
            Leavepolicydurationshouldnotbeempty = leavepolicydurationshouldnotbeempty;
            SelectDate = selectDate;
            InvalidDate = invalidDate;
            PolicyStartDateshouldbegreaterthantheDOJ = policyStartDateshouldbegreaterthantheDOJ;
            PolicyDatealreadyExists = policyDatealreadyExists;
            FillStartDateandEndDate = fillStartDateandEndDate;
            NoDetailsfoundinEmpLeave = noDetailsfoundinEmpLeave;
            Errorinretrivingdetails = errorinretrivingdetails;
            LeavePolicyNoDetailsfoundinEmpLeave = leavePolicyNoDetailsfoundinEmpLeave;
            LeavePolicyErrorinretrivingdetails = leavePolicyErrorinretrivingdetails;
            PolicyDateContinutyMissing = policyDateContinutyMissing;
            AlertOTCompOff = AlertOTCompOff;
        }
        function SetAlert_AjaxSpouse(entertheSpouseintherangeof1to4, noDetailsfoundinspouse, errorinretrivingdetailsfromspouse, invalidSpouseDOB, entertheSpouseintherangeof1to10) {
            EntertheSpouseintherangeof1to4 = entertheSpouseintherangeof1to4;
            NoDetailsfoundinspouse = noDetailsfoundinspouse;
            Errorinretrivingdetailsfromspouse = errorinretrivingdetailsfromspouse;
            InvalidSpouseDOB = invalidSpouseDOB;
            EntertheSpouseintherangeof1to10 = entertheSpouseintherangeof1to10;
        }
        function SetAlert_AjaxChild(entertheChildrenintherangeof1to10, noDetailsfoundinChild, errorinretrivingdetails, invalidChildDOB) {
            EntertheChildrenintherangeof1to10 = entertheChildrenintherangeof1to10;
            NoDetailsfoundinChild = noDetailsfoundinChild;
            Errorinretrivingdetails = errorinretrivingdetails;
            InvalidChildDOB = invalidChildDOB;
        }
        function SetAlertMessages(
         entervalid,
         alertNumber,
         enterchildrendetails,
         enterspousedetails,
         selectOrganizationLevel,
         enterEmployeeFirstName,
         enterEmployeeLastName,
         selectDOB,
         invalidDOB,
         invalidDOBRecord,
         enterContactAddress,
         entervalidEmailId,
         enterEmployeeID,
         employeeIdshouldnotexceed15digits,
         selectDOJ,
         invalidDOJ,
         selectDesignation,
         enterPassword,
         passwordshouldbeatleast5character,
         enterConfirmPassword,
         passwordAndConfirmNotMatch,
         enterCardNo,
         selectEffectiveDateforLevel,
         enterEmployeeBasicSalary,
         basicSalaryshouldbegreaterthan0,
         selectDesignationEffectiveDate,
         selectBasicSalaryEffectiveDate,
         selectEmployeeCategory,
         selectEmployeeType,
         selectEffectiveDateforCategory,
         selectEffectiveDateforEmployeeType,
         orgLeveleffdateshouldbeequaltoDOJ,
         desigeffdateshouldbeequaltoDOJ,
         basicsaleffdateshouldbeequaltoDOJ,
         empCateffdateshouldbeequaltoDOJ,
         empTypeeffdateshouldbeequaltoDOJ,
         dOJshouldbegreaterthanDOB,
         clickCalculateButtontocalProrata,
         invalidPassportExpiryDate,
         invalidVisaExpiryDate,
         invalidAnniversaryDate,
         selectLeavePolicy,
         saveEmployeeInformation,
         errorretrievingdatafromAuthority,
         employeeIDAlreadyExists,
         swipeCardNumberAlreadyExists,
         inactiveDateshouldbegreaterthanDOJ,
         selectInActiveDateinOfficalTab
        ) {
            Entervalid = entervalid;
            AlertNumber = alertNumber;
            Enterchildrendetails = enterchildrendetails;
            Enterspousedetails = enterspousedetails;
            SelectOrganizationLevel = selectOrganizationLevel;
            EnterEmployeeFirstName = enterEmployeeFirstName;
            EnterEmployeeLastName = enterEmployeeLastName;
            SelectDOB = selectDOB;
            InvalidDOB = invalidDOB;
            InvalidDOBRecord = invalidDOBRecord;
            EnterContactAddress = enterContactAddress;
            EntervalidEmailId = entervalidEmailId;
            EnterEmployeeID = enterEmployeeID;
            EmployeeIdshouldnotexceed15digits = employeeIdshouldnotexceed15digits;
            SelectDOJ = selectDOJ;
            InvalidDOJ = invalidDOJ;
            SelectDesignation = selectDesignation;
            EnterPassword = enterPassword;
            Passwordshouldbeatleast5character = passwordshouldbeatleast5character;
            EnterConfirmPassword = enterConfirmPassword;
            PasswordAndConfirmNotMatch = passwordAndConfirmNotMatch;
            EnterCardNo = enterCardNo;
            SelectEffectiveDateforLevel = selectEffectiveDateforLevel;
            EnterEmployeeBasicSalary = enterEmployeeBasicSalary;
            BasicSalaryshouldbegreaterthan0 = basicSalaryshouldbegreaterthan0;
            SelectDesignationEffectiveDate = selectDesignationEffectiveDate;
            SelectBasicSalaryEffectiveDate = selectBasicSalaryEffectiveDate;
            SelectEmployeeCategory = selectEmployeeCategory;
            SelectEmployeeType = selectEmployeeType;
            SelectEffectiveDateforCategory = selectEffectiveDateforCategory;
            SelectEffectiveDateforEmployeeType = selectEffectiveDateforEmployeeType;
            OrgLeveleffdateshouldbeequaltoDOJ = orgLeveleffdateshouldbeequaltoDOJ;
            DesigeffdateshouldbeequaltoDOJ = desigeffdateshouldbeequaltoDOJ;
            BasicsaleffdateshouldbeequaltoDOJ = basicsaleffdateshouldbeequaltoDOJ;
            EmpCateffdateshouldbeequaltoDOJ = empCateffdateshouldbeequaltoDOJ;
            EmpTypeeffdateshouldbeequaltoDOJ = empTypeeffdateshouldbeequaltoDOJ;
            DOJshouldbegreaterthanDOB = dOJshouldbegreaterthanDOB;
            ClickCalculateButtontocalProrata = clickCalculateButtontocalProrata;
            InvalidPassportExpiryDate = invalidPassportExpiryDate;
            InvalidVisaExpiryDate = invalidVisaExpiryDate;
            InvalidAnniversaryDate = invalidAnniversaryDate;
            SelectLeavePolicy = selectLeavePolicy;
            SaveEmployeeInformation = saveEmployeeInformation;
            ErrorretrievingdatafromAuthority = errorretrievingdatafromAuthority;
            EmployeeIDAlreadyExists = employeeIDAlreadyExists;
            SwipeCardNumberAlreadyExists = swipeCardNumberAlreadyExists;
            InactiveDateshouldbegreaterthanDOJ = inactiveDateshouldbegreaterthanDOJ;
            SelectInActiveDateinOfficalTab = selectInActiveDateinOfficalTab;
        }
        var Monthfourdigit = 'Please enter valid date as month, day, and four digit year : Format MM/dd/yyyy.';
        var Datefourdigit = 'Please enter valid date with correct format dd/MM/yyyy';
        var Invalidyearentry = 'Invalid year entry';
        var Invalidmonthentry = 'Invalid month entry';
        var Invaliddateentry = 'Invalid date entry';
        var DateformatDDMONYYYY = 'Incorrect date format. Enter as DD-MON-YYYY';
        var Entertime = 'Enter time';
        var Valueforhours = 'Invalid value for hours:';
        var Invalidvalueforminutes = 'Invalid value for minutes:';
        var Invalidtimeformat = 'Invalid time format:';
        var EntervalidDateandTime = 'Please enter valid Date and Time';
        var ValiddatemonthMMDDYYHHMM = 'Please enter valid Date and Time MM/dd/yyyy HH:mm';
        var ValiddatemonthMMDDYYHHMMTT = 'Please enter valid Date and Time MM/dd/yyyy hh:mm tt';
        var EntervalidDateandTime = 'Please enter valid Date and Time';
        var Invalidvalueforhours = 'Invalid value for hours:';
        var Invalidvalueforminites = 'Invalid value for minutes:';
        var EmailID_For_PassportExpiry = 'Enter email Id to receive Passport expiry notification';
        var EmailID_For_VisaExpiry = 'Enter email Id to receive Visa expiry notification';
        

        function SetAlertCheckDate(monthfourdigit, datefourdigit, invalidyearentry, invalidmonthentry, invaliddateentry, dateformatDDMONYYYY, entertime, valueforhours, invalidvalueforminutes, invalidtimeformat, entervalidDateandTime, validdatemonthMMDDYYHHMM, validdatemonthMMDDYYHHMMTT, entervalidDateandTime, invalidvalueforhours, invalidvalueforminites) {
            Monthfourdigit = monthfourdigit;
            Datefourdigit = datefourdigit;
            Invalidyearentry = invalidyearentry;
            Invalidmonthentry = invalidmonthentry;
            Invaliddateentry = invaliddateentry;
            DateformatDDMONYYYY = dateformatDDMONYYYY;
            Entertime = Entertime;
            Valueforhours = valueforhours;
            Invalidvalueforminutes = invalidvalueforminutes;
            Invalidtimeformat = invalidtimeformat;
            EntervalidDateandTime = entervalidDateandTime;
            ValiddatemonthMMDDYYHHMM = validdatemonthMMDDYYHHMM;
            ValiddatemonthMMDDYYHHMMTT = validdatemonthMMDDYYHHMMTT;
            EntervalidDateandTime = entervalidDateandTime;
            Invalidvalueforhours = invalidvalueforhours;
            Invalidvalueforminites = invalidvalueforminites;
        }
        var ph;
        function assignValue(e, ctrl, val) {
            var keycode;
            if (window.event) keycode = window.event.keyCode;
            else if (e) keycode = e.which;
            else if (event) keycode = event.keyCode;
            else return true;
            ph = ctrl.value;
            if (ctrl.value.lastIndexOf("+") == 0 || ctrl.value.lastIndexOf("+") == -1) {
            }
            else {
                ctrl.value = ph;
                ctrl.focus();
                alert(Entervalid + val + AlertNumber);
                return false
            }
            if (!(keycode == 58 && e.value.indexOf(":") > -1)) {
                if ((keycode == 40) || (keycode == 41) || (keycode == 43) || (keycode == 45) || (keycode >= 48 && keycode <= 57) || (keycode == 0) || (keycode == 8)) {
                    return true;
                }
                else {
                    return false;
                }
            }
            else {
                return false;
            }
            return true;
        }
        function checkPhone(e) {
            var keycode;
            if (window.event) keycode = window.event.keyCode;
            else if (e) keycode = e.which;
            else if (event) keycode = event.keyCode;
            else return true;
            if (!(keycode == 58 && e.value.indexOf(":") > -1)) {
                if ((keycode == 40) || (keycode == 41) || (keycode == 43) || (keycode == 45) || (keycode >= 48 && keycode <= 57) || (keycode == 8) || (keycode == 0)) {
                    return true;
                }
                else {
                    return false;
                }
            }
            else {
                return false;
            }
            return true;
        }
        //To validate employee code Id (i.e) Alpahabets should be at first and numeric should be last.
        //Once a numeric is inserted in the text it should not allow alphabet.
        function Validate_EmployeeCodeId(e, ctrl) {
            if (!e) e = window.event;
            var keycode = (window.event) ? e.keyCode : e.which;
            if (ctrl.value == '') {
                document.getElementById('ctl00_BodyContentPH_hdnNumericExists').value = 'false';
            }
            if (document.getElementById('ctl00_BodyContentPH_hdnNumericExists').value == 'false') {
                if (document.selection) {
                    var selection = document.selection.createRange();
                    var selected_text = selection.text;
                }
                else if (document.getSelection) {
                    var start = ctrl.selectionStart;
                    var end = ctrl.selectionEnd;
                    var selected_text = ctrl.value.substring(start, end);
                }
                //keycodes allowed but not in the beginning - space
                if (((ctrl.value).length == 0 || selected_text != "") && (keycode == 32)) {
                    return false;
                }
                // The Special Characters ':' not allowed in the beginning
                if ((keycode == 58) && (((ctrl.value).length == 0) || selected_text != "")) {
                    return false;
                }
                if ((keycode >= 48 && keycode <= 57) || (keycode >= 65 && keycode <= 90) || (keycode >= 97 && keycode <= 122) || keycode == 8 || keycode == 0) {
                    if ((keycode >= 48 && keycode <= 57)) {
                        document.getElementById('ctl00_BodyContentPH_hdnNumericExists').value = 'true';
                    }
                    return true;
                }
                else {
                    return false;
                }
            }
            else if (document.getElementById('ctl00_BodyContentPH_hdnNumericExists').value == 'true') {
                if ((keycode >= 48 && keycode <= 57) || keycode == 8 || keycode == 0) {
                    return true;
                }
                else {
                    return false;
                }
            }
        }
        function PersonalTab() {
            document.getElementById('ctl00_BodyContentPH_PH_Personal').style.display = "block";
            document.getElementById('ctl00_BodyContentPH_PH_Official').style.display = "none";
            document.getElementById('ctl00_BodyContentPH_PH_LeavePolicy').style.display = "none";
            document.getElementById('ctl00_BodyContentPH_PH_Others').style.display = "none";
            document.getElementById('ctl00_BodyContentPH_txt_EmpFirstName').focus;
            $('#tablist a[href="#Personal"]').tab('show');
            $('#ctl00_BodyContentPH_lblMandat').text("1 No.");
            $('html, body').animate({ scrollTop: 0 }, 'slow');
            return false;
        }
        function SaveButton(FillLeavePolicy, Leavepolicydurationshouldnotbeempty, SelectDate, InvalidDate, PolicyStartDateshouldbegreaterthantheDOJ, PolicyDatealreadyExists, FillStartDateandEndDate, NoDetailsfoundinEmpLeave, Errorinretrivingdetails, LeavePolicyNoDetailsfoundinEmpLeave, LeavePolicyErrorinretrivingdetails, PolicyDateContinutyMissing) {
            debugger;
            if (document.aspnetForm.ctl00_BodyContentPH_txt_AnniversaryDate.value != '') {
                var weekDay = document.aspnetForm.ctl00_BodyContentPH_txt_AnniversaryDate;
                var DateFormat = document.getElementById('ctl00_BodyContentPH_Hidden1').value;
                if (checkDate(weekDay, DateFormat, Monthfourdigit, Datefourdigit, Invalidyearentry, Invalidmonthentry, Invaliddateentry, DateformatDDMONYYYY, Entertime, Valueforhours, Invalidvalueforminutes, Invalidtimeformat, EntervalidDateandTime, ValiddatemonthMMDDYYHHMM, ValiddatemonthMMDDYYHHMMTT, EntervalidDateandTime, Invalidvalueforhours, Invalidvalueforminites)) {
                }
                else {
                    return false;
                }
            }

            var chk_IspassportChecked = document.getElementById('ctl00_BodyContentPH_chk_IspassportRemindReq').value;
            var chk_IsVisaChecked = document.getElementById('ctl00_BodyContentPH_chk_IsVisaRemindReq').value;


            if (chk_IspassportChecked.checked == true) {

                debugger;


                if (document.aspnetForm.ctl00_BodyContentPH_txt_Passport.value = '') {
                    alert(FillPassportNo);
                    return false;
                }

                if (document.aspnetForm.ctl00_BodyContentPH_txt_PExpiry.value = '') {
                    alert(FillPassportExpryDate);
                    return false;
                }

                if (document.aspnetForm.ctl00_BodyContentPH_txt_EmailID.value = '') {
                    alert(EmailID_For_PassportExpiry);
                    return false;
                }
            }

            if (chk_IsVisaChecked.checked == true) {
                debugger;

                if (document.aspnetForm.ctl00_BodyContentPH_txt_Visa.value = '') {
                    alert(FillVisaNo);
                    return false;
                }

                if (document.aspnetForm.ctl00_BodyContentPH_txt_VExpiry.value = '') {
                    alert(FillVisaExpryDate);
                    return false;
                }

                if (document.aspnetForm.ctl00_BodyContentPH_txt_EmailID.value = '') {
                    alert(EmailID_For_VisaExpiry);
                    return false;
                }
            }


            if (document.aspnetForm.ctl00_BodyContentPH_txt_PExpiry.value != '') {
                var weekDay = document.aspnetForm.ctl00_BodyContentPH_txt_PExpiry;
                var DateFormat = document.getElementById('ctl00_BodyContentPH_Hidden1').value;
                if (checkDate(weekDay, DateFormat, Monthfourdigit, Datefourdigit, Invalidyearentry, Invalidmonthentry, Invaliddateentry, DateformatDDMONYYYY, Entertime, Valueforhours, Invalidvalueforminutes, Invalidtimeformat, EntervalidDateandTime, ValiddatemonthMMDDYYHHMM, ValiddatemonthMMDDYYHHMMTT, EntervalidDateandTime, Invalidvalueforhours, Invalidvalueforminites)) {
                }
                else {
                    return false;
                }
            }
            if (document.aspnetForm.ctl00_BodyContentPH_txt_VExpiry.value != '') {
                var weekDay = document.aspnetForm.ctl00_BodyContentPH_txt_VExpiry;
                var DateFormat = document.getElementById('ctl00_BodyContentPH_Hidden1').value;
                if (checkDate(weekDay, DateFormat, Monthfourdigit, Datefourdigit, Invalidyearentry, Invalidmonthentry, Invaliddateentry, DateformatDDMONYYYY, Entertime, Valueforhours, Invalidvalueforminutes, Invalidtimeformat, EntervalidDateandTime, ValiddatemonthMMDDYYHHMM, ValiddatemonthMMDDYYHHMMTT, EntervalidDateandTime, Invalidvalueforhours, Invalidvalueforminites)) {
                }
                else {
                    return false;
                }
            }
            if (Validation1() == true) {
                if (Validation2() == true) {
                    if (Validation3() == true) {
                        if (Validation4() == true) {
                            if (Spouse_Child_Validation() == true) {
                                if (Confirmation() == true) {
                                    return ValidateLeavePolicy(FillLeavePolicy, Leavepolicydurationshouldnotbeempty, SelectDate, InvalidDate, PolicyStartDateshouldbegreaterthantheDOJ, PolicyDatealreadyExists, FillStartDateandEndDate, NoDetailsfoundinEmpLeave, Errorinretrivingdetails, LeavePolicyNoDetailsfoundinEmpLeave, LeavePolicyErrorinretrivingdetails, PolicyDateContinutyMissing);
                                }
                                else {
                                    return false
                                }
                            }
                            else {
                                return false;
                            }
                        }
                        else {
                            return false;
                        }
                    }
                    else {
                        return false
                    }
                }
                else {
                    return false
                }
            }
            else {
                return false
            }
        }
        function Spouse_Child_Validation() {
            var hdnChildren = document.getElementById('ctl00_BodyContentPH_txt_ChildrenNo').value;
            var ChildName = "txt_ChName";
            var ChildDOB = "txt_ChildDOB";
            if (hdnChildren > 0) {
                for (var i = 1; i <= hdnChildren; i++) {
                    if (document.getElementById(ChildName + i).value == "") {
                        alert(Enterchildrendetails);
                        return false;
                    }
                    if (document.getElementById(ChildDOB + i).value == "") {
                        alert(Enterchildrendetails);
                        return false;
                    }
                }
            }
            var hdnSpouse = document.getElementById('ctl00_BodyContentPH_txt_SpouseNo').value;
            var SpouseName = "txt_SpName";
            var SpouseDOB = "txt_SpouseDOB";
            if (hdnSpouse > 0) {
                for (var i = 1; i <= hdnSpouse; i++) {
                    if (document.getElementById(SpouseName + i).value == "") {
                        alert(Enterspousedetails);
                        return false;
                    }
                    if (document.getElementById(SpouseDOB + i).value == "") {
                        alert(Enterspousedetails);
                        return false;
                    }
                }
            }
            return true;
        }
        function SelectDualOption() {
            var OTEligible = document.getElementById('ctl00_BodyContentPH_chk_OTEligible');
            var CompoffEligible = document.getElementById('ctl00_BodyContentPH_chk_CompOffEligible');
            var CompOffAndOT = document.getElementById('ctl00_BodyContentPH_chk_CompOffAndOT');
            CompOffAndOT.checked = (OTEligible.checked && CompoffEligible.checked);
        }
        function EnableRemindDays() {
            if (document.aspnetForm.ctl00_BodyContentPH_chk_IspassportRemindReq.checked) {
                document.getElementById("ctl00_BodyContentPH_txtPassportRemindDayscount").disabled = false;
                document.getElementById("ctl00_BodyContentPH_txtPassportRemindDayscount").value = "20";
            }
            else {
                document.getElementById("ctl00_BodyContentPH_txtPassportRemindDayscount").disabled = true;
                document.getElementById("ctl00_BodyContentPH_txtPassportRemindDayscount").value = "0";
            }

            if (document.aspnetForm.ctl00_BodyContentPH_chk_IsVisaRemindReq.checked) {
                document.getElementById("ctl00_BodyContentPH_txtVisaRemindDayscount").disabled = false;
                document.getElementById("ctl00_BodyContentPH_txtVisaRemindDayscount").value = "20";
            }
            else {
                document.getElementById("ctl00_BodyContentPH_txtVisaRemindDayscount").disabled = true;
                document.getElementById("ctl00_BodyContentPH_txtVisaRemindDayscount").value = "0";
            }
        }
        function ValidateLeavePolicy(FillLeavePolicy, Leavepolicydurationshouldnotbeempty, SelectDate, InvalidDate, PolicyStartDateshouldbegreaterthantheDOJ, PolicyDatealreadyExists, FillStartDateandEndDate, NoDetailsfoundinEmpLeave, Errorinretrivingdetails, LeavePolicyNoDetailsfoundinEmpLeave, LeavePolicyErrorinretrivingdetails, PolicyDateContinutyMissing) {
            ajaxEmpLeave_saveButton(FillLeavePolicy, Leavepolicydurationshouldnotbeempty, SelectDate, InvalidDate, PolicyStartDateshouldbegreaterthantheDOJ, PolicyDatealreadyExists, FillStartDateandEndDate, NoDetailsfoundinEmpLeave, Errorinretrivingdetails, LeavePolicyNoDetailsfoundinEmpLeave, LeavePolicyErrorinretrivingdetails, PolicyDateContinutyMissing);
            return false;
        }
        function FillEffectiveDates() {
            var doj = document.aspnetForm.ctl00_BodyContentPH_txt_doj.value;
            document.aspnetForm.ctl00_BodyContentPH_txteffDateLevel.value = doj;
            document.aspnetForm.ctl00_BodyContentPH_txt_DesigEffDate.value = doj;
            document.aspnetForm.ctl00_BodyContentPH_txtBasicSalEffDate.value = doj;
            document.aspnetForm.ctl00_BodyContentPH_txtEmpTypEffDate.value = doj;
            document.aspnetForm.ctl00_BodyContentPH_txtEmpCatEffDate.value = doj;
        }
        function DynamicDatePicker(Format, txtBoxId) {
            try {
                $("#" + txtBoxId).datetimepicker({ format: document.getElementById('ctl00_BodyContentPH_Hidden1').value });
            }
            catch (err) {
            }
        }
        function pwd_validation() {
            return true;
        }
        function div_show_Post() {
            document.getElementById('ctl00_BodyContentPH_PH_Personal').style.display = "none";
            document.getElementById('ctl00_BodyContentPH_PH_Official').style.display = "block";
            document.getElementById('ctl00_BodyContentPH_PH_LeavePolicy').style.display = "none";
            document.getElementById('ctl00_BodyContentPH_PH_Others').style.display = "none";
            document.getElementById('ctl00_BodyContentPH_txt_EmpID').focus;
            $('#tablist a[href="#Official"]').tab('show');
            $('#ctl00_BodyContentPH_lblMandat').text("13 No.");
            $('html, body').animate({ scrollTop: 0 }, 'slow');
            document.getElementById('ddlLevel0').focus();
        }
        function div_show() {
            document.getElementById('ctl00_BodyContentPH_PH_Personal').style.display = "block";
            document.getElementById('ctl00_BodyContentPH_PH_Official').style.display = "none";
            document.getElementById('ctl00_BodyContentPH_PH_LeavePolicy').style.display = "none";
            document.getElementById('ctl00_BodyContentPH_PH_Others').style.display = "none";
            document.getElementById('ctl00_BodyContentPH_txt_EmpFirstName').focus;
            $('#tablist a[href="#Personal"]').tab('show');
            $('#ctl00_BodyContentPH_lblMandat').text("1 No.");
            $('html, body').animate({ scrollTop: 0 }, 'slow');
        }
        function div_show0() {
            if (document.getElementById('ctl00_BodyContentPH_PH_Official').style.display == "block") {
                if (Validation2() == true) {
                    document.getElementById('ctl00_BodyContentPH_PH_Personal').style.display = "block";
                    document.getElementById('ctl00_BodyContentPH_PH_Official').style.display = "none";
                    document.getElementById('ctl00_BodyContentPH_PH_LeavePolicy').style.display = "none";
                    document.getElementById('ctl00_BodyContentPH_PH_Others').style.display = "none";
                    $('#tablist a[href="#Personal"]').tab('show');
                    $('#ctl00_BodyContentPH_lblMandat').text("1 No.");
                    $('html, body').animate({ scrollTop: 0 }, 'slow');
                }
                else {
                    document.getElementById('ddlLevel0').focus();
                    $('#tablist a[href="#Official"]').tab('show');
                    $('#ctl00_BodyContentPH_lblMandat').text("13 No.");
                    $('html, body').animate({ scrollTop: 0 }, 'slow');
                    return false;
                }
            }
            else if (document.getElementById('ctl00_BodyContentPH_PH_LeavePolicy').style.display == "block") {
                if (Validation3() == true) {
                    document.getElementById('ctl00_BodyContentPH_PH_Personal').style.display = "block";
                    document.getElementById('ctl00_BodyContentPH_PH_Official').style.display = "none";
                    document.getElementById('ctl00_BodyContentPH_PH_LeavePolicy').style.display = "none";
                    document.getElementById('ctl00_BodyContentPH_PH_Others').style.display = "none";
                    document.getElementById('ctl00_BodyContentPH_txt_EmpFirstName').focus;
                    $('#tablist a[href="#Personal"]').tab('show');
                    $('#ctl00_BodyContentPH_lblMandat').text("1 No.");
                    $('html, body').animate({ scrollTop: 0 }, 'slow');
                }
                else {
                    $('#tablist a[href="#LeavePolicy"]').tab('show');
                    $('#ctl00_BodyContentPH_lblMandat').text("NIL");
                    $('html, body').animate({ scrollTop: 0 }, 'slow');
                    return false;
                }
            }
            else if (document.getElementById('ctl00_BodyContentPH_PH_Others').style.display == "block") {
                if (Validation4() == true) {
                    document.getElementById('ctl00_BodyContentPH_PH_Personal').style.display = "block";
                    document.getElementById('ctl00_BodyContentPH_PH_Official').style.display = "none";
                    document.getElementById('ctl00_BodyContentPH_PH_LeavePolicy').style.display = "none";
                    document.getElementById('ctl00_BodyContentPH_PH_Others').style.display = "none";
                    document.getElementById('ctl00_BodyContentPH_txt_EmpFirstName').focus;
                    $('#tablist a[href="#Personal"]').tab('show');
                    $('#ctl00_BodyContentPH_lblMandat').text("1 No.");
                    $('html, body').animate({ scrollTop: 0 }, 'slow');
                }
                else {
                    $('#tablist a[href="#Others"]').tab('show');
                    $('#ctl00_BodyContentPH_lblMandat').text("NIL");
                    $('html, body').animate({ scrollTop: 0 }, 'slow');
                    return false;
                }
            }
            return false;
        }
        function div_show1() {
            if (document.aspnetForm.ctl00_BodyContentPH_rbtn_Single.checked) {
                document.getElementById("ctl00_BodyContentPH_txt_SpouseNo").disabled = true;
                document.getElementById("ctl00_BodyContentPH_txt_ChildrenNo").disabled = true;
                document.getElementById("ctl00_BodyContentPH_txt_SpouseNo").value = "";
                document.getElementById("ctl00_BodyContentPH_txt_ChildrenNo").value = "";
            }
            else {
                document.getElementById("ctl00_BodyContentPH_txt_SpouseNo").disabled = false;
                document.getElementById("ctl00_BodyContentPH_txt_ChildrenNo").disabled = false;
            }
            if (document.aspnetForm.ctl00_BodyContentPH_txt_dob.value != '') {
                var weekDay = document.aspnetForm.ctl00_BodyContentPH_txt_dob;
                var DateFormat = document.getElementById('ctl00_BodyContentPH_Hidden1').value;
                if (checkDate(weekDay, DateFormat, Monthfourdigit, Datefourdigit, Invalidyearentry, Invalidmonthentry, Invaliddateentry, DateformatDDMONYYYY, Entertime, Valueforhours, Invalidvalueforminutes, Invalidtimeformat, EntervalidDateandTime, ValiddatemonthMMDDYYHHMM, ValiddatemonthMMDDYYHHMMTT, EntervalidDateandTime, Invalidvalueforhours, Invalidvalueforminites)) {
                    if (document.aspnetForm.ctl00_BodyContentPH_txt_Recdob.value != '') {
                        var weekDay = document.aspnetForm.ctl00_BodyContentPH_txt_Recdob;
                        var DateFormat = document.getElementById('ctl00_BodyContentPH_Hidden1').value;
                        if (checkDate(weekDay, DateFormat, Monthfourdigit, Datefourdigit, Invalidyearentry, Invalidmonthentry, Invaliddateentry, DateformatDDMONYYYY, Entertime, Valueforhours, Invalidvalueforminutes, Invalidtimeformat, EntervalidDateandTime, ValiddatemonthMMDDYYHHMM, ValiddatemonthMMDDYYHHMMTT, EntervalidDateandTime, Invalidvalueforhours, Invalidvalueforminites)) {
                        }
                        else {
                            return false;
                        }
                    }
                }
                else {
                    return false;
                }
            }
            if (document.getElementById('ctl00_BodyContentPH_PH_Personal').style.display == "block") {
                if (Validation1() == true) {
                    document.getElementById('ctl00_BodyContentPH_PH_Personal').style.display = "none";
                    document.getElementById('ctl00_BodyContentPH_PH_Official').style.display = "block";
                    document.getElementById('ctl00_BodyContentPH_PH_LeavePolicy').style.display = "none";
                    document.getElementById('ctl00_BodyContentPH_PH_Others').style.display = "none";
                    document.getElementById('ctl00_BodyContentPH_txt_EmpID').focus();
                    $('#tablist a[href="#Official"]').tab('show');
                    $('#ctl00_BodyContentPH_lblMandat').text("13 No.");
                    $('html, body').animate({ scrollTop: 0 }, 'slow');
                    document.getElementById('ddlLevel0').focus();
                }
                else {
                    $('#tablist a[href="#Personal"]').tab('show');
                    $('#ctl00_BodyContentPH_lblMandat').text("1 No.");
                    $('html, body').animate({ scrollTop: 0 }, 'slow');
                    return false;
                }
            }
            else if (document.getElementById('ctl00_BodyContentPH_PH_LeavePolicy').style.display == "block") {
                if (Validation3() == true) {
                    document.getElementById('ctl00_BodyContentPH_PH_Personal').style.display = "none";
                    document.getElementById('ctl00_BodyContentPH_PH_Official').style.display = "block";
                    document.getElementById('ctl00_BodyContentPH_PH_LeavePolicy').style.display = "none";
                    document.getElementById('ctl00_BodyContentPH_PH_Others').style.display = "none";
                    document.getElementById('ctl00_BodyContentPH_txt_EmpID').focus;
                    $('#tablist a[href="#Official"]').tab('show');
                    $('#ctl00_BodyContentPH_lblMandat').text("13 No.");
                    $('html, body').animate({ scrollTop: 0 }, 'slow');
                    document.getElementById('ddlLevel0').focus();
                }
                else {
                    $('#tablist a[href="#LeavePolicy"]').tab('show');
                    $('#ctl00_BodyContentPH_lblMandat').text("NIL");
                    $('html, body').animate({ scrollTop: 0 }, 'slow');
                    return false;
                }
            }
            else if (document.getElementById('ctl00_BodyContentPH_PH_Others').style.display == "block") {
                if (Validation4() == true) {
                    document.getElementById('ctl00_BodyContentPH_PH_Personal').style.display = "none";
                    document.getElementById('ctl00_BodyContentPH_PH_Official').style.display = "block";
                    document.getElementById('ctl00_BodyContentPH_PH_LeavePolicy').style.display = "none";
                    document.getElementById('ctl00_BodyContentPH_PH_Others').style.display = "none";
                    document.getElementById('ctl00_BodyContentPH_txt_EmpID').focus;
                    $('#tablist a[href="#Official"]').tab('show');
                    $('#ctl00_BodyContentPH_lblMandat').text("13 No.");
                    $('html, body').animate({ scrollTop: 0 }, 'slow');
                    document.getElementById('ddlLevel0').focus();
                }
                else {
                    $('#tablist a[href="#Others"]').tab('show');
                    $('#ctl00_BodyContentPH_lblMandat').text("NIL");
                    $('html, body').animate({ scrollTop: 0 }, 'slow');
                    return false;
                }
            }
            return false;
        }
        function div_show2() {
            if (document.getElementById('ctl00_BodyContentPH_PH_Personal').style.display == "block") {
                if (Validation1() == true) {
                    if (aspnetForm.ctl00_BodyContentPH_hdf_Levelalert.value == '' || aspnetForm.ctl00_BodyContentPH_hdf_Levelalert.value == '0' || aspnetForm.ctl00_BodyContentPH_hdf_Levelalert.value == 'Select') {
                        document.getElementById('ctl00_BodyContentPH_PH_Personal').style.display = "none";
                        document.getElementById('ctl00_BodyContentPH_PH_Official').style.display = "block";
                        document.getElementById('ctl00_BodyContentPH_PH_LeavePolicy').style.display = "none";
                        document.getElementById('ctl00_BodyContentPH_PH_Others').style.display = "none";
                        alert(SelectOrganizationLevel);
                        $('#tablist a[href="#Official"]').tab('show');
                        $('#ctl00_BodyContentPH_lblMandat').text("13 No.");
                        $('html, body').animate({ scrollTop: 0 }, 'slow');
                        document.getElementById('ddlLevel0').focus();
                        return false;
                    }
                    else {
                        if (Validation2() == true) {
                            document.getElementById('ctl00_BodyContentPH_PH_Personal').style.display = "none";
                            document.getElementById('ctl00_BodyContentPH_PH_Official').style.display = "none";
                            document.getElementById('ctl00_BodyContentPH_PH_LeavePolicy').style.display = "block";
                            document.getElementById('ctl00_BodyContentPH_PH_Others').style.display = "none";
                            $('#tablist a[href="#LeavePolicy"]').tab('show');
                            $('#ctl00_BodyContentPH_lblMandat').text("NIL");
                            $('html, body').animate({ scrollTop: 0 }, 'slow');
                        }
                        else {
                            return false;
                        }
                    }
                }
                else {
                    $("#DivPersonal").addClass("active");
                    return false;
                }
            }
            else if (document.getElementById('ctl00_BodyContentPH_PH_Official').style.display == "block") {
                if (Validation2() == true) {
                    document.getElementById('ctl00_BodyContentPH_PH_Personal').style.display = "none";
                    document.getElementById('ctl00_BodyContentPH_PH_Official').style.display = "none";
                    document.getElementById('ctl00_BodyContentPH_PH_LeavePolicy').style.display = "block";
                    document.getElementById('ctl00_BodyContentPH_PH_Others').style.display = "none";
                    $('#tablist a[href="#LeavePolicy"]').tab('show');
                    $('#ctl00_BodyContentPH_lblMandat').text("NIL");
                    $('html, body').animate({ scrollTop: 0 }, 'slow');
                }
                else {
                    $('#tablist a[href="#Official"]').tab('show');
                    $('#ctl00_BodyContentPH_lblMandat').text("13 No.");
                    $('html, body').animate({ scrollTop: 0 }, 'slow');
                    document.getElementById('ddlLevel0').focus();
                    return false;
                }
            }
            else if (document.getElementById('ctl00_BodyContentPH_PH_Others').style.display == "block") {
                if (Validation4() == true) {
                    document.getElementById('ctl00_BodyContentPH_PH_Personal').style.display = "none";
                    document.getElementById('ctl00_BodyContentPH_PH_Official').style.display = "none";
                    document.getElementById('ctl00_BodyContentPH_PH_LeavePolicy').style.display = "block";
                    document.getElementById('ctl00_BodyContentPH_PH_Others').style.display = "none";
                    $('#tablist a[href="#LeavePolicy"]').tab('show');
                    $('#ctl00_BodyContentPH_lblMandat').text("NIL");
                    $('html, body').animate({ scrollTop: 0 }, 'slow');
                }
                else {
                    $('#tablist a[href="#Others"]').tab('show');
                    $('#ctl00_BodyContentPH_lblMandat').text("NIL");
                    $('html, body').animate({ scrollTop: 0 }, 'slow');
                    return false;
                }
            }
            var dropdownLeavePolicy = document.getElementById("ctl00_BodyContentPH_ddl_LeavePolicy");
            if (document.aspnetForm.ctl00_BodyContentPH_txt_doj.value != '') {
                var weekDay = document.aspnetForm.ctl00_BodyContentPH_txt_doj;
                var DateFormat = document.getElementById('ctl00_BodyContentPH_Hidden1').value;
                if (checkDate(weekDay, DateFormat, Monthfourdigit, Datefourdigit, Invalidyearentry, Invalidmonthentry, Invaliddateentry, DateformatDDMONYYYY, Entertime, Valueforhours, Invalidvalueforminutes, Invalidtimeformat, EntervalidDateandTime, ValiddatemonthMMDDYYHHMM, ValiddatemonthMMDDYYHHMMTT, EntervalidDateandTime, Invalidvalueforhours, Invalidvalueforminites)) {
                    if (document.aspnetForm.ctl00_BodyContentPH_txteffDateLevel.value != '') {
                        var weekDay = document.aspnetForm.ctl00_BodyContentPH_txteffDateLevel;
                        var DateFormat = document.getElementById('ctl00_BodyContentPH_Hidden1').value;
                        if (checkDate(weekDay, DateFormat, Monthfourdigit, Datefourdigit, Invalidyearentry, Invalidmonthentry, Invaliddateentry, DateformatDDMONYYYY, Entertime, Valueforhours, Invalidvalueforminutes, Invalidtimeformat, EntervalidDateandTime, ValiddatemonthMMDDYYHHMM, ValiddatemonthMMDDYYHHMMTT, EntervalidDateandTime, Invalidvalueforhours, Invalidvalueforminites)) {
                            if (document.aspnetForm.ctl00_BodyContentPH_txt_DesigEffDate.value != '') {
                                var weekDay = document.aspnetForm.ctl00_BodyContentPH_txt_DesigEffDate;
                                var DateFormat = document.getElementById('ctl00_BodyContentPH_Hidden1').value;
                                if (checkDate(weekDay, DateFormat, Monthfourdigit, Datefourdigit, Invalidyearentry, Invalidmonthentry, Invaliddateentry, DateformatDDMONYYYY, Entertime, Valueforhours, Invalidvalueforminutes, Invalidtimeformat, EntervalidDateandTime, ValiddatemonthMMDDYYHHMM, ValiddatemonthMMDDYYHHMMTT, EntervalidDateandTime, Invalidvalueforhours, Invalidvalueforminites)) {
                                    if (document.aspnetForm.ctl00_BodyContentPH_txtBasicSalEffDate.value != '') {
                                        var weekDay = document.aspnetForm.ctl00_BodyContentPH_txtBasicSalEffDate;
                                        var DateFormat = document.getElementById('ctl00_BodyContentPH_Hidden1').value;
                                        if (checkDate(weekDay, DateFormat, Monthfourdigit, Datefourdigit, Invalidyearentry, Invalidmonthentry, Invaliddateentry, DateformatDDMONYYYY, Entertime, Valueforhours, Invalidvalueforminutes, Invalidtimeformat, EntervalidDateandTime, ValiddatemonthMMDDYYHHMM, ValiddatemonthMMDDYYHHMMTT, EntervalidDateandTime, Invalidvalueforhours, Invalidvalueforminites)) {
                                            if (document.aspnetForm.ctl00_BodyContentPH_txtEmpCatEffDate.value != '') {
                                                var weekDay = document.aspnetForm.ctl00_BodyContentPH_txtEmpCatEffDate;
                                                var DateFormat = document.getElementById('ctl00_BodyContentPH_Hidden1').value;
                                                if (checkDate(weekDay, DateFormat, Monthfourdigit, Datefourdigit, Invalidyearentry, Invalidmonthentry, Invaliddateentry, DateformatDDMONYYYY, Entertime, Valueforhours, Invalidvalueforminutes, Invalidtimeformat, EntervalidDateandTime, ValiddatemonthMMDDYYHHMM, ValiddatemonthMMDDYYHHMMTT, EntervalidDateandTime, Invalidvalueforhours, Invalidvalueforminites)) {
                                                    if (document.aspnetForm.ctl00_BodyContentPH_txtEmpTypEffDate.value != '') {
                                                        var weekDay = document.aspnetForm.ctl00_BodyContentPH_txtEmpTypEffDate;
                                                        var DateFormat = document.getElementById('ctl00_BodyContentPH_Hidden1').value;
                                                        if (checkDate(weekDay, DateFormat, Monthfourdigit, Datefourdigit, Invalidyearentry, Invalidmonthentry, Invaliddateentry, DateformatDDMONYYYY, Entertime, Valueforhours, Invalidvalueforminutes, Invalidtimeformat, EntervalidDateandTime, ValiddatemonthMMDDYYHHMM, ValiddatemonthMMDDYYHHMMTT, EntervalidDateandTime, Invalidvalueforhours, Invalidvalueforminites)) {
                                                        }
                                                        else {
                                                            return false;
                                                        }
                                                    }
                                                }
                                                else {
                                                    return false;
                                                }
                                            }
                                        }
                                        else {
                                            return false;
                                        }
                                    }
                                }
                                else {
                                    return false;
                                }
                            }
                        }
                        else {
                            return false;
                        }
                    }
                }
                else {
                    return false;
                }
            }
            return false;
        }
        function div_show3() {
            if (document.aspnetForm.ctl00_BodyContentPH_rbtn_Single.checked) {
                document.getElementById("ctl00_BodyContentPH_txt_SpouseNo").disabled = true;
                document.getElementById("ctl00_BodyContentPH_txt_ChildrenNo").disabled = true;
                document.getElementById("ctl00_BodyContentPH_txt_SpouseNo").value = "";
                document.getElementById("ctl00_BodyContentPH_txt_ChildrenNo").value = "";
            }
            else {
                document.getElementById("ctl00_BodyContentPH_txt_SpouseNo").disabled = false;
                document.getElementById("ctl00_BodyContentPH_txt_ChildrenNo").disabled = false;
            }
            if (document.getElementById('ctl00_BodyContentPH_PH_Personal').style.display == "block") {
                if (Validation1() == true) {
                    document.getElementById('ctl00_BodyContentPH_PH_Personal').style.display = "none";
                    document.getElementById('ctl00_BodyContentPH_PH_Official').style.display = "none";
                    document.getElementById('ctl00_BodyContentPH_PH_LeavePolicy').style.display = "none";
                    document.getElementById('ctl00_BodyContentPH_PH_Others').style.display = "block";
                    $('#tablist a[href="#Others"]').tab('show');
                    $('#ctl00_BodyContentPH_lblMandat').text("NIL");
                    $('html, body').animate({ scrollTop: 0 }, 'slow');
                }
                else {
                    $('#tablist a[href="#Personal"]').tab('show');
                    $('#ctl00_BodyContentPH_lblMandat').text("1 No.");
                    $('html, body').animate({ scrollTop: 0 }, 'slow');
                    return false;
                }
            }
            else if (document.getElementById('ctl00_BodyContentPH_PH_Official').style.display == "block") {
                if (Validation2() == true) {
                    document.getElementById('ctl00_BodyContentPH_PH_Personal').style.display = "none";
                    document.getElementById('ctl00_BodyContentPH_PH_Official').style.display = "none";
                    document.getElementById('ctl00_BodyContentPH_PH_LeavePolicy').style.display = "none";
                    document.getElementById('ctl00_BodyContentPH_PH_Others').style.display = "block";
                    $('#tablist a[href="#Others"]').tab('show');
                    $('#ctl00_BodyContentPH_lblMandat').text("NIL");
                    $('html, body').animate({ scrollTop: 0 }, 'slow');
                }
                else {
                    $('#tablist a[href="#Official"]').tab('show');
                    $('#ctl00_BodyContentPH_lblMandat').text("13 No.");
                    $('html, body').animate({ scrollTop: 0 }, 'slow');
                    document.getElementById('ddlLevel0').focus();
                    return false;
                }
            }
            else if (document.getElementById('ctl00_BodyContentPH_PH_LeavePolicy').style.display == "block") {
                if (Validation3() == true) {
                    document.getElementById('ctl00_BodyContentPH_PH_Personal').style.display = "none";
                    document.getElementById('ctl00_BodyContentPH_PH_Official').style.display = "none";
                    document.getElementById('ctl00_BodyContentPH_PH_LeavePolicy').style.display = "none";
                    document.getElementById('ctl00_BodyContentPH_PH_Others').style.display = "block";
                    $('#tablist a[href="#Others"]').tab('show');
                    $('#ctl00_BodyContentPH_lblMandat').text("NIL");
                    $('html, body').animate({ scrollTop: 0 }, 'slow');
                }
                else {
                    $('#tablist a[href="#LeavePolicy"]').tab('show');
                    $('#ctl00_BodyContentPH_lblMandat').text("NIL");
                    $('html, body').animate({ scrollTop: 0 }, 'slow');
                    return false;
                }
            }
            if (aspnetForm.ctl00_BodyContentPH_hdf_Levelalert.value == '' || aspnetForm.ctl00_BodyContentPH_hdf_Levelalert.value == '0' || aspnetForm.ctl00_BodyContentPH_hdf_Levelalert.value == 'Select') {
                alert(SelectOrganizationLevel);
                return false;
            }
            return false;
        }
        function autofill(EmployeeIDAlreadyExists) {
            ValidEmpCode(document.aspnetForm.ctl00_BodyContentPH_txt_EmpID.value, 'XYZ', EmployeeIDAlreadyExists);
            document.aspnetForm.ctl00_BodyContentPH_txt_UserName.value = document.aspnetForm.ctl00_BodyContentPH_txt_EmpID.value;
            document.aspnetForm.ctl00_BodyContentPH_txt_SwipeCardNo.value = document.aspnetForm.ctl00_BodyContentPH_txt_EmpID.value;
        }
        function validateEmailID() {
            ValidEmailID(document.aspnetForm.ctl00_BodyContentPH_txt_EmailID.value, 0, "I");
        }
        function Validation1() {
            document.getElementById('ctl00_BodyContentPH_PH_Personal').style.display = "block";
            document.getElementById('ctl00_BodyContentPH_PH_Official').style.display = "none";
            document.getElementById('ctl00_BodyContentPH_PH_LeavePolicy').style.display = "none";
            document.getElementById('ctl00_BodyContentPH_PH_Others').style.display = "none";
            $('#tablist a[href="#Personal"]').tab('show');
            var Curdate = new Date();
            var CurYear = Curdate.getFullYear();
            var CurMonth = Curdate.getMonth();
            CurMonth = CurMonth + 1;
            var cdate = Curdate.getDate();
            if (trim(document.aspnetForm.ctl00_BodyContentPH_txt_EmpFirstName.value) == "") {
                alert(EnterEmployeeFirstName);
                document.aspnetForm.ctl00_BodyContentPH_txt_EmpFirstName.focus();
                return false;
            }
            else if (document.aspnetForm.ctl00_BodyContentPH_txt_Recdob.value != "" && document.aspnetForm.ctl00_BodyContentPH_txt_Recdob.value.length < 10) {
                alert(InvalidDOBRecord);
                document.aspnetForm.ctl00_BodyContentPH_txt_Recdob.focus();
                return false;
            }
            else if (document.aspnetForm.ctl00_BodyContentPH_txt_EmailID.value != "") {
                var mailid = document.aspnetForm.ctl00_BodyContentPH_txt_EmailID.value;
                var exp = /^[A-Za-z0-9_\+-]+(\.[A-Za-z0-9_\+-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.([A-Za-z]{2,4})$/;
                if (exp.test(mailid)) {
                }
                else {
                    alert(EntervalidEmailId);
                    document.aspnetForm.ctl00_BodyContentPH_txt_EmailID.focus();
                    return false;
                }
            }
            if (document.aspnetForm.ctl00_BodyContentPH_txt_PersonalMailID.value != "") {
                var mailid = document.aspnetForm.ctl00_BodyContentPH_txt_PersonalMailID.value;
                var exp = /^[A-Za-z0-9_\+-]+(\.[A-Za-z0-9_\+-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.([A-Za-z]{2,4})$/;
                if (exp.test(mailid)) {
                }
                else {
                    alert(EntervalidEmailId);
                    document.aspnetForm.ctl00_BodyContentPH_txt_PersonalMailID.focus();
                    return false;
                }
            }
            if (document.aspnetForm.ctl00_BodyContentPH_txt_dob.value != "") {
                if (document.getElementById('ctl00_BodyContentPH_Hidden1').value == 'MM/DD/YYYY') {
                    var dob = document.aspnetForm.ctl00_BodyContentPH_txt_dob.value;
                    var dobMonth = dob.substring(0, 2);
                    var dobDate = dob.substring(3, 5);
                    var dobYear = dob.substring(6, dob.length);
                }
                if (document.getElementById('ctl00_BodyContentPH_Hidden1').value == 'DD/MM/YYYY') {
                    var dob = document.aspnetForm.ctl00_BodyContentPH_txt_dob.value;
                    var dobMonth = dob.substring(3, 5);
                    var dobDate = dob.substring(0, 2);
                    var dobYear = dob.substring(6, dob.length);
                }
                if (document.getElementById('ctl00_BodyContentPH_Hidden1').value == 'DD-MMM-YYYY') {
                    var dob = document.aspnetForm.ctl00_BodyContentPH_txt_dob.value;
                    var mon = dob.substring(3, 6);
                    var dobMonth = Month(mon);
                    var dobDate = dob.substring(0, 2);
                    var dobYear = dob.substring(7, dob.length);
                }
                if (dobYear >= CurYear) {
                    if (dobYear > CurYear) {
                        alert(InvalidDOB);
                        document.aspnetForm.ctl00_BodyContentPH_txt_dob.focus();
                        return false;
                    }
                    if (dobYear == CurYear) {
                        if (dobMonth >= CurMonth) {
                            if (dobMonth > CurMonth) {
                                alert(InvalidDOB);
                                document.aspnetForm.ctl00_BodyContentPH_txt_dob.focus();
                                return false;
                            }
                            if (dobMonth == CurMonth) {
                                if (dobDate >= cdate) {
                                    alert(InvalidDOB);
                                    document.aspnetForm.ctl00_BodyContentPH_txt_dob.focus();
                                    return false;
                                }
                                else {
                                }
                            }
                        }
                        else {
                        }
                    }
                }
                else {
                }
            }
            if (document.aspnetForm.ctl00_BodyContentPH_txt_Recdob.value != "") {
                if (document.getElementById('ctl00_BodyContentPH_Hidden1').value == 'MM/DD/YYYY') {
                    var dob1 = document.aspnetForm.ctl00_BodyContentPH_txt_Recdob.value;
                    var dobMonth1 = dob1.substring(0, 2);
                    var dobDate1 = dob1.substring(3, 5);
                    var dobYear1 = dob1.substring(6, dob1.length);
                }
                if (document.getElementById('ctl00_BodyContentPH_Hidden1').value == 'DD/MM/YYYY') {
                    var dob1 = document.aspnetForm.ctl00_BodyContentPH_txt_Recdob.value;
                    var dobMonth1 = dob1.substring(3, 5);
                    var dobDate1 = dob1.substring(0, 2);
                    var dobYear1 = dob1.substring(6, dob1.length);
                }
                if (document.getElementById('ctl00_BodyContentPH_Hidden1').value == 'DD-MMM-YYYY') {
                    var dob1 = document.aspnetForm.ctl00_BodyContentPH_txt_Recdob.value;
                    var mon = dob1.substring(3, 6);
                    var dobMonth1 = Month(mon);
                    var dobDate1 = dob1.substring(0, 2);
                    var dobYear1 = dob1.substring(7, dob1.length);
                }
                if (dobYear1 >= CurYear) {
                    if (dobYear1 > CurYear) {
                        alert(InvalidDOBRecord);
                        document.aspnetForm.ctl00_BodyContentPH_txt_Recdob.focus();
                        return false;
                    }
                    if (dobYear1 == CurYear) {
                        if (dobMonth1 >= CurMonth) {
                            if (dobMonth1 > CurMonth) {
                                alert(InvalidDOBRecord);
                                document.aspnetForm.ctl00_BodyContentPH_txt_Recdob.focus();
                                return false;
                            }
                            if (dobMonth1 == CurMonth) {
                                if (dobDate1 >= cdate) {
                                    alert(InvalidDOBRecord);
                                    document.aspnetForm.ctl00_BodyContentPH_txt_Recdob.focus();
                                    return false;
                                }
                                else {
                                }
                            }
                        }
                        else {
                        }
                    }
                }
                else {
                }
            }
            return true;
        }
        function Validation2() {
            document.getElementById('ctl00_BodyContentPH_PH_Personal').style.display = "none";
            document.getElementById('ctl00_BodyContentPH_PH_Official').style.display = "block";
            document.getElementById('ctl00_BodyContentPH_PH_LeavePolicy').style.display = "none";
            document.getElementById('ctl00_BodyContentPH_PH_Others').style.display = "none";
            $('#tablist a[href="#Official"]').tab('show');
            $('#ctl00_BodyContentPH_lblMandat').text("13 No.");
            $('html, body').animate({ scrollTop: 0 }, 'slow');
            document.getElementById('ddlLevel0').focus();
            var Curdate = new Date();
            var CurYear = Curdate.getFullYear();
            var CurMonth = Curdate.getMonth();
            CurMonth = CurMonth + 1;
            var cdate = Curdate.getDate();
            var index5 = document.aspnetForm.ctl00_BodyContentPH_ddl_Designation.selectedIndex;
            var designation = document.aspnetForm.ctl00_BodyContentPH_ddl_Designation.options[index5].value;
            if (aspnetForm.ctl00_BodyContentPH_hdf_Levelalert.value == '' || aspnetForm.ctl00_BodyContentPH_hdf_Levelalert.value == '0' || aspnetForm.ctl00_BodyContentPH_hdf_Levelalert.value == 'Select') {
                alert(SelectOrganizationLevel);
                return false;
            }
            if (document.aspnetForm.ctl00_BodyContentPH_txt_doj.value == "") {
                alert(SelectDOJ);
                document.aspnetForm.ctl00_BodyContentPH_txt_doj.focus();
                return false;
            }
            if (trim(document.aspnetForm.ctl00_BodyContentPH_txt_EmpID.value) == "") {
                alert(EnterEmployeeID);
                document.aspnetForm.ctl00_BodyContentPH_txt_EmpID.focus();
                return false;
            }
            else if (trim(document.aspnetForm.ctl00_BodyContentPH_txt_EmpID.value) != "") {
                var empid = trim(document.aspnetForm.ctl00_BodyContentPH_txt_EmpID.value);
                var len = empid.length;
                if (len > 15) {
                    alert(EmployeeIdshouldnotexceed15digits);
                    document.aspnetForm.ctl00_BodyContentPH_txt_EmpID.focus();
                    return false;
                }
            }
            if (document.aspnetForm.ctl00_BodyContentPH_txt_doj.value != "" && document.aspnetForm.ctl00_BodyContentPH_txt_doj.value.length < 10) {
                alert(InvalidDOJ);
                document.aspnetForm.ctl00_BodyContentPH_txt_doj.focus();
                return false;
            }
            if (document.aspnetForm.ctl00_BodyContentPH_txteffDateLevel.value != "" && document.aspnetForm.ctl00_BodyContentPH_txteffDateLevel.value.length < 10) {
                alert(InvalidDate);
                document.aspnetForm.ctl00_BodyContentPH_txteffDateLevel.focus();
                return false;
            }
            if (document.aspnetForm.ctl00_BodyContentPH_txt_DesigEffDate.value != "" && document.aspnetForm.ctl00_BodyContentPH_txt_DesigEffDate.value.length < 10) {
                alert(InvalidDate);
                document.aspnetForm.ctl00_BodyContentPH_txt_DesigEffDate.focus();
                return false;
            }
            if (document.aspnetForm.ctl00_BodyContentPH_txtBasicSalEffDate.value != "" && document.aspnetForm.ctl00_BodyContentPH_txtBasicSalEffDate.value.length < 10) {
                alert(InvalidDate);
                document.aspnetForm.ctl00_BodyContentPH_txtBasicSalEffDate.focus();
                return false;
            }
            if (document.aspnetForm.ctl00_BodyContentPH_txtEmpCatEffDate.value != "" && document.aspnetForm.ctl00_BodyContentPH_txtEmpCatEffDate.value.length < 10) {
                alert(InvalidDate);
                document.aspnetForm.ctl00_BodyContentPH_txtEmpCatEffDate.focus();
                return false;
            }
            if (document.aspnetForm.ctl00_BodyContentPH_txtEmpTypEffDate.value != "" && document.aspnetForm.ctl00_BodyContentPH_txtEmpTypEffDate.value.length < 10) {
                alert(InvalidDate);
                document.aspnetForm.ctl00_BodyContentPH_txtEmpTypEffDate.focus();
                return false;
            }
            if (designation == 0) {
                alert(SelectDesignation);
                document.aspnetForm.ctl00_BodyContentPH_ddl_Designation.focus();
                return false;
            }
            if (trim(document.aspnetForm.ctl00_BodyContentPH_txt_SwipeCardNo.value) == "") {
                alert(EnterCardNo);
                document.aspnetForm.ctl00_BodyContentPH_txt_SwipeCardNo.focus();
                return false;
            }
            if (document.aspnetForm.ctl00_BodyContentPH_rbtn_Active.checked == false) {
                if (document.getElementById('ctl00_BodyContentPH_txtInActive').value == '') {
                    alert(SelectInActiveDateinOfficalTab);
                    return false;
                }
                if (document.getElementById('ctl00_BodyContentPH_txt_doj').value != '' && document.getElementById('ctl00_BodyContentPH_txtInActive').value != '') {
                    if (document.getElementById('ctl00_BodyContentPH_Hidden1').value == 'MM/DD/YYYY') {
                        var dojTemp = document.aspnetForm.ctl00_BodyContentPH_txt_doj.value;
                        var dojMonthTemp = dojTemp.substring(0, 2);
                        var dojDateTemp = dojTemp.substring(3, 5);
                        var dojYearTemp = dojTemp.substring(6, dojTemp.length);
                    }
                    if (document.getElementById('ctl00_BodyContentPH_Hidden1').value == 'DD/MM/YYYY') {
                        var dojTemp = document.aspnetForm.ctl00_BodyContentPH_txt_doj.value;
                        var dojMonthTemp = dojTemp.substring(3, 5);
                        var dojDateTemp = dojTemp.substring(0, 2);
                        var dojYearTemp = dojTemp.substring(6, dojTemp.length);
                    }
                    if (document.getElementById('ctl00_BodyContentPH_Hidden1').value == 'DD-MMM-YYYY') {
                        var dojTemp = document.aspnetForm.ctl00_BodyContentPH_txt_doj.value;
                        var monTemp = dojTemp.substring(3, 6);
                        var dojMonthTemp = Month(monTemp);
                        var dojDateTemp = dojTemp.substring(0, 2);
                        var dojYearTemp = dojTemp.substring(7, dojTemp.length);
                    }
                    if (document.getElementById('ctl00_BodyContentPH_Hidden1').value == 'MM/DD/YYYY') {
                        var inactive = document.aspnetForm.ctl00_BodyContentPH_txtInActive.value;
                        var inactiveMonth = inactive.substring(0, 2);
                        var inactiveDate = inactive.substring(3, 5);
                        var inactiveYear = inactive.substring(6, inactive.length);
                    }
                    if (document.getElementById('ctl00_BodyContentPH_Hidden1').value == 'DD/MM/YYYY') {
                        var inactive = document.aspnetForm.ctl00_BodyContentPH_txtInActive.value;
                        var inactiveMonth = inactive.substring(3, 5);
                        var inactiveDate = inactive.substring(0, 2);
                        var inactiveYear = inactive.substring(6, inactive.length);
                    }
                    if (document.getElementById('ctl00_BodyContentPH_Hidden1').value == 'DD-MMM-YYYY') {
                        var inactive = document.aspnetForm.ctl00_BodyContentPH_txtInActive.value;
                        var mon1 = inactive.substring(3, 6);
                        var inactiveMonth = Month(mon1);
                        var inactiveDate = inactive.substring(0, 2);
                        var inactiveYear = inactive.substring(7, inactive.length);
                    }
                    if (dojYearTemp >= inactiveYear) {
                        if (dojYearTemp > inactiveYear) {
                            alert(InactiveDateshouldbegreaterthanDOJ);
                            document.aspnetForm.ctl00_BodyContentPH_txtInActive.focus();
                            return false;
                        }
                        if (dojYearTemp == inactiveYear) {
                            if (dojMonthTemp >= inactiveMonth) {
                                if (dojMonthTemp > inactiveMonth) {
                                    alert(InactiveDateshouldbegreaterthanDOJ);
                                    document.aspnetForm.ctl00_BodyContentPH_txtInActive.focus();
                                    return false;
                                }
                                if (dojMonthTemp == inactiveMonth) {
                                    if (dojDateTemp >= inactiveDate) {
                                        alert(InactiveDateshouldbegreaterthanDOJ);
                                        document.aspnetForm.ctl00_BodyContentPH_txtInActive.focus();
                                        return false;
                                    }
                                }
                            }
                        }
                    }
                }
            }
            if (document.aspnetForm.ctl00_BodyContentPH_txteffDateLevel.value == '') {
                alert(SelectEffectiveDateforLevel);
                document.aspnetForm.ctl00_BodyContentPH_txteffDateLevel.focus();
                return false;
            }
            if (document.aspnetForm.ctl00_BodyContentPH_txt_DesigEffDate.value == '') {
                alert(SelectDesignationEffectiveDate);
                document.aspnetForm.ctl00_BodyContentPH_txt_DesigEffDate.focus();
                return false;
            }
            if (document.aspnetForm.ctl00_BodyContentPH_txtBasicSalEffDate.value == '') {
                alert(SelectBasicSalaryEffectiveDate);
                document.aspnetForm.ctl00_BodyContentPH_txtBasicSalEffDate.focus();
                return false;
            }
            var OTEligible = document.getElementById('ctl00_BodyContentPH_chk_OTEligible');
            var CompoffEligible = document.getElementById('ctl00_BodyContentPH_chk_CompOffEligible');
            if (document.aspnetForm.ctl00_BodyContentPH_ddlEmpCatagory.selectedIndex == 0) {
                alert(SelectEmployeeCategory);
                return false;
            }
            if (document.aspnetForm.ctl00_BodyContentPH_ddlEmpType.selectedIndex == 0) {
                alert(SelectEmployeeType);
                return false;
            }
            if (document.aspnetForm.ctl00_BodyContentPH_txtEmpCatEffDate.value == '') {
                alert(SelectEffectiveDateforCategory);
                return false;
            }
            if (document.aspnetForm.ctl00_BodyContentPH_txtEmpTypEffDate.value == '') {
                alert(SelectEffectiveDateforEmployeeType);
                return false;
            }
            if (document.aspnetForm.ctl00_BodyContentPH_txt_doj.value != '') {
                if (document.aspnetForm.ctl00_BodyContentPH_txt_doj.value != document.aspnetForm.ctl00_BodyContentPH_txteffDateLevel.value) {
                    alert(OrgLeveleffdateshouldbeequaltoDOJ);
                    document.aspnetForm.ctl00_BodyContentPH_txteffDateLevel.focus();
                    return false;
                }
                if (document.aspnetForm.ctl00_BodyContentPH_txt_doj.value != document.aspnetForm.ctl00_BodyContentPH_txt_DesigEffDate.value) {
                    alert(DesigeffdateshouldbeequaltoDOJ);
                    document.aspnetForm.ctl00_BodyContentPH_txt_DesigEffDate.focus();
                    return false;
                }
                if (document.aspnetForm.ctl00_BodyContentPH_txt_doj.value != document.aspnetForm.ctl00_BodyContentPH_txtBasicSalEffDate.value) {
                    alert(BasicsaleffdateshouldbeequaltoDOJ);
                    document.aspnetForm.ctl00_BodyContentPH_txtBasicSalEffDate.focus();
                    return false;
                }
                if (document.aspnetForm.ctl00_BodyContentPH_txt_doj.value != document.aspnetForm.ctl00_BodyContentPH_txtEmpCatEffDate.value) {
                    alert(EmpCateffdateshouldbeequaltoDOJ);
                    document.aspnetForm.ctl00_BodyContentPH_txtEmpCatEffDate.focus();
                    return false;
                }
                if (document.aspnetForm.ctl00_BodyContentPH_txt_doj.value != document.aspnetForm.ctl00_BodyContentPH_txtEmpTypEffDate.value) {
                    alert(EmpTypeeffdateshouldbeequaltoDOJ);
                    document.aspnetForm.ctl00_BodyContentPH_txtEmpTypEffDate.focus();
                    return false;
                }
            }
            if (document.aspnetForm.ctl00_BodyContentPH_txt_doj.value != "") {
                if (document.getElementById('ctl00_BodyContentPH_Hidden1').value == 'MM/DD/YYYY') {
                    var doj = document.aspnetForm.ctl00_BodyContentPH_txt_doj.value;
                    var dojMonth = doj.substring(0, 2);
                    var dojDate = doj.substring(3, 5);
                    var dojYear = doj.substring(6, doj.length);
                }
                if (document.getElementById('ctl00_BodyContentPH_Hidden1').value == 'DD/MM/YYYY') {
                    var doj = document.aspnetForm.ctl00_BodyContentPH_txt_doj.value;
                    var dojMonth = doj.substring(3, 5);
                    var dojDate = doj.substring(0, 2);
                    var dojYear = doj.substring(6, doj.length);
                }
                if (document.getElementById('ctl00_BodyContentPH_Hidden1').value == 'DD-MMM-YYYY') {
                    var doj = document.aspnetForm.ctl00_BodyContentPH_txt_doj.value;
                    var mon = doj.substring(3, 6);
                    var dojMonth = Month(mon);
                    var dojDate = doj.substring(0, 2);
                    var dojYear = doj.substring(7, doj.length);
                }
                if (document.getElementById('ctl00_BodyContentPH_Hidden1').value == 'MM/DD/YYYY') {
                    var dob = document.aspnetForm.ctl00_BodyContentPH_txt_dob.value;
                    var dobMonth = dob.substring(0, 2);
                    var dobDate = dob.substring(3, 5);
                    var dobYear = dob.substring(6, dob.length);
                }
                if (document.getElementById('ctl00_BodyContentPH_Hidden1').value == 'DD/MM/YYYY') {
                    var dob = document.aspnetForm.ctl00_BodyContentPH_txt_dob.value;
                    var dobMonth = dob.substring(3, 5);
                    var dobDate = dob.substring(0, 2);
                    var dobYear = dob.substring(6, dob.length);
                }
                if (document.getElementById('ctl00_BodyContentPH_Hidden1').value == 'DD-MMM-YYYY') {
                    var dob = document.aspnetForm.ctl00_BodyContentPH_txt_dob.value;
                    var mon = dob.substring(3, 6);
                    var dobMonth = Month(mon);
                    var dobDate = dob.substring(0, 2);
                    var dobYear = dob.substring(7, dob.length);
                }
                if (dobYear >= dojYear) {
                    if (dobYear > dojYear) {
                        alert(DOJshouldbegreaterthanDOB);
                        document.aspnetForm.ctl00_BodyContentPH_txt_doj.focus();
                        return false;
                    }
                    if (dobYear == dojYear) {
                        if (dobMonth >= dojMonth) {
                            if (dobMonth > dojMonth) {
                                alert(DOJshouldbegreaterthanDOB);
                                document.aspnetForm.ctl00_BodyContentPH_txt_doj.focus();
                                return false;
                            }
                            if (dobMonth == dojMonth) {
                                if (dobDate >= dojDate) {
                                    alert(DOJshouldbegreaterthanDOB);
                                    document.aspnetForm.ctl00_BodyContentPH_txt_doj.focus();
                                    return false;
                                }
                                else {
                                }
                            }
                        }
                        else {
                        }
                    }
                }
                else {
                }
            }
            return true;
        }
        function Validation3() {
            document.getElementById('ctl00_BodyContentPH_PH_Personal').style.display = "none";
            document.getElementById('ctl00_BodyContentPH_PH_Official').style.display = "none";
            document.getElementById('ctl00_BodyContentPH_PH_LeavePolicy').style.display = "block";
            document.getElementById('ctl00_BodyContentPH_PH_Others').style.display = "none";
            $('#tablist a[href="#LeavePolicy"]').tab('show');
            $('#ctl00_BodyContentPH_lblMandat').text("NIL");
            $('html, body').animate({ scrollTop: 0 }, 'slow');
            if (document.getElementById("ctl00_BodyContentPH_hdf_Policy").value.length > 0) {
                if (document.getElementById("ctl00_BodyContentPH_div_EmpLeave").innerHTML == "") {
                    alert(ClickCalculateButtontocalProrata);
                    return false;
                }
            }
            return true;
        }
        function Validation4() {
            document.getElementById('ctl00_BodyContentPH_PH_Personal').style.display = "none";
            document.getElementById('ctl00_BodyContentPH_PH_Official').style.display = "none";
            document.getElementById('ctl00_BodyContentPH_PH_LeavePolicy').style.display = "none";
            document.getElementById('ctl00_BodyContentPH_PH_Others').style.display = "block";
            $('#tablist a[href="#Others"]').tab('show');
            $('#ctl00_BodyContentPH_lblMandat').text("NIL");
            $('html, body').animate({ scrollTop: 0 }, 'slow');
            var Curdate = new Date();
            var CurYear = Curdate.getFullYear();
            var CurMonth = Curdate.getMonth();
            CurMonth = CurMonth + 1;
            var cdate = Curdate.getDate();
            if (document.aspnetForm.ctl00_BodyContentPH_txt_PExpiry.value != "" && document.aspnetForm.ctl00_BodyContentPH_txt_PExpiry.value.length < 10) {
                alert(InvalidPassportExpiryDate);
                document.aspnetForm.ctl00_BodyContentPH_txt_PExpiry.focus();
                return false;
            }
            else if (document.aspnetForm.ctl00_BodyContentPH_txt_VExpiry.value != "" && document.aspnetForm.ctl00_BodyContentPH_txt_VExpiry.value.length < 10) {
                alert(InvalidVisaExpiryDate);
                document.aspnetForm.ctl00_BodyContentPH_txt_VExpiry.focus();
                return false;
            }
            else if (document.aspnetForm.ctl00_BodyContentPH_txt_AnniversaryDate.value != "" && document.aspnetForm.ctl00_BodyContentPH_txt_AnniversaryDate.value.length < 10) {
                alert(InvalidAnniversaryDate);
                document.aspnetForm.ctl00_BodyContentPH_txt_AnniversaryDate.focus();
                return false;
            }
            if (document.aspnetForm.ctl00_BodyContentPH_txt_AnniversaryDate.value != "") {
                if (document.getElementById('ctl00_BodyContentPH_Hidden1').value == 'MM/DD/YYYY') {
                    var anniv = document.aspnetForm.ctl00_BodyContentPH_txt_AnniversaryDate.value;
                    var annMonth = anniv.substring(0, 2);
                    var annDate = anniv.substring(3, 5);
                    var annYear = anniv.substring(6, anniv.length);
                }
                if (document.getElementById('ctl00_BodyContentPH_Hidden1').value == 'DD/MM/YYYY') {
                    var anniv = document.aspnetForm.ctl00_BodyContentPH_txt_AnniversaryDate.value;
                    var annMonth = anniv.substring(3, 5);
                    var annDate = anniv.substring(0, 2);
                    var annYear = anniv.substring(6, anniv.length);
                }
                if (document.getElementById('ctl00_BodyContentPH_Hidden1').value == 'DD-MMM-YYYY') {
                    var anniv = document.aspnetForm.ctl00_BodyContentPH_txt_AnniversaryDate.value;
                    var mon = anniv.substring(3, 6);
                    var annMonth = Month(mon);
                    var annDate = anniv.substring(0, 2);
                    var annYear = anniv.substring(7, anniv.length);
                }
                if (annYear >= CurYear) {
                    if (annYear > CurYear) {
                        alert(InvalidAnniversaryDate);
                        document.aspnetForm.ctl00_BodyContentPH_txt_AnniversaryDate.focus();
                        return false;
                    }
                    if (annYear == CurYear) {
                        if (annMonth >= CurMonth) {
                            if (annMonth > CurMonth) {
                                alert(InvalidAnniversaryDate);
                                document.aspnetForm.ctl00_BodyContentPH_txt_AnniversaryDate.focus();
                                return false;
                            }
                            if (annMonth == CurMonth) {
                                if (annDate >= cdate) {
                                    alert(InvalidAnniversaryDate);
                                    document.aspnetForm.ctl00_BodyContentPH_txt_AnniversaryDate.focus();
                                    return false;
                                }
                                else {
                                }
                            }
                        }
                        else {
                        }
                    }
                }
                else {
                }
            }
            var no_Of_Spouse = document.getElementById("ctl00_BodyContentPH_txt_SpouseNo").value;
            if (document.getElementById("div_Spouse").innerHTML != "") {
                for (var i = 1; i <= no_Of_Spouse; i++) {
                    var id = "txt_SpouseDOB" + i;
                    return assign_hidden_spouse(id);
                }
            }
            var no_Of_Child = document.getElementById("ctl00_BodyContentPH_txt_ChildrenNo").value;
            if (document.getElementById("div_children").innerHTML != "") {
                for (var i = 1; i <= no_Of_Child; i++) {
                    var id = "txt_ChildDOB" + i;
                    return assign_hidden(id);
                }
            }
            return true;
        }
        function Validation5(NoDetailsfoundinLeavePolicy, ErrorinretrivingdetailsfromLeavepolicy) {
            var indexpolicy = document.aspnetForm.ctl00_BodyContentPH_ddl_LeavePolicy.selectedIndex;
            var Policy = document.aspnetForm.ctl00_BodyContentPH_ddl_LeavePolicy.options[indexpolicy].value;
            if (Policy == "-Select-") {
                alert(SelectLeavePolicy);
                return false;
            }
            var Gender;
            if (document.getElementById('ctl00_BodyContentPH_rbtn_Male').checked == true) {
                Gender = "Male";
            }
            else {
                Gender = "Female";
            }
            var indexEmployeeCategory = document.aspnetForm.ctl00_BodyContentPH_ddlEmpCatagory.selectedIndex;
            var EmployeeCategory = document.aspnetForm.ctl00_BodyContentPH_ddlEmpCatagory.options[indexEmployeeCategory].value;
            var indexEmployeeType = document.aspnetForm.ctl00_BodyContentPH_ddlEmpType.selectedIndex;
            var EmployeeType = document.aspnetForm.ctl00_BodyContentPH_ddlEmpType.options[indexEmployeeType].value;
            var indexReligion = document.aspnetForm.ctl00_BodyContentPH_ddlReligion.selectedIndex;
            var Religion = document.aspnetForm.ctl00_BodyContentPH_ddlReligion.options[indexReligion].value;
            ajaxLeavePolicy(NoDetailsfoundinLeavePolicy, ErrorinretrivingdetailsfromLeavepolicy, Gender, EmployeeCategory, EmployeeType, Religion);
            return false;
        }
        function addNextPolicy(NoDetailsfoundinLeavePolicy, ErrorinretrivingdetailsfromLeavepolicy) {
            Validation5(NoDetailsfoundinLeavePolicy, ErrorinretrivingdetailsfromLeavepolicy);
            assign_hidden_policyAdd();
            return false;
        }
        function Validation6() {
            if (document.aspnetForm.ctl00_BodyContentPH_ddlEmpCatagory.selectedIndex == 0) {
                alert(SelectEmployeeCategory);
                return false;
            }
            if (document.aspnetForm.ctl00_BodyContentPH_ddlEmpType.selectedIndex == 0) {
                alert(SelectEmployeeType);
                return false;
            }
            if (document.aspnetForm.ctl00_BodyContentPH_txt_DesigEffDate.value == '') {
                alert(SelectDesignationEffectiveDate);
                return false;
            }
            if (document.aspnetForm.ctl00_BodyContentPH_txteffDateLevel.value == '') {
                alert(SelectEffectiveDateforLevel);
                return false;
            }
            if (document.aspnetForm.ctl00_BodyContentPH_txtEmpCatEffDate.value == '') {
                alert(SelectEffectiveDateforCategory);
                return false;
            }
            if (document.aspnetForm.ctl00_BodyContentPH_txtEmpTypEffDate.value == '') {
                alert(SelectEffectiveDateforEmployeeType);
                return false;
            }
            if (document.aspnetForm.ctl00_BodyContentPH_txt_BasicSalary.value != '') {
                if (document.aspnetForm.ctl00_BodyContentPH_txtBasicSalEffDate.value == '') {
                    alert(SelectBasicSalaryEffectiveDate);
                    return false;
                }
            }
            var indexpolicy1 = document.aspnetForm.ctl00_BodyContentPH_ddl_LeavePolicy.selectedIndex;
            var Policy1 = document.aspnetForm.ctl00_BodyContentPH_ddl_LeavePolicy.options[indexpolicy1].value;
            if (document.getElementById("ctl00_BodyContentPH_hdf_Policy").value != "") {
                if (Policy1 == "-Select-") {
                    alert(SelectLeavePolicy);
                    return false;
                }
            }
            ajaxEmpLeave(FillLeavePolicy, Leavepolicydurationshouldnotbeempty, SelectDate, InvalidDate, PolicyStartDateshouldbegreaterthantheDOJ, PolicyDatealreadyExists, FillStartDateandEndDate, NoDetailsfoundinEmpLeave, Errorinretrivingdetails, LeavePolicyNoDetailsfoundinEmpLeave, LeavePolicyErrorinretrivingdetails, PolicyDateContinutyMissing);
        }
        function Calculate_Validation() {
            var indexpolicy1 = document.aspnetForm.ctl00_BodyContentPH_ddl_LeavePolicy.selectedIndex;
            var Policy1 = document.aspnetForm.ctl00_BodyContentPH_ddl_LeavePolicy.options[indexpolicy1].value;
            if (document.getElementById("ctl00_BodyContentPH_hdf_Policy").value != "") {
                if (Policy1 == "-Select-") {
                    alert(SelectLeavePolicy);
                    return false;
                }
            }
            ajaxEmpLeave(FillLeavePolicy, Leavepolicydurationshouldnotbeempty, SelectDate, InvalidDate, PolicyStartDateshouldbegreaterthantheDOJ, PolicyDatealreadyExists, FillStartDateandEndDate, NoDetailsfoundinEmpLeave, Errorinretrivingdetails, LeavePolicyNoDetailsfoundinEmpLeave, LeavePolicyErrorinretrivingdetails, PolicyDateContinutyMissing);
            return false;
        }
        function assignLeavePol() {
            var valueLeavepol = document.aspnetForm.ctl00_BodyContentPH_ddl_LeavePolicy.value;
            var indexLeavepol = document.aspnetForm.ctl00_BodyContentPH_ddl_LeavePolicy.selectedIndex;
            var LeavePolicy = document.aspnetForm.ctl00_BodyContentPH_ddl_LeavePolicy.options[indexLeavepol].text;
            document.getElementById("ctl00_BodyContentPH_hdf_PolicyID").value = valueLeavepol;
            document.getElementById("ctl00_BodyContentPH_hdf_PolicyName").value = LeavePolicy;
        }
        function Month(Mon) {
            var Month;
            switch (Mon) {
                case "Jan":
                    Month = 1;
                    break;
                case "Feb":
                    Month = 2;
                    break;
                case "Mar":
                    Month = 3;
                    break;
                case "Apr": Month = 4;
                    break;
                case "May": Month = 5;
                    break;
                case "Jun": Month = 6;
                    break;
                case "Jul": Month = 7;
                    break;
                case "Aug": Month = 8;
                    break;
                case "Sep": Month = 9;
                    break;
                case "Oct": Month = 10;
                    break;
                case "Nov": Month = 11;
                    break;
                case "Dec": Month = 12;
                    break;
            }
            return (Month);
        }
        function DisplayLevel() {
            if (document.aspnetForm.ctl00_BodyContentPH_rbtn_Active.checked == true) {
                document.getElementById('ctl00_BodyContentPH_txtInActive').disabled = true;
                document.getElementById('ctl00_BodyContentPH_txtInActive').value = "";
                document.getElementById('ctl00_BodyContentPH_InActive').disabled = true;
                document.getElementById('ctl00_BodyContentPH_lblIsActiveDate').disabled = true;
            }
            else {
                document.getElementById('ctl00_BodyContentPH_txtInActive').disabled = false;
                document.getElementById('ctl00_BodyContentPH_InActive').disabled = false;
                document.getElementById('ctl00_BodyContentPH_lblIsActiveDate').disabled = false;
            }
        }
        function Confirmation() {
            var where_to = confirm(SaveEmployeeInformation);
            return where_to;
        }
    </script>
    <div class="content-header">
        <h1 style="background-image: url('../dist/img/pem.png'); background-repeat: no-repeat; padding-left: 35px">
            <%--<h1>--%>
            <asp:Label ID="lbl_HeaderEmployeeMaster" runat="server"></asp:Label>
        </h1>
        <asp:SiteMapPath ID="site" runat="server" CssClass="breadcrumb">
            <NodeStyle CssClass="active" />
        </asp:SiteMapPath>
    </div>
    <div class="content">
        <asp:HiddenField ID="Hidden1" runat="server" />
        <asp:HiddenField ID="hidEmpDesg" runat="server" />
        <asp:HiddenField ID="hidPreviousYear" runat="server" />
        <div class="respos-tab">
            <div id="Div2" role="tabpanel">
                <ul class="nav nav-tabs responsive-tabs tab-header" id="tablist">
                    <li class="active" id="DivPersonal"><a href="#Personal" role="tab" onclick="return div_show();">
                        <span>
                            <img src="../dist/img/icon13.png"></span>
                        <asp:Label ID="lbl_Personal" runat="server" Text="Personal" Style="padding: 0"></asp:Label></a></li>
                    <li id="DivOfficial"><a href="#Official" role="tab" onclick="return div_show1();"><span>
                        <img src="../dist/img/icon14.png"></span><asp:Label ID="lbl_Official" runat="server" Text="Official" Style="padding: 0"></asp:Label></a></li>
                    <li id="DivLeavePolicy"><a href="#LeavePolicy" role="tab" onclick="return div_show2();">
                        <span>
                            <img src="../dist/img/icon15.png"></span><asp:Label ID="lbl_LeavePolicy" runat="server" Text="Leave Policy" Style="padding: 0"></asp:Label></a></li>
                    <li id="DivOthers"><a href="#Others" role="tab" onclick="return div_show3();"><span>
                        <img src="../dist/img/icon16.png"></span><asp:Label ID="lbl_Others" runat="server" Text="Others" Style="padding: 0"></asp:Label></a></li>
                    <li class="pull-right empadd-man">
                        <h6>
                            <span style="color: Red">|</span><asp:Label ID="lbl_Mandatory" runat="server" Text="Mandatory" Style="padding: 0"></asp:Label>
                            (<asp:Label ID="lblMandat" runat="server"
                                Text="1 No." Style="padding: 0px"></asp:Label>)</h6>
                    </li>
                </ul>
            </div>
            <div class="tab-content">
                <div class="tab-pane active" id="Personal">
                    <div id="PH_Personal" runat="server" enableviewstate="true" style="padding: 16px">
                        <div class="form-horizontal">
                            <div class="panel-body">
                                <div class="row" style="display: none">
                                    <div class="col-md-12">
                                        <div class="box">
                                            <div>
                                                <div class="row">
                                                    <div class="col-md-2">
                                                        <asp:Button ID="btn_Personal_main" runat="server" CssClass="btn btn-block btn-primary"
                                                            Enabled="false" />
                                                    </div>
                                                    <div class="col-md-2">
                                                        <asp:Button ID="btn_Official_blur" runat="server" CausesValidation="true" CssClass="btn btn-block btn-success"
                                                            OnClientClick="return div_show1();" />
                                                    </div>
                                                    <div class="col-md-2">
                                                        <asp:Button ID="btn_LeavePolicy_blur" runat="server" OnClientClick="return div_show2();"
                                                            CausesValidation="true" CssClass="btn btn-block btn-info" />
                                                    </div>
                                                    <div class="col-md-2">
                                                        <asp:Button ID="btn_Others_blur" runat="server" OnClientClick="return div_show3();"
                                                            CausesValidation="true" CssClass="btn btn-block btn-danger" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row" style="display: none">
                                    <div class="col-md-12" style="color: Red">
                                        <li class="fa fa-asterisk"></li>
                                        <asp:Label ID="lbl_IndicatesMandatoryFields" runat="server"></asp:Label>
                                        <br />
                                        <br />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-md-2">
                                        <asp:Label ID="lbl_EmployeeFirstName" runat="server"></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:TextBox onpaste="return true" ID="txt_EmpFirstName" runat="server" CssClass="form-control mandatory"
                                            MaxLength="35" onkeypress="return acceptChars_MaxLength(event,this,35,MaxLength);"></asp:TextBox>
                                    </div>
                                    <div class="col-md-1">
                                    </div>
                                    <div class="col-md-2">
                                        <asp:Label ID="lbl_MiddleName" runat="server"></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:TextBox onpaste="return true" ID="txt_MName" runat="server" CssClass="form-control"
                                            MaxLength="35" onkeypress="return acceptChars_MaxLength(event,this,35,MaxLength);"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-md-2">
                                        <asp:Label ID="lbl_LastName" runat="server"></asp:Label><font color="#FF0000"></font>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:TextBox onpaste="return true" ID="txt_LName" runat="server" CssClass="form-control"
                                            MaxLength="35" onkeypress="return acceptChars_MaxLength(event,this,35,MaxLength);"></asp:TextBox>
                                    </div>
                                    <div class="col-md-1">
                                    </div>
                                    <div class="col-md-2">
                                        <asp:Label ID="lbl_FathersName" runat="server"></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:TextBox onpaste="return true" ID="txt_FatherName" runat="server" CssClass="form-control"
                                            MaxLength="50" onkeypress="return acceptChars_MaxLength(event,this,50,MaxLength);"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-md-2">
                                        <asp:Label ID="lbl_MothersName" runat="server"></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:TextBox onpaste="return true" ID="txt_MotherName" runat="server" CssClass="form-control"
                                            MaxLength="50" onkeypress="return acceptChars_MaxLength(event,this,50,MaxLength);"></asp:TextBox>
                                    </div>
                                    <div class="col-md-1">
                                    </div>
                                    <div class="col-md-2">
                                        <asp:Label ID="lbl_BloodGroup" runat="server"></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:TextBox onpaste="return true" ID="txt_BloodGroup" runat="server" CssClass="form-control"
                                            MaxLength="15" onkeyup="return chkMaxLen(event,this,15,MaxLength);"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-md-2">
                                        <asp:Label ID="lbl_DateofBirth" runat="server"></asp:Label><font color="#FF0000"></font>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:TextBox onpaste="return true" ID="txt_dob" CssClass="form-control" runat="server"
                                            MaxLength="11" onDrop="return false;" oncut="return false"></asp:TextBox>
                                    </div>
                                    <div class="col-md-1">
                                    </div>
                                    <div class="col-md-2">
                                        <asp:Label ID="lbl_DateofBirthAsPerRec" class="control-label con-top" runat="server"></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:TextBox onpaste="return true" ID="txt_Recdob" runat="server" CssClass="form-control"
                                            MaxLength="11" onDrop="return false;" oncut="return false"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-md-2">
                                        <asp:Label ID="lbl_EmailID" runat="server"></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:TextBox onpaste="return true" ID="txt_EmailID" CssClass="form-control" runat="server"
                                            MaxLength="100" Onblur="validateEmailID();"></asp:TextBox>
                                    </div>
                                    <div class="col-md-1">
                                    </div>
                                    <div class="col-md-2">
                                        <asp:Label ID="lbl_PersonalMailID" runat="server"></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:TextBox onpaste="return true" ID="txt_PersonalMailID" CssClass="form-control"
                                            runat="server" MaxLength="100"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-md-2">
                                        <asp:Label ID="lbl_ContactAddress" runat="server"></asp:Label><font color="#FF0000">
                                        </font>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:TextBox onpaste="return true" ID="txt_ContactAddress" runat="server" CssClass="form-control"
                                            MaxLength="255" onkeypress="return acceptAddress(event,this)" onkeyup="return chkMaxLen(event,this,225,MaxLength);"
                                            TextMode="MultiLine" Style="resize: none"></asp:TextBox>
                                    </div>
                                    <div class="col-md-1">
                                    </div>
                                    <div class="col-md-2">
                                        <asp:Label ID="lbl_PermanentAddress" runat="server"></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:TextBox onpaste="return true" ID="txt_PermanentAddress" runat="server" CssClass="form-control"
                                            MaxLength="255" onkeypress="return acceptAddress(event,this);" onkeyup="return chkMaxLen(event,this,225,MaxLength);"
                                            TextMode="MultiLine" Style="resize: none"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-md-2">
                                        <asp:Label ID="lbl_Country" runat="server"></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:DropDownList ID="ddl_Country" CssClass="form-control select2" EnableViewState="true"
                                            runat="server" AppendDataBoundItems="true" onchange="return GetLookupData('1',Errorretrievingdatafromlookup);">
                                            <asp:ListItem Selected="True" Text="-Select-"></asp:ListItem>
                                        </asp:DropDownList>
                                    </div>
                                    <div class="col-md-1">
                                    </div>
                                    <div class="col-md-2">
                                        <asp:Label ID="lbl_State" runat="server"></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:DropDownList ID="ddl_State" CssClass="form-control select2" EnableViewState="true"
                                            runat="server" AppendDataBoundItems="true" onchange="return GetLookupData('2',Errorretrievingdatafromlookup);">
                                            <asp:ListItem Selected="True" Text="-Select-"></asp:ListItem>
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-md-2">
                                        <asp:Label ID="lbl_City" runat="server"></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:DropDownList ID="ddl_City" CssClass="form-control select2" EnableViewState="true"
                                            runat="server" AppendDataBoundItems="true" onchange="return GetLookupData('3',Errorretrievingdatafromlookup);">
                                            <asp:ListItem Selected="True" Text="-Select-"></asp:ListItem>
                                        </asp:DropDownList>
                                    </div>
                                    <div class="col-md-1">
                                    </div>
                                    <div class="col-md-2">
                                        <asp:Label ID="lbl_District" runat="server"></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:TextBox onpaste="return true" ID="txt_District" CssClass="form-control" runat="server"
                                            MaxLength="50" onkeypress="return Valiadteltgt(event,this);"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-md-2">
                                        <asp:Label ID="lbl_PhoneNumber" runat="server"></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:TextBox onpaste="return true" ID="txt_PhoneNo" runat="server" CssClass="form-control"
                                            MaxLength="15" onDrop="return false;" onkeyup="return assignValue(event,this,'Phone')"
                                            onkeypress="return checkPhone(event)"></asp:TextBox>
                                    </div>
                                    <div class="col-md-1">
                                    </div>
                                    <div class="col-md-2">
                                        <asp:Label ID="lbl_MobileNumber" runat="server"></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:TextBox onpaste="return true" ID="txt_MobileNo" runat="server" CssClass="form-control"
                                            MaxLength="15" onDrop="return false;" onkeyup="return assignValue(event,this,'Mobile')"
                                            onkeypress="return checkPhone(event)"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-md-2 emp-gender">
                                        <asp:Label ID="lbl_Gender" runat="server"></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <div class="row">
                                            <div class="col-md-6">
                                                <asp:RadioButton ID="rbtn_Male" runat="server" Checked="True" GroupName="Gender"
                                                    Text="Male" CssClass="radio radio-primary" />
                                            </div>
                                            <div class="col-md-6">
                                                <asp:RadioButton ID="rbtn_Female" runat="server" GroupName="Gender" Text="Female"
                                                    CssClass="radio radio-primary" />
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-1">
                                    </div>
                                    <div class="col-md-2">
                                        <asp:Label ID="lbl_Maritalstatus" runat="server"></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <div class="row">
                                            <div class="col-md-6">
                                                <asp:RadioButton ID="rbtn_Single" GroupName="MaritalStatus" runat="server" Checked="True"
                                                    Text="Single" CssClass="radio radio-primary" />
                                            </div>
                                            <div class="col-md-6">
                                                <asp:RadioButton ID="rbtn_Married" GroupName="MaritalStatus" runat="server" Text="Married"
                                                    CssClass="radio radio-primary" />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-md-2">
                                        <asp:Label ID="lbl_Nationality" runat="server"></asp:Label><font color="#FF0000"></font>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:TextBox onpaste="return true" ID="txt_Nationality" runat="server" CssClass="form-control"
                                            MaxLength="50" onkeypress="return acceptChars_MaxLength(event,this,50,MaxLength);"></asp:TextBox>
                                    </div>
                                    <div class="col-md-1">
                                    </div>
                                    <div class="col-md-2">
                                        <asp:Label ID="lbl_Religion" runat="server"></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:DropDownList ID="ddlReligion" runat="server" AppendDataBoundItems="true" CssClass="form-control select2">
                                            <asp:ListItem Selected="True" Text="-Select-"></asp:ListItem>
                                        </asp:DropDownList>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-md-5">
                                </div>
                                <div class="col-md-6">
                                    <div class="pull-right-button">
                                        <asp:LinkButton ID="btn_Cancel1" CssClass="btn clr-btn fa-times" runat="server" CausesValidation="false"
                                            OnClick="btn_Cancel_Click"></asp:LinkButton>
                                        <asp:LinkButton ID="btn_Next" CssClass="btn clr-btn fa-angle-right" runat="server"
                                            OnClientClick="return div_show1();"></asp:LinkButton>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div id="Official" class="tab-pane active">
                    <div id="PH_Official" runat="server" enableviewstate="true" style="padding: 16px">
                        <div class="form-horizontal">
                            <div class="panel-body">
                                <div class="row" style="display: none">
                                    <div class="col-md-12">
                                        <asp:Label ID="lbl_EmployeeMaster" runat="server"></asp:Label>
                                    </div>
                                </div>
                                <div class="row" style="display: none">
                                    <div class="col-md-12">
                                        <div class="box">
                                            <div>
                                                <div class="row">
                                                    <div class="col-md-2">
                                                        <asp:Button ID="btn_Personal_blur" runat="server" CausesValidation="false" CssClass="btn btn-block btn-primary"
                                                            OnClientClick="return PersonalTab();" />
                                                    </div>
                                                    <div class="col-md-2">
                                                        <asp:Button ID="btn_Official_main" runat="server" CssClass="btn btn-block btn-success"
                                                            Enabled="false" />
                                                    </div>
                                                    <div class="col-md-2">
                                                        <asp:Button ID="btn_LeavePolicy_blur1" OnClientClick="return div_show2();" runat="server"
                                                            CssClass="btn btn-block btn-info" />
                                                    </div>
                                                    <div class="col-md-2">
                                                        <asp:Button ID="btn_Others_blur1" runat="server" OnClientClick="return div_show3();"
                                                            CssClass="btn btn-block btn-danger" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group" style="display: none">
                                    <div class="col-md-3" style="color: Red">
                                        <li class="fa fa-asterisk"></li>
                                        <asp:Label ID="lbl_IndicateMandatoryFields" runat="server"></asp:Label>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-md-12">
                                        <UC:orglevel ID="uc_orglevel" runat="server" />
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="row">
                                        <div class="line16" style="margin-bottom: 0px">
                                        </div>
                                    </div>
                                </div>
                                <div style="padding-top: 10px">
                                    <div class="form-group">
                                        <div class="col-md-2">
                                            <asp:Label ID="lbl_DateofJoining" runat="server" class="control-label"></asp:Label>
                                        </div>
                                        <div class="col-md-3">
                                            <asp:TextBox onpaste="return true" ID="txt_doj" EnableViewState="true" class="form-control man-dat"
                                                runat="server" MaxLength="11" oncut="return false" onblur="return FillEffectiveDates()"></asp:TextBox>
                                        </div>
                                        <div class="col-md-1">
                                        </div>
                                        <div class="col-md-2">
                                            <asp:Label ID="lblEffectiveDateLeve" runat="server" Text="Effective Date for Level"
                                                class="control-label"></asp:Label>
                                        </div>
                                        <div class="col-md-3">
                                            <asp:TextBox onpaste="return true" ID="txteffDateLevel" class="form-control mandatory"
                                                runat="server" MaxLength="11" onDrop="return false;" oncut="return false"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-md-2">
                                            <asp:Label ID="lbl_EmployeeID" runat="server" class="control-label"></asp:Label>
                                        </div>
                                        <div class="col-md-3">
                                            <asp:TextBox onpaste="return true" ID="txt_EmpID" CssClass="form-control mandatory"
                                                MaxLength="15" onkeypress="return Validate_EmployeeCodeId(event,this)" runat="server"
                                                Onblur="autofill(EmployeeIDAlreadyExists);"></asp:TextBox>
                                            <asp:HiddenField ID="hdnNumericExists" runat="server" Value="false" />
                                        </div>
                                        <div class="col-md-1">
                                        </div>
                                        <div class="col-md-2">
                                            <asp:Label ID="lbl_UserGroup" runat="server" class="control-label"></asp:Label>
                                        </div>
                                        <div class="col-md-3">
                                            <asp:ListBox ID="ddl_UserGroup" CssClass="form-control" runat="server" AppendDataBoundItems="True"
                                                Rows="3">
                                                <asp:ListItem>-Select-</asp:ListItem>
                                            </asp:ListBox>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-md-2">
                                            <asp:Label ID="lbl_Designation" runat="server" class="control-label"></asp:Label>
                                        </div>
                                        <div class="col-md-3">
                                            <asp:DropDownList ID="ddl_Designation" CssClass="form-control select2 Man-dat" EnableViewState="true"
                                                runat="server" AppendDataBoundItems="true" onchange="return GetEmployeeInfo('1',ErrorretrievingdatafromAuthority);">
                                                <asp:ListItem Text="-Select-" Value="0"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                        <div class="col-md-1">
                                        </div>
                                        <div class="col-md-2">
                                            <asp:Label ID="lblDesigEffectiveDate" runat="server" class="control-label"></asp:Label>
                                        </div>
                                        <div class="col-md-3">
                                            <asp:TextBox onpaste="return true" ID="txt_DesigEffDate" CssClass="form-control mandatory"
                                                runat="server" MaxLength="11" onDrop="return false;" oncut="return false"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-md-2">
                                            <asp:Label ID="lbl_BasicSalary" runat="server" class="control-label"></asp:Label>
                                        </div>
                                        <div class="col-md-3">
                                            <asp:TextBox onpaste="return true" ID="txt_BasicSalary" CssClass="form-control"
                                                onkeypress="return number_dot(event,this)" EnableViewState="true" runat="server"
                                                MaxLength="8"></asp:TextBox>
                                        </div>
                                        <div class="col-md-1">
                                        </div>
                                        <div class="col-md-2">
                                            <asp:Label ID="lblBasicSalEffectiveDate" runat="server" class="control-label"></asp:Label>
                                        </div>
                                        <div class="col-md-3">
                                            <asp:TextBox onpaste="return true" ID="txtBasicSalEffDate" CssClass="form-control mandatory"
                                                runat="server" MaxLength="11" onDrop="return false;" oncut="return false"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-md-2">
                                            <asp:Label ID="lblEmpCategory" runat="server" class="control-label"></asp:Label>
                                        </div>
                                        <div class="col-md-3">
                                            <asp:DropDownList ID="ddlEmpCatagory" runat="server" CssClass="form-control select2 Man-dat">
                                                <asp:ListItem Text="-Select-" Value="-Select-"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                        <div class="col-md-1">
                                        </div>
                                        <div class="col-md-2">
                                            <asp:Label ID="lblEmpCatEffDate" runat="server" class="control-label"></asp:Label>
                                        </div>
                                        <div class="col-md-3">
                                            <asp:TextBox onpaste="return true" ID="txtEmpCatEffDate" CssClass="form-control mandatory"
                                                runat="server" MaxLength="11" onDrop="return false;" oncut="return false"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-md-2">
                                            <asp:Label ID="lblEmpType" runat="server" class="control-label"></asp:Label>
                                        </div>
                                        <div class="col-md-3">
                                            <asp:DropDownList ID="ddlEmpType" runat="server" CssClass="form-control select2 Man-dat">
                                                <asp:ListItem Text="-Select-" Value="-Select-"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                        <div class="col-md-1">
                                        </div>
                                        <div class="col-md-2">
                                            <asp:Label ID="lblEmpTypEffDate" runat="server" class="control-label"></asp:Label>
                                        </div>
                                        <div class="col-md-3">
                                            <asp:TextBox onpaste="return true" ID="txtEmpTypEffDate" CssClass="form-control mandatory"
                                                runat="server" MaxLength="11" onDrop="return false;" oncut="return false"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="form-group" id="trStatus" runat="server">
                                        <div class="col-md-2">
                                            <asp:Label ID="lbl_ReportingTo" runat="server" class="control-label"></asp:Label>
                                        </div>
                                        <div class="col-md-3">
                                            <asp:DropDownList ID="ddl_ReportingTo" CssClass="form-control select2" runat="server"
                                                AppendDataBoundItems="true" onchange="return GetEmployeeInfo('2',ErrorretrievingdatafromAuthority);">
                                                <asp:ListItem Text="-Select-" Value="0"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                        <div class="col-md-1">
                                        </div>
                                        <div class="col-md-2">
                                            <asp:Label ID="lbl_LeaveSanctioninguthority" runat="server" class="control-label"></asp:Label>
                                        </div>
                                        <div class="col-md-3">
                                            <asp:DropDownList ID="ddl_LeaveSancAuthority" CssClass="form-control select2" runat="server"
                                                AppendDataBoundItems="true" onchange="return GetEmployeeInfo('3',ErrorretrievingdatafromAuthority);">
                                                <asp:ListItem Text="-Select-" Value="0"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-md-2">
                                            <asp:Label ID="lbl_CardNo" runat="server" class="control-label"></asp:Label>
                                        </div>
                                        <div class="col-md-3">
                                            <asp:TextBox onpaste="return true" ID="txt_SwipeCardNo" runat="server" CssClass="form-control man-dat"
                                                EnableViewState="true" onkeypress="return acceptCharacterNumber(event,this)"
                                                MaxLength="20" Onblur="return ValidEmpSwipeCard('Add',SwipeCardNumberAlreadyExists);"></asp:TextBox>
                                        </div>
                                        <div class="col-md-1">
                                        </div>
                                        <div class="col-md-2">
                                            <asp:Label ID="lbl_UserName" runat="server" class="control-label"></asp:Label>
                                        </div>
                                        <div class="col-md-3">
                                            <asp:TextBox onpaste="return true" ID="txt_UserName" CssClass="form-control man-dat"
                                                runat="server" MaxLength="50" EnableViewState="true"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-md-2">
                                            <asp:Label ID="lbl_PreviousExperience" runat="server" class="control-label"></asp:Label>
                                        </div>
                                        <div class="col-md-3">
                                            <asp:TextBox onpaste="return true" ID="txt_PrevExperience" onkeypress="return number_dot(event,this)"
                                                EnableViewState="true" CssClass="form-control" runat="server" MaxLength="4"></asp:TextBox>
                                        </div>
                                        <div class="col-md-1">
                                        </div>
                                        <div class="col-md-2">
                                            <asp:Label ID="lbl_Transportation" runat="server" class="control-label"></asp:Label>
                                        </div>
                                        <div class="col-md-3">
                                            <asp:DropDownList ID="ddl_BusRouteNo" CssClass="form-control select2" runat="server"
                                                AppendDataBoundItems="True">
                                                <asp:ListItem Text="-Select-" Value="-Select-"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="form-group" style="display: none">
                                        <div class="col-md-2">
                                            <asp:Label ID="lbl_Password" runat="server" class="control-label"></asp:Label>
                                        </div>
                                        <div class="col-md-3">
                                            <asp:TextBox onpaste="return true" ID="txt_Password" runat="server" CssClass="form-control"
                                                MaxLength="16" onblur="return pwd_validation();" onDrop="return false;" onkeypress="return character_number_nospace_pwd(event,this);"
                                                TextMode="Password"></asp:TextBox>
                                        </div>
                                        <div class="col-md-1">
                                        </div>
                                        <div class="col-md-2">
                                            <asp:Label ID="lbl_ConfirmPassword" runat="server" class="control-label" />
                                        </div>
                                        <div class="col-md-3">
                                            <asp:TextBox onpaste="return true" ID="txt_ConfirmPassword" runat="server" CssClass="form-control"
                                                MaxLength="16" onDrop="return false;" onkeypress="return character_number_nospace_pwd(event,this);"
                                                TextMode="Password"></asp:TextBox><br />
                                            <asp:CompareValidator ControlToCompare="txt_Password" ControlToValidate="txt_ConfirmPassword"
                                                ID="CompareValidator1" runat="server" SetFocusOnError="true"></asp:CompareValidator>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-2">
                                            <asp:Label ID="lbl_QualifactionattheTimeofJoining" runat="server" class="control-label"></asp:Label>
                                        </div>
                                        <div class="col-md-3">
                                            <asp:TextBox onpaste="return true" ID="txt_QualAtJoiningTime" CssClass="form-control"
                                                runat="server" MaxLength="50" onkeypress="return Valiadteltgt(event,this);"></asp:TextBox>
                                        </div>
                                        <div class="col-md-1">
                                        </div>
                                        <div class="col-md-2">
                                            <asp:Label ID="lbl_QualificationduringEmployment" runat="server" class="control-label" />
                                        </div>
                                        <div class="col-md-3">
                                            <asp:TextBox onpaste="return true" ID="txt_QualDurEmployment" CssClass="form-control"
                                                runat="server" MaxLength="50" onkeypress="return Valiadteltgt(event,this);"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group" id="divPenalty" runat="server">
                                    <div class="col-md-2">
                                        <asp:Label ID="lblPenaltyCat" runat="server" Text="Penalty Category"></asp:Label>
                                    </div>
                                    <div class="col-md-10">
                                        <div class="col-md-2 pad-left-0px">
                                            <asp:RadioButton ID="rbtnDisruptive" runat="server" GroupName="PenaltyCat"
                                                Text="Disruptive" CssClass="radio radio-primary" />
                                        </div>
                                        <div class="col-md-6 pad-left-0px">
                                            <asp:RadioButton ID="rbtnNonDisruptive" runat="server" Checked="True" GroupName="PenaltyCat" Text="Non-Disruptive"
                                                CssClass="radio radio-primary" />
                                        </div>
                                    </div>
                                </div>
                                <div class="clearfix">
                                </div>
                                <div class="row">
                                    <div class="row">
                                        <div class="line16" style="margin-bottom: 0px">
                                        </div>
                                    </div>
                                </div>
                                <div class="office-tab">
                                    <div class="form-group">
                                        <div class="col-md-2 pad-left-0px">
                                            <asp:CheckBox ID="chk_OTEligible" runat="server" onclick="SelectDualOption();" CssClass="checkboxEmployee checkboxEmployee-primary checkbox-circle" />
                                        </div>
                                        <div class="col-md-4 pad-left-0px">
                                            <asp:CheckBox ID="chk_CompOffEligible" runat="server" onclick="SelectDualOption();"
                                                CssClass="checkboxEmployee checkboxEmployee-primary checkbox-circle" />
                                        </div>
                                        <div class="col-md-6 pad-left-0px">
                                            <asp:CheckBox ID="chk_CompOffAndOT" runat="server" Enabled="false" CssClass="checkboxEmployee checkboxEmployee-primary checkbox-circle" />
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-md-2">
                                            <asp:Label ID="lbl_HostelWorker" runat="server"></asp:Label>
                                        </div>
                                        <div class="col-md-3 pad-left-0px">
                                            <div class="col-md-6">
                                                <asp:RadioButton ID="rbtn_HostelYes" runat="server" GroupName="Emp_Hostel" Text="Yes"
                                                    CssClass="radio radio-primary" Checked="True" />
                                            </div>
                                            <div class="col-md-6">
                                                <asp:RadioButton ID="rbtn_HostelNo" runat="server" GroupName="Emp_Hostel" Text="No"
                                                    CssClass="radio radio-primary" />
                                            </div>
                                        </div>
                                        <div class="col-md-1">
                                        </div>
                                        <div class="col-md-6">
                                            <asp:CheckBox ID="chk_ReportsExcl" runat="server" CssClass="checkbox checkbox-primary checkbox-circle" />
                                        </div>
                                        <div class="col-md-2">
                                            <div id="divLabelFlexible" runat="server">
                                                <asp:Label ID="lblIsFlexibleTimings" runat="server" Text="Flexible Timings"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-md-3 pad-left-0px">
                                            <div id="divRadioFlexibleTimings" runat="server">
                                                <div class="col-md-6">
                                                    <asp:RadioButton ID="rbtnFlexibleTimingsYes" runat="server" Text="Yes" GroupName="rbtnFlexible"
                                                        CssClass="radio radio-primary" />
                                                </div>
                                                <div class="col-md-6">
                                                    <asp:RadioButton ID="rbtnFlexibleTimingsNo" runat="server" Text="No" GroupName="rbtnFlexible"
                                                        CssClass="radio radio-primary" Checked="true" />
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-1">
                                        </div>
                                        <div class="col-md-6">
                                        </div>
                                    </div>
                                    <%-- Vaigai Part --%>
                                    <div class="form-group" id="divMobileSMS" runat="server" style="display:none">
                                        <div class="col-md-2">
                                            <asp:Label ID="lblMobileClock" runat="server"></asp:Label>
                                        </div>
                                        <div class="col-md-3 pad-left-0px">
                                            <div id="div3" runat="server">
                                                <div class="col-md-6">
                                                    <asp:RadioButton ID="rbtnMobileClockYes" runat="server" GroupName="rbtnClockIn"
                                                        CssClass="radio radio-primary" />
                                                </div>
                                                <div class="col-md-6">
                                                    <asp:RadioButton ID="rbtnMobileClockNo" runat="server" GroupName="rbtnClockIn"
                                                        CssClass="radio radio-primary" Checked="true" />
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-1">
                                        </div>
                                        <div class="col-md-2">
                                            <asp:Label ID="lblSMSEnableDisable" runat="server"></asp:Label>
                                        </div>
                                        <div class="col-md-3 pad-left-0px">
                                            <div id="div4" runat="server">
                                                <div class="col-md-6">
                                                    <asp:RadioButton ID="rbtnSMSEnable" runat="server" GroupName="rbtnSMS"
                                                        CssClass="radio radio-primary" />
                                                </div>
                                                <div class="col-md-6">
                                                    <asp:RadioButton ID="rbtnSMSDisable" runat="server" GroupName="rbtnSMS"
                                                        CssClass="radio radio-primary" Checked="true" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <%-- Vaigai Part --%>

                                    <div class="row">
                                        <div class="col-md-2">
                                            <asp:Label ID="lbl_EmployeeStatus" runat="server"></asp:Label>
                                        </div>
                                        <div class="col-md-3 pad-left-0px">
                                            <div class="col-md-6">
                                                <asp:RadioButton ID="rbtn_Active" runat="server" Text="Active" Checked="True" GroupName="Emp_Status"
                                                    onclick="DisplayLevel();" CssClass="radio radio-primary" />
                                            </div>
                                            <div class="col-md-6">
                                                <asp:RadioButton ID="rbtn_Inactive" runat="server" Text="Inactive" GroupName="Emp_Status"
                                                    onclick="DisplayLevel()" CssClass="radio radio-primary" />
                                                <input id="InActive" style="display: none;" disabled="disabled" src="../Images/dateicon.gif"
                                                    type="image" />
                                                <div id="dvDatePicker" runat="server" style="display: none;">
                                                    <div class="datepicker" style="display: none;">
                                                        <input type="image" src="../Images/dateicon.gif" id="Image1" runat="server" disabled="disabled"
                                                            style="display: none;" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-1">
                                        </div>
                                        <div class="col-md-2">
                                            <asp:Label ID="lblIsActiveDate" runat="server" Text="In Active Date"></asp:Label>
                                        </div>
                                        <div class="col-md-3">
                                            <asp:TextBox ID="txtInActive" CssClass="form-control" runat="server" MaxLength="11"
                                                onDrop="return false;"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="form-group" style="display: none">
                                        <div class="col-md-2">
                                            <div class="box">
                                                <div>
                                                    <div class="row">
                                                        <div class="col-md-3" style="display: none;">
                                                            <asp:CheckBox ID="chk_EligibleESI" runat="server" />
                                                        </div>
                                                        <div class="col-md-3" style="display: none;">
                                                            <asp:CheckBox ID="chk_EligiblePF" runat="server" />
                                                        </div>
                                                        <div class="col-md-3" style="display: none;">
                                                            <asp:CheckBox ID="chk_OutdoorEmployee" runat="server" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-3">
                                            <asp:Label ID="lbl_Photo" runat="server"></asp:Label>
                                            <br />
                                            <asp:Label runat="server" Font-Bold="true" Text="[Only bmp,jpeg,gif file format is supported]"></asp:Label>
                                        </div>
                                        <div class="col-md-3">
                                            <div class="emp-img">
                                                <script type="text/javascript">
                                                    function openfileDialog() {
                                                        $("#ctl00_BodyContentPH_fup_Photo").click();
                                                    }
                                                    $(function () {
                                                        $('#ctl00_BodyContentPH_fup_Photo').change(function (event) {
                                                            var tmppath = URL.createObjectURL(event.target.files[0]);
                                                            $("#EmpImage").fadeIn("fast").attr('src', tmppath);
                                                        });
                                                    });
                                                </script>
                                                <a href="#" onclick="openfileDialog();"><span data-original-title="browse photo"
                                                    data-toggle="tooltip" title="">
                                                    <img src="../dist/img/emp-photo.png" class="emp-photo" id="EmpImage"></span> </a>
                                            </div>
                                            <div style="display: none">
                                                <asp:FileUpload ID="fup_Photo" runat="server" CssClass="fupload"></asp:FileUpload>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-md-5">
                                </div>
                                <div class="col-md-6">
                                    <div class="pull-right-button">
                                        <asp:LinkButton ID="btn_Back1" runat="server" CausesValidation="false" CssClass="btn clr-btn fa-angle-left"
                                            OnClientClick="return PersonalTab();"></asp:LinkButton>
                                        <asp:LinkButton ID="btn_Cancel2" CssClass="btn clr-btn fa-times" runat="server" CausesValidation="false"
                                            OnClick="btn_Cancel_Click"></asp:LinkButton>
                                        <asp:LinkButton ID="btn_Next2" CssClass="btn clr-btn fa-angle-right" runat="server"
                                            OnClientClick="return div_show2();"></asp:LinkButton>
                                        <asp:HiddenField ID="hdf_orgLevel" runat="server" />
                                        <asp:HiddenField ID="hdf_Levelalert" runat="server" />
                                        <asp:ValidationSummary ID="ValidationSummary3" runat="server" ShowMessageBox="True"
                                            ShowSummary="False" />
                                    </div>
                                </div>
                            </div>



                        </div>
                    </div>
                </div>
                <div id="LeavePolicy" class="tab-pane fade">
                    <div id="PH_LeavePolicy" runat="server" enableviewstate="true" style="padding: 16px">
                        <div class="form-horizontal">
                            <div class="panel-body">
                                <div class="row" style="display: none">
                                    <div class="col-md-12">
                                        <asp:Label ID="lblEmployeeMaster1" runat="server"></asp:Label>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-md-12" style="display: none">
                                        <div class="box">
                                            <div>
                                                <div class="row">
                                                    <div class="col-md-2">
                                                        <asp:Button ID="btn_Personal_blur1" runat="server" CssClass="btn btn-block btn-primary"
                                                            OnClientClick="return div_show0();" />
                                                    </div>
                                                    <div class="col-md-2">
                                                        <asp:Button ID="btn_Official_blur1" OnClientClick="return div_show1();" runat="server"
                                                            CssClass="btn btn-block btn-success" />
                                                    </div>
                                                    <div class="col-md-2">
                                                        <asp:Button ID="btn_LeavePolicy_main" runat="server" CssClass="btn btn-block btn-info"
                                                            Enabled="false" />
                                                    </div>
                                                    <div class="col-md-2">
                                                        <asp:Button ID="btn_Others_blur2" runat="server" OnClientClick="return div_show3();"
                                                            CssClass="btn btn-block btn-danger" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-md-2">
                                        <asp:Label ID="lbl_PolicyName1" runat="server"></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:DropDownList ID="ddl_LeavePolicy" runat="server" CssClass="form-control select2"
                                            AppendDataBoundItems="True" onchange="return assignLeavePol()" Style="margin-bottom: 15px">
                                            <asp:ListItem Text="-Select-" Value="-Select-"></asp:ListItem>
                                        </asp:DropDownList>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:LinkButton ID="btn_AddPolicy" CssClass="btn save-btn fa-plus" runat="server"
                                            Style="margin-left: 0px" data-toggle="tooltip" data-placement="top" OnClientClick="return addNextPolicy(NoDetailsfoundinLeavePolicy,ErrorinretrivingdetailsfromLeavepolicy);return false;"></asp:LinkButton>
                                        <asp:LinkButton ID="btn_View" runat="server" data-toggle="tooltip" data-placement="top"
                                            CausesValidation="false" CssClass="btn save-btn fa-calculator" OnClientClick="return Calculate_Validation();"></asp:LinkButton>
                                    </div>
                                </div>
                                <div class="row form-group">
                                    <div class="col-md-12">
                                        <div id="div_Leavepolicy">
                                            <div id="div_policy" runat="server" enableviewstate="true">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row form-group">
                                    <div class="col-md-12">
                                        <div id="div_EmpLeave" runat="server" enableviewstate="true">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-md-12">
                                        <div class="pull-right-button">
                                            <asp:LinkButton ID="btn_Back3" CssClass="btn clr-btn fa-angle-left" runat="server"
                                                OnClientClick="return div_show1();"></asp:LinkButton>
                                            <asp:LinkButton ID="btn_Cancel" CssClass="btn clr-btn fa-times" runat="server" CausesValidation="false"
                                                OnClick="btn_Cancel_Click"></asp:LinkButton>
                                            <asp:LinkButton ID="btn_Next3" CssClass="btn clr-btn fa-angle-right" runat="server"
                                                OnClientClick="return div_show3();"></asp:LinkButton>
                                            <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
                                                ShowSummary="False" />
                                            <asp:HiddenField ID="hdf_controlID" runat="server" />
                                            <asp:HiddenField ID="hdf_PolicyID" runat="server" />
                                            <asp:HiddenField ID="hdf_PolicyName" runat="server" />
                                            <asp:HiddenField ID="hdf_Policy" runat="server" />
                                            <asp:HiddenField ID="hdf_PolVal" runat="server" />
                                            <asp:HiddenField ID="hidLeaveFlag" runat="server" />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div id="Others" class="tab-pane fade">
                    <div id="PH_Others" runat="server" enableviewstate="true" style="padding: 16px">
                        <div class="form-horizontal">
                            <div class="panel-body">
                                <div class="row" style="display: none">
                                    <div class="col-md-2">
                                        <asp:Label ID="lblEmployeeMaster2" runat="server"></asp:Label>
                                    </div>
                                </div>
                                <div class="row" style="display: none">
                                    <div class="col-md-2">
                                        <div class="box">
                                            <div>
                                                <div class="row">
                                                    <div class="col-md-2">
                                                        <asp:Button ID="btn_Personal_blur2" runat="server" CssClass="but_emp1" OnClientClick="return div_show0();" />
                                                    </div>
                                                    <div class="col-md-2">
                                                        <asp:Button ID="btn_Official_blur2" OnClientClick="return div_show1();" runat="server"
                                                            CssClass="but_emp1" />
                                                    </div>
                                                    <div class="col-md-2">
                                                        <asp:Button ID="btn_LeavePolicy_blur2" OnClientClick="return div_show2();" runat="server"
                                                            CssClass="but_emp1" />
                                                    </div>
                                                    <div class="col-md-2">
                                                        <asp:Button ID="btn_Others_main" runat="server" CssClass="but_emp2" Enabled="false" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-md-2">
                                        <asp:Label ID="lbl_PassportNo" runat="server"></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:TextBox onpaste="return true" ID="txt_Passport" runat="server" CssClass="form-control"
                                            MaxLength="50" onkeypress="return chk_alphanumeric_only(event,this)"></asp:TextBox>
                                    </div>
                                    <div class="col-md-1"></div>
                                    <div class="col-md-2">
                                        <asp:Label ID="lbl_PassportexpiryDate" runat="server"></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:TextBox onpaste="return true" ID="txt_PExpiry" runat="server" CssClass="form-control"
                                            MaxLength="11" onDrop="return false;"></asp:TextBox>
                                    </div>
                                     <%--Added by Velumani on Feb 28 for Product--%>
                                    <div class="col-md-2 pad-left-0px" style="display:none;">
                                        <asp:CheckBox ID="chk_IspassportRemindReq" Text="Is reminder required" runat="server"  onclick="EnableRemindDays();" CssClass="checkboxEmployee checkboxEmployee-primary checkbox-circle" />
                                    </div>
                                    <div class="col-md-1" style="display:none;">
                                        <asp:Label ID="lblPassportRemindDays" runat="server">Days</asp:Label>
                                    </div>
                                    <div class="col-md-1" style="display:none;">
                                        <asp:TextBox onpaste="return true" ID="txtPassportRemindDayscount" runat="server" CssClass="form-control"
                                            MaxLength="3" onkeypress="return number_only(event,this)" value="20"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-md-2">
                                        <asp:Label ID="lbl_VisaNo" runat="server"></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:TextBox onpaste="return true" ID="txt_Visa" runat="server" CssClass="form-control"
                                            MaxLength="50" onkeypress="return chk_alphanumeric_only(event,this)"></asp:TextBox>
                                    </div>
                                    <div class="col-md-1"></div>
                                    <div class="col-md-2">
                                        <asp:Label ID="lbl_VisaExpiryDate" runat="server"></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:TextBox onpaste="return true" ID="txt_VExpiry" runat="server" CssClass="form-control"
                                            MaxLength="11"></asp:TextBox>
                                    </div>

                                         <%--Added by Velumani on Feb 28 for Product--%>
                                    <div class="col-md-2 pad-left-0px" style="display:none;">
                                   <asp:CheckBox ID="chk_IsVisaRemindReq" Text="Is reminder required" runat="server" onclick="EnableRemindDays();" CssClass="checkboxEmployee checkboxEmployee-primary checkbox-circle" />
                                    </div>
                                    <div class="col-md-1" style="display:none;">
                                        <asp:Label ID="lblVisaRemindDays" runat="server">Days</asp:Label>
                                    </div>
                                    <div class="col-md-1" style="display:none;">
                                        <asp:TextBox onpaste="return true" ID="txtVisaRemindDayscount" runat="server" CssClass="form-control"
                                            MaxLength="3" onkeypress="return number_only(event,this)" value="20"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-md-2">
                                        <asp:Label ID="lbl_VehicleType" runat="server"></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:DropDownList ID="ddl_VehicleType" runat="server" CssClass="form-control select2">
                                            <asp:ListItem Text="-Select-" Value="-Select-"></asp:ListItem>
                                            <asp:ListItem Text="Two Wheeler" Value="Two Wheeler"></asp:ListItem>
                                            <asp:ListItem Text="Four Wheeler" Value="Four Wheeler"></asp:ListItem>
                                        </asp:DropDownList>
                                    </div>
                                    <div class="col-md-1"></div>                                    
                                    <div class="col-md-2">
                                        <asp:Label ID="lbl_VehicleNumber" runat="server"></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:TextBox onpaste="return true" ID="txt_VehicleNo" CssClass="form-control" runat="server"
                                            MaxLength="10" onkeypress="return Valiadteltgt(event,this);"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-md-2">
                                        <asp:Label ID="lbl_AnniversaryDate" runat="server"></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:TextBox onpaste="return true" ID="txt_AnniversaryDate" runat="server" CssClass="form-control"
                                            MaxLength="11" onDrop="return false;"></asp:TextBox>
                                    </div>
                                    <div class="col-md-1">
                                    </div>
                                    <div class="col-md-2" id="divlblEntrance" runat="server">
                                        <asp:Label ID="lbl_EntranceName" runat="server"></asp:Label>
                                    </div>
                                    <div class="col-md-3" id="divddlEntrance" runat="server">
                                        <asp:DropDownList ID="ddl_EntranceName" runat="server" CssClass="form-control select2">
                                            <asp:ListItem Text="-Select-" Value="-Select-"></asp:ListItem>
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-md-2">
                                        <asp:Label ID="lbl_NoofSpouse" runat="server"></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <input id="txt_SpouseNo" runat="server" class="form-control" maxlength="2" ondrop="return false;"
                                            onkeypress="return number_only(event,this)" onchange="return ajaxspouse(EntertheSpouseintherangeof1to4,NoDetailsfoundinspouse,Errorinretrivingdetailsfromspouse,InvalidSpouseDOB,EntertheSpouseintherangeof1to10);"
                                            type="text" />
                                    </div>
                                </div>
                                <div id="div_Spouse">
                                </div>
                                <div class="form-group">
                                    <div class="col-md-2">
                                        <asp:Label ID="lbl_NoofChildren" runat="server" />
                                    </div>
                                    <div class="col-md-3">
                                        <input id="txt_ChildrenNo" runat="server" class="form-control" maxlength="2" ondrop="return false;"
                                            onkeypress="return number_only(event,this)" onchange="return ajaxfunction(EntertheChildrenintherangeof1to10,NoDetailsfoundinChild,Errorinretrivingdetails,InvalidChildDOB);"
                                            type="text" />
                                    </div>
                                </div>
                                <div id="div_children">
                                </div>
                                <div class="form-group">
                                    <div class="col-md-2">
                                        <asp:Label runat="server" ID="lblCustomField1" Text="Customizable Field1"></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:TextBox runat="server" ID="txtCustomField1" TextMode="MultiLine" MaxLength="250"
                                            CssClass="form-control" onpaste="return true" onkeyup="return chckMaxLength(this,ChckMaxLength500);"
                                            Style="resize: none; height: 30px"></asp:TextBox>
                                    </div>
                                    <div class="col-md-1">
                                    </div>
                                    <div class="col-md-2">
                                        <asp:Label runat="server" ID="lblCustomField2" Text="Customizable Field2"></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:TextBox runat="server" ID="txtCustomField2" TextMode="MultiLine" MaxLength="250"
                                            Style="resize: none; height: 30px" CssClass="form-control" onpaste="return true"
                                            onkeyup="return chckMaxLength(this,ChckMaxLength500);"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-md-2">
                                        <asp:Label runat="server" ID="lblCustomField3" Text="Customizable Field3"></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:TextBox runat="server" ID="txtCustomField3" TextMode="MultiLine" MaxLength="250"
                                            Style="resize: none; height: 30px" CssClass="form-control" onpaste="return true"
                                            onkeyup="return chckMaxLength(this,ChckMaxLength500);"></asp:TextBox>
                                    </div>
                                    <div class="col-md-1">
                                    </div>
                                    <div class="col-md-2">
                                        <asp:Label runat="server" ID="lblCustomField4" Text="Customizable Field4"></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:TextBox runat="server" ID="txtCustomField4" TextMode="MultiLine" MaxLength="250"
                                            Style="resize: none; height: 30px" CssClass="form-control" onpaste="return true"
                                            onkeyup="return chckMaxLength(this,ChckMaxLength500);"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-md-2">
                                        <asp:Label runat="server" ID="lblCustomField5" Text="Customizable Field5"></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:TextBox runat="server" ID="txtCustomField5" TextMode="MultiLine" MaxLength="250"
                                            Style="resize: none; height: 30px" CssClass="form-control" onpaste="return true"
                                            onkeyup="return chckMaxLength(this,ChckMaxLength500);"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="pull-left-button" style="margin-bottom: 15px;">
                                    <asp:PlaceHolder ID="phLeaveTypes" runat="server" EnableViewState="true"></asp:PlaceHolder>
                                </div>
                                <div class="form-group">
                                    <div class="col-md-5">
                                    </div>
                                    <div class="col-md-6">
                                        <div class="pull-right-button">
                                            <asp:LinkButton ID="btn_Back4" CssClass="btn clr-btn fa-angle-left" runat="server"
                                                OnClientClick="return div_show2();"></asp:LinkButton>
                                            <asp:LinkButton ID="btn_Cancel3" CssClass="btn clr-btn fa-times" runat="server" CausesValidation="false"
                                                OnClick="btn_Cancel_Click"></asp:LinkButton>
                                            <script type="text/javascript">
                                                function CallButtonClick() {
                                                    $("#ctl00_BodyContentPH_ButSave").click();
                                                }
                                            </script>
                                            <%--<asp:LinkButton ID="btn_Save" CssClass="btn save-btn fa-floppy-o" runat="server" OnClientClick="return CallButtonClick();"></asp:LinkButton>--%>
                                            <div style="display: none;">
                                                <asp:LinkButton ID="btn_Save" runat="server" CssClass="btn save-btn fa-floppy-o"
                                                    OnClick="btn_Save_Click" OnClientClick="return SaveButton(FillLeavePolicy,Leavepolicydurationshouldnotbeempty,SelectDate,InvalidDate,PolicyStartDateshouldbegreaterthantheDOJ,PolicyDatealreadyExists,FillStartDateandEndDate,NoDetailsfoundinEmpLeave,Errorinretrivingdetails,LeavePolicyNoDetailsfoundinEmpLeave,LeavePolicyErrorinretrivingdetails,PolicyDateContinutyMissing);" />
                                            </div>
                                            <asp:Button ID="ButSave" CssClass="btn save-btn fa-floppy-o" runat="server" OnClick="btn_Save_Click"
                                                OnClientClick="javascript:return SaveButton(FillLeavePolicy,Leavepolicydurationshouldnotbeempty,SelectDate,InvalidDate,PolicyStartDateshouldbegreaterthantheDOJ,PolicyDatealreadyExists,FillStartDateandEndDate,NoDetailsfoundinEmpLeave,Errorinretrivingdetails,LeavePolicyNoDetailsfoundinEmpLeave,LeavePolicyErrorinretrivingdetails,PolicyDateContinutyMissing);" />
                                            <asp:ValidationSummary ID="ValidationSummary4" runat="server" ShowMessageBox="True"
                                                ShowSummary="False" />
                                            <asp:HiddenField ID="hid_Children" runat="server" />
                                            <asp:HiddenField ID="hid_Spouse" runat="server" />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        $('.responsive-tabs').responsiveTabs({
            accordionOn: ['xs', 'sm']
        });
    </script>
    <script type="text/javascript">
        $(".select2").select2();
        function LoadDropdownScript() {
            $('.select2').select2({
                placeholder: {
                    id: 'select',
                    text: '-Select-'
                }
            });
        }
    </script>
</asp:Content>
