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

<asp:Content ID="Content1" ContentPlaceHolderID="BodyContentPH" runat="Server">
    <script src="../plugins/datepicker/jquery-1.11.1.min.js"></script>
    <script src="../plugins/datepicker/bootstrap-datepicker.js"></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/PenaltyPercentage.js"></script>
    <script lang="javascript" type="text/javascript">
        function GetPenaltyPercentageDetails() {
            var index = document.aspnetForm.ctl00_BodyContentPH_ddlCompany.selectedIndex;
            var company = document.aspnetForm.ctl00_BodyContentPH_ddlCompany.options[index].value;
            if (company == 0) {
                ClearControls();
                alert("Select Company");
                return false;
            }
            else {
                document.getElementById('ctl00_BodyContentPH_hdfCompanyId').value = company;
                GettingPenaltyPercentageDetails();
                return false;
            }
        }
        function ClearControls() {
            document.getElementById('ctl00_BodyContentPH_txtfirstLateStart').value = "";
            document.getElementById('ctl00_BodyContentPH_txtfirstLateEnd').value = "";
            document.getElementById('ctl00_BodyContentPH_txtsecondLateStart').value = "";
            document.getElementById('ctl00_BodyContentPH_txtThirdLateStart').value = "";
            document.getElementById('ctl00_BodyContentPH_txtsecondLateEnd').value = "";
            document.getElementById('ctl00_BodyContentPH_txtThirdLateEnd').value = "";
            document.getElementById('ctl00_BodyContentPH_TxtLateInValue11').value = "";
            document.getElementById('ctl00_BodyContentPH_TxtLateInValue12').value = "";
            document.getElementById('ctl00_BodyContentPH_TxtLateInValue13').value = "";
            document.getElementById('ctl00_BodyContentPH_TxtLateInValue14').value = "";
            document.getElementById('ctl00_BodyContentPH_TxtLateInValue21').value = "";
            document.getElementById('ctl00_BodyContentPH_TxtLateInValue22').value = "";
            document.getElementById('ctl00_BodyContentPH_TxtLateInValue23').value = "";
            document.getElementById('ctl00_BodyContentPH_TxtLateInValue24').value = "";
            document.getElementById('ctl00_BodyContentPH_TxtLateInValue31').value = "";
            document.getElementById('ctl00_BodyContentPH_TxtLateInValue32').value = "";
            document.getElementById('ctl00_BodyContentPH_TxtLateInValue33').value = "";
            document.getElementById('ctl00_BodyContentPH_TxtLateInValue34').value = "";

            document.getElementById('ctl00_BodyContentPH_txtnonfirstLateStart').value = "";
            document.getElementById('ctl00_BodyContentPH_txtnonfirstLateEnd').value = "";
            document.getElementById('ctl00_BodyContentPH_txtnonsecondLateStart').value = "";
            document.getElementById('ctl00_BodyContentPH_txtnonsecondLateEnd').value = "";
            document.getElementById('ctl00_BodyContentPH_txtnonthirdLateStart').value = "";
            document.getElementById('ctl00_BodyContentPH_txtnonthirdLateEnd').value = "";
            document.getElementById('ctl00_BodyContentPH_TxtnonLateInValue11').value = "";
            document.getElementById('ctl00_BodyContentPH_TxtnonLateInValue12').value = "";
            document.getElementById('ctl00_BodyContentPH_TxtnonLateInValue13').value = "";
            document.getElementById('ctl00_BodyContentPH_TxtnonLateInValue14').value = "";
            document.getElementById('ctl00_BodyContentPH_TxtnonLateInValue21').value = "";
            document.getElementById('ctl00_BodyContentPH_TxtnonLateInValue22').value = "";
            document.getElementById('ctl00_BodyContentPH_TxtnonLateInValue23').value = "";
            document.getElementById('ctl00_BodyContentPH_TxtnonLateInValue24').value = "";
            document.getElementById('ctl00_BodyContentPH_TxtnonLateInValue31').value = "";
            document.getElementById('ctl00_BodyContentPH_TxtnonLateInValue32').value = "";
            document.getElementById('ctl00_BodyContentPH_TxtnonLateInValue33').value = "";
            document.getElementById('ctl00_BodyContentPH_TxtnonLateInValue34').value = "";
            //Disruptive and Non Disruptive values
            document.getElementById('ctl00_BodyContentPH_TxtearlyStart').value = "";
            document.getElementById('ctl00_BodyContentPH_TxtearlyEnd').value = "";
            document.getElementById('ctl00_BodyContentPH_Txtearly11').value = "";
            document.getElementById('ctl00_BodyContentPH_Txtearly12').value = "";
            document.getElementById('ctl00_BodyContentPH_Txtearly13').value = "";
            document.getElementById('ctl00_BodyContentPH_Txtearly14').value = "";

        }
        $(function () {
            $('#ctl00_BodyContentPH_txtfirstLateStart').datetimepicker({ format: 'HH:mm' });
            $('#ctl00_BodyContentPH_txtsecondLateStart').datetimepicker({ format: 'HH:mm' });
            $('#ctl00_BodyContentPH_txtThirdLateStart').datetimepicker({ format: 'HH:mm' });
            $('#ctl00_BodyContentPH_txtfirstLateEnd').datetimepicker({ format: 'HH:mm' });
            $('#ctl00_BodyContentPH_txtsecondLateEnd').datetimepicker({ format: 'HH:mm' });
            $('#ctl00_BodyContentPH_txtThirdLateEnd').datetimepicker({ format: 'HH:mm' });
            $('#ctl00_BodyContentPH_txtnonfirstLateStart').datetimepicker({ format: 'HH:mm' });
            $('#ctl00_BodyContentPH_txtnonsecondLateStart').datetimepicker({ format: 'HH:mm' });
            $('#ctl00_BodyContentPH_txtnonthirdLateStart').datetimepicker({ format: 'HH:mm' });
            $('#ctl00_BodyContentPH_txtnonfirstLateEnd').datetimepicker({ format: 'HH:mm' });
            $('#ctl00_BodyContentPH_txtnonsecondLateEnd').datetimepicker({ format: 'HH:mm' });
            $('#ctl00_BodyContentPH_txtnonthirdLateEnd').datetimepicker({ format: 'HH:mm' });
            $('#ctl00_BodyContentPH_TxtearlyStart').datetimepicker({ format: 'HH:mm' });
            $('#ctl00_BodyContentPH_TxtearlyEnd').datetimepicker({ format: 'HH:mm' });
        });
    </script>
    <div class="content-header">
        <h1 style="background-image: url('../dist/img/shift-pattern.png'); background-repeat: no-repeat; padding-left: 35px">
            <asp:Label ID="lbl_Header" runat="server"></asp:Label>
        </h1>
        <asp:SiteMapPath ID="site" runat="server" CssClass="breadcrumb">
            <NodeStyle CssClass="active" />
        </asp:SiteMapPath>
    </div>
    <div class="content">
        <div class="inr-ftr">
            <div class="row" style="min-height: 30px">
            </div>
        </div>
        <div class="emp-filter">
            <div class="form-horizontal">
                <div class="row form-group" style="margin-left: -20px; margin-right: -20px">
                    <div>
                        <div class="row">
                            <div class="col-md-1"></div>
                            <div class="col-md-2">
                                <asp:Label ID="lblCompany" runat="server"></asp:Label>
                                <asp:HiddenField ID="hdfCompanyId" runat="server" />
                            </div>
                            <div class="col-md-3">
                                <asp:DropDownList ID="ddlCompany" runat="server" AppendDataBoundItems="true"
                                    onchange="return GetPenaltyPercentageDetails(this.value);" CssClass="form-control select2 Man-dat">
                                    <asp:ListItem Value="0" Text="-Select-"></asp:ListItem>
                                </asp:DropDownList>
                            </div>
                        </div>
                    </div>
                    <div class="config-hdr">
                        <div class="row">
                            <div class="col-md-12">
                                <h3>
                                    <asp:Label ID="lblLateConfig" runat="server"></asp:Label>
                                </h3>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-12">
                        <table width="100%" class="table das-table1">
                            <tr class="empheader">
                                <td style="width: 6%; text-align: center;"></td>
                                <td style="width: 15%; text-align: center;">
                                    <asp:Label ID="lblStartTime" runat="server"></asp:Label>
                                </td>
                                <td style="width: 15%; text-align: center">
                                    <asp:Label ID="lblEndTime" runat="server"></asp:Label>
                                </td>
                                <td style="width: 15%; text-align: center;">
                                    <asp:Label ID="lblfirstlate" runat="server"></asp:Label>
                                </td>
                                <td style="width: 15%; text-align: center">
                                    <asp:Label ID="lblsecondlate" runat="server"></asp:Label>
                                </td>
                                <td style="width: 15%; text-align: center">
                                    <asp:Label ID="lblThirdlate" runat="server"></asp:Label>
                                </td>
                                <td style="width: 15%; text-align: center">
                                    <asp:Label ID="lblFourthlate" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr style="background: #f0faff none repeat scroll 0 0">
                                <td>Row 1:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtfirstLateStart" runat="server" CssClass="form-control" onCut="return false"
                                        onpaste="return true" MaxLength="5" onDrop="return false"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtfirstLateEnd" runat="server" CssClass="form-control" onCut="return false"
                                        onpaste="return true" MaxLength="5" onDrop="return false"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtLateInValue11" runat="server" CssClass="form-control" onCut="return false"
                                        onkeypress="return numbers_dot(event,this)" MaxLength="4"
                                        onpaste="return true" onDrop="return false"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtLateInValue12" runat="server" CssClass="form-control" onCut="return false"
                                        onkeypress="return numbers_dot(event,this)" MaxLength="4"
                                        onpaste="return true" onDrop="return false"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtLateInValue13" runat="server" CssClass="form-control" onCut="return false"
                                        onkeypress="return numbers_dot(event,this)" MaxLength="4"
                                        onpaste="return true" onDrop="return false"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtLateInValue14" runat="server" CssClass="form-control" onCut="return false"
                                        onkeypress="return numbers_dot(event,this)" MaxLength="4"
                                        onpaste="return true" onDrop="return false"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>Row 2:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtsecondLateStart" runat="server" CssClass="form-control" onCut="return false"
                                        onpaste="return true" MaxLength="5" onDrop="return false"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtsecondLateEnd" runat="server" CssClass="form-control" onCut="return false"
                                        onpaste="return true" MaxLength="5" onDrop="return false"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtLateInValue21" runat="server" CssClass="form-control" onCut="return false"
                                        onkeypress="return numbers_dot(event,this)" MaxLength="4"
                                        onpaste="return true" onDrop="return false"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtLateInValue22" runat="server" CssClass="form-control" onCut="return false"
                                        onkeypress="return numbers_dot(event,this)" MaxLength="4"
                                        onpaste="return true" onDrop="return false"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtLateInValue23" runat="server" CssClass="form-control" onCut="return false"
                                        onkeypress="return numbers_dot(event,this)" MaxLength="4"
                                        onpaste="return true" onDrop="return false"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtLateInValue24" runat="server" CssClass="form-control" onCut="return false"
                                        onkeypress="return numbers_dot(event,this)" MaxLength="4"
                                        onpaste="return true" onDrop="return false"></asp:TextBox>
                                </td>
                            </tr>
                            <tr style="background: #f0faff none repeat scroll 0 0">
                                <td>Row 3:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtThirdLateStart" runat="server" CssClass="form-control" onCut="return false"
                                        onpaste="return true" MaxLength="5" onDrop="return false"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtThirdLateEnd" runat="server" CssClass="form-control" onCut="return false"
                                        onpaste="return true" MaxLength="5" onDrop="return false"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtLateInValue31" runat="server" CssClass="form-control" onCut="return false"
                                        onkeypress="return numbers_dot(event,this)" MaxLength="4"
                                        onpaste="return true" onDrop="return false"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtLateInValue32" runat="server" CssClass="form-control" onCut="return false"
                                        onkeypress="return numbers_dot(event,this)" MaxLength="4"
                                        onpaste="return true" onDrop="return false"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtLateInValue33" runat="server" CssClass="form-control" onCut="return false"
                                        onkeypress="return numbers_dot(event,this)" MaxLength="4"
                                        onpaste="return true" onDrop="return false"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtLateInValue34" runat="server" CssClass="form-control" onCut="return false"
                                        onkeypress="return numbers_dot(event,this)" MaxLength="4"
                                        onpaste="return true" onDrop="return false"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="row form-group" style="margin-left: -20px; margin-right: -20px">
                    <div class="config-hdr">
                        <div class="row">
                            <div class="col-md-12">
                                <h3>
                                    <asp:Label ID="lblHeader2" runat="server"></asp:Label>
                                </h3>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-12">
                        <table id="tblOTParameter" width="100%" class="table das-table1">
                            <tr class="empheader">
                                <td style="width: 6%; text-align: center;"></td>
                                <td style="width: 15%; text-align: center;">
                                    <asp:Label ID="lblNonStartTime" runat="server"></asp:Label>
                                </td>
                                <td style="width: 15%; text-align: center;">
                                    <asp:Label ID="lblNonEndTime" runat="server"></asp:Label>
                                </td>
                                <td style="width: 15%; text-align: center;">
                                    <asp:Label ID="lblfirstNonlate" runat="server"></asp:Label>
                                </td>
                                <td style="width: 15%; text-align: center;">
                                    <asp:Label ID="lblSecondNonlate" runat="server"></asp:Label>
                                </td>
                                <td style="width: 15%; text-align: center;">
                                    <asp:Label ID="lblThirdNonlate" runat="server"></asp:Label>
                                </td>
                                <td style="width: 15%; text-align: center;">
                                    <asp:Label ID="lblfourthNonlate" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr style="background: #f0faff none repeat scroll 0 0">
                                <td>Row 1:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtnonfirstLateStart" runat="server" CssClass="form-control" onCut="return false"
                                        onpaste="return true" MaxLength="5" onDrop="return false"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtnonfirstLateEnd" runat="server" CssClass="form-control" onCut="return false"
                                        onpaste="return true" MaxLength="5" onDrop="return false"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtnonLateInValue11" runat="server" CssClass="form-control" onCut="return false"
                                        onkeypress="return numbers_dot(event,this)" MaxLength="4"
                                        onpaste="return true" onDrop="return false"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtnonLateInValue12" runat="server" CssClass="form-control" onCut="return false"
                                        onkeypress="return numbers_dot(event,this)" MaxLength="4"
                                        onpaste="return true" onDrop="return false"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtnonLateInValue13" runat="server" CssClass="form-control" onCut="return false"
                                        onkeypress="return numbers_dot(event,this)" MaxLength="4"
                                        onpaste="return true" onDrop="return false"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtnonLateInValue14" runat="server" CssClass="form-control" onCut="return false"
                                        onkeypress="return numbers_dot(event,this)" MaxLength="4"
                                        onpaste="return true" onDrop="return false"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>Row 2:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtnonsecondLateStart" runat="server" CssClass="form-control" onCut="return false"
                                        onpaste="return true" MaxLength="5" onDrop="return false"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtnonsecondLateEnd" runat="server" CssClass="form-control" onCut="return false"
                                        onpaste="return true" MaxLength="5" onDrop="return false"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtnonLateInValue21" runat="server" CssClass="form-control" onCut="return false"
                                        onkeypress="return numbers_dot(event,this)" MaxLength="4"
                                        onpaste="return true" onDrop="return false"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtnonLateInValue22" runat="server" CssClass="form-control" onCut="return false"
                                        onkeypress="return numbers_dot(event,this)" MaxLength="4"
                                        onpaste="return true" onDrop="return false"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtnonLateInValue23" runat="server" CssClass="form-control" onCut="return false"
                                        onkeypress="return numbers_dot(event,this)" MaxLength="4"
                                        onpaste="return true" onDrop="return false"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtnonLateInValue24" runat="server" CssClass="form-control" onCut="return false"
                                        onkeypress="return numbers_dot(event,this)" MaxLength="4"
                                        onpaste="return true" onDrop="return false"></asp:TextBox>
                                </td>
                            </tr>
                            <tr style="background: #f0faff none repeat scroll 0 0">
                                <td>Row 3:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtnonthirdLateStart" runat="server" CssClass="form-control" onCut="return false"
                                        onpaste="return true" MaxLength="5" onDrop="return false"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtnonthirdLateEnd" runat="server" CssClass="form-control" onCut="return false"
                                        onpaste="return true" MaxLength="5" onDrop="return false"></asp:TextBox>
                                <td>
                                    <asp:TextBox ID="TxtnonLateInValue31" runat="server" CssClass="form-control" onCut="return false"
                                        onkeypress="return numbers_dot(event,this)" MaxLength="4"
                                        onpaste="return true" onDrop="return false"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtnonLateInValue32" runat="server" CssClass="form-control" onCut="return false"
                                        onkeypress="return numbers_dot(event,this)" MaxLength="4"
                                        onpaste="return true" onDrop="return false"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtnonLateInValue33" runat="server" CssClass="form-control" onCut="return false"
                                        onkeypress="return numbers_dot(event,this)" MaxLength="4"
                                        onpaste="return true" onDrop="return false"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtnonLateInValue34" runat="server" CssClass="form-control" onCut="return false"
                                        onkeypress="return numbers_dot(event,this)" MaxLength="4"
                                        onpaste="return true" onDrop="return false"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="row form-group" style="margin-left: -20px; margin-right: -20px; margin-bottom: 0px">
                    <div class="config-hdr">
                        <div class="row">
                            <div class="col-md-12">
                                <h3>
                                    <asp:Label ID="lblHeader3" runat="server"></asp:Label>
                                </h3>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-12">
                        <table id="Table2" width="100%" class="table das-table1">
                            <tr class="empheader">
                                <td style="width: 6%; text-align: center;"></td>
                                <td style="width: 15%; text-align: center;">
                                    <asp:Label ID="lblStartEarlyExit" runat="server" Text="Start Time (HH:mm)"></asp:Label>
                                </td>
                                <td style="width: 15%; text-align: center;">
                                    <asp:Label ID="lblEndEarlyExit" runat="server" Text="End Time (HH:mm)"></asp:Label>
                                </td>
                                <td style="width: 15%; text-align: center;">
                                    <asp:Label ID="lblFirstEarly" runat="server" Text="First Time (%)"></asp:Label>
                                </td>
                                <td style="width: 15%; text-align: center;">
                                    <asp:Label ID="lblSecondEarly" runat="server" Text="Second Time (%)"></asp:Label>
                                </td>
                                <td style="width: 15%; text-align: center;">
                                    <asp:Label ID="lblThirdEarly" runat="server" Text="Third Time (%)"></asp:Label>
                                </td>
                                <td style="width: 15%; text-align: center;">
                                    <asp:Label ID="lblFourthEarly" runat="server" Text="Fourth Time (%)"></asp:Label>
                                </td>
                            </tr>
                            <tr style="background: #f0faff none repeat scroll 0 0">
                                <td>Row 1:
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtearlyStart" runat="server" CssClass="form-control" onCut="return false"
                                        onpaste="return true" MaxLength="5" onDrop="return false"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtearlyEnd" runat="server" CssClass="form-control" onCut="return false"
                                        onpaste="return true" MaxLength="5" onDrop="return false"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="Txtearly11" runat="server" CssClass="form-control" onCut="return false"
                                        onkeypress="return numbers_dot(event,this)" MaxLength="4"
                                        onpaste="return true" onDrop="return false"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="Txtearly12" runat="server" CssClass="form-control" onCut="return false"
                                        onkeypress="return numbers_dot(event,this)" MaxLength="4"
                                        onpaste="return true" onDrop="return false"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="Txtearly13" runat="server" CssClass="form-control" onCut="return false"
                                        onkeypress="return numbers_dot(event,this)" MaxLength="4"
                                        onpaste="return true" onDrop="return false"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="Txtearly14" runat="server" CssClass="form-control" onCut="return false"
                                        onkeypress="return numbers_dot(event,this)" MaxLength="4"
                                        onpaste="return true" onDrop="return false"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class="row form-group"></div>
                    <div class="row">
                        <div class="col-md-12">
                            <div class="col-md-12">
                                <div class="pull-right-button">
                                    <asp:LinkButton ID="btn_Save" CssClass="btn save-btn fa-floppy-o"
                                        OnClientClick="return validateControls();" OnClick="btn_Save_Click"
                                        runat="server" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        function validateControls() {
            var SelectCompany = "Select Company";
            var index = document.aspnetForm.ctl00_BodyContentPH_ddlCompany.selectedIndex;
            var company = document.aspnetForm.ctl00_BodyContentPH_ddlCompany.options[index].value;
            if (company == "0") {
                alert(SelectCompany);
                return false;
            }
            else {
                if (trim(document.aspnetForm.ctl00_BodyContentPH_txtfirstLateStart.value) == "") {
                    alert("Row 1: Enter Start Time of Disruptive - Late Fine Percentage");
                    document.aspnetForm.ctl00_BodyContentPH_txtfirstLateStart.focus();
                    return false;
                }
                else if (trim(document.aspnetForm.ctl00_BodyContentPH_txtfirstLateEnd.value) == "") {
                    alert("Row 1: Enter End Time of Disruptive - Late Fine Percentage");
                    document.aspnetForm.ctl00_BodyContentPH_txtfirstLateEnd.focus();
                    return false;
                }
                else if (trim(document.aspnetForm.ctl00_BodyContentPH_TxtLateInValue11.value) == "" || trim(document.aspnetForm.ctl00_BodyContentPH_TxtLateInValue12.value) == "" || trim(document.aspnetForm.ctl00_BodyContentPH_TxtLateInValue13.value) == "" || trim(document.aspnetForm.ctl00_BodyContentPH_TxtLateInValue14.value) == "") {
                    alert("Row 1: Enter Percentage values of each field of Disruptive - Late Fine Percentage");
                    return false;
                }
                else if (trim(document.aspnetForm.ctl00_BodyContentPH_txtsecondLateStart.value) == "") {
                    alert("Row 2: Enter Start Time of Disruptive - Late Fine Percentage");
                    document.aspnetForm.ctl00_BodyContentPH_txtsecondLateStart.focus();
                    return false;
                }
                else if (trim(document.aspnetForm.ctl00_BodyContentPH_txtsecondLateEnd.value) == "") {
                    alert("Row 2: Enter End Time of Disruptive - Late Fine Percentage");
                    document.aspnetForm.ctl00_BodyContentPH_txtsecondLateEnd.focus();
                    return false;
                }
                else if (trim(document.aspnetForm.ctl00_BodyContentPH_TxtLateInValue21.value) == "" || trim(document.aspnetForm.ctl00_BodyContentPH_TxtLateInValue22.value) == "" || trim(document.aspnetForm.ctl00_BodyContentPH_TxtLateInValue23.value) == "" || trim(document.aspnetForm.ctl00_BodyContentPH_TxtLateInValue24.value) == "") {
                    alert("Row 2: Enter Percentage values of each field of Disruptive - Late Fine Percentage");
                    return false;
                }
                else if (trim(document.aspnetForm.ctl00_BodyContentPH_txtThirdLateStart.value) == "") {
                    alert("Row 3: Enter Start Time of Disruptive - Late Fine Percentage");
                    document.aspnetForm.ctl00_BodyContentPH_txtThirdLateStart.focus();
                    return false;
                }
                else if (trim(document.aspnetForm.ctl00_BodyContentPH_txtThirdLateEnd.value) == "") {
                    alert("Row 3: Enter End Time of Disruptive - Late Fine Percentage");
                    document.aspnetForm.ctl00_BodyContentPH_txtThirdLateEnd.focus();
                    return false;
                }
                else if (trim(document.aspnetForm.ctl00_BodyContentPH_TxtLateInValue31.value) == "" || trim(document.aspnetForm.ctl00_BodyContentPH_TxtLateInValue32.value) == "" || trim(document.aspnetForm.ctl00_BodyContentPH_TxtLateInValue33.value) == "" || trim(document.aspnetForm.ctl00_BodyContentPH_TxtLateInValue34.value) == "") {
                    alert("Row 3: Enter Percentage values of each field of Disruptive - Late Fine Percentage");
                    return false;
                }
                else if (trim(document.aspnetForm.ctl00_BodyContentPH_txtnonfirstLateStart.value) == "") {
                    alert("Row 1: Enter Start Time of Non-Disruptive - Late Fine Percentage");
                    document.aspnetForm.ctl00_BodyContentPH_txtnonfirstLateStart.focus();
                    return false;
                }
                else if (trim(document.aspnetForm.ctl00_BodyContentPH_txtnonfirstLateEnd.value) == "") {
                    alert("Row 1: Enter End Time of Non-Disruptive - Late Fine Percentage");
                    document.aspnetForm.ctl00_BodyContentPH_txtnonfirstLateEnd.focus();
                    return false;
                }
                else if (trim(document.aspnetForm.ctl00_BodyContentPH_TxtnonLateInValue11.value) == "" || trim(document.aspnetForm.ctl00_BodyContentPH_TxtnonLateInValue12.value) == "" || trim(document.aspnetForm.ctl00_BodyContentPH_TxtnonLateInValue13.value) == "" || trim(document.aspnetForm.ctl00_BodyContentPH_TxtnonLateInValue14.value) == "") {
                    alert("Row 1: Enter Percentage values of each field of Non Disruptive - Late Fine Percentage");
                    return false;
                }
                else if (trim(document.aspnetForm.ctl00_BodyContentPH_txtnonsecondLateStart.value) == "") {
                    alert("Row 2: Enter Start Time of Non-Disruptive - Late Fine Percentage");
                    document.aspnetForm.ctl00_BodyContentPH_txtnonsecondLateStart.focus();
                    return false;
                }
                else if (trim(document.aspnetForm.ctl00_BodyContentPH_txtnonsecondLateEnd.value) == "") {
                    alert("Row 2: Enter End Time of Non-Disruptive - Late Fine Percentage");
                    document.aspnetForm.ctl00_BodyContentPH_txtnonsecondLateEnd.focus();
                    return false;
                }
                else if (trim(document.aspnetForm.ctl00_BodyContentPH_TxtnonLateInValue21.value) == "" || trim(document.aspnetForm.ctl00_BodyContentPH_TxtnonLateInValue22.value) == "" || trim(document.aspnetForm.ctl00_BodyContentPH_TxtnonLateInValue23.value) == "" || trim(document.aspnetForm.ctl00_BodyContentPH_TxtnonLateInValue24.value) == "") {
                    alert("Row 2: Enter Percentage values of each field of Non Disruptive - Late Fine Percentage");
                    return false;
                }
                else if (trim(document.aspnetForm.ctl00_BodyContentPH_txtnonthirdLateStart.value) == "") {
                    alert("Row 3: Enter Start Time of Non-Disruptive - Late Fine Percentage");
                    document.aspnetForm.ctl00_BodyContentPH_txtnonthirdLateStart.focus();
                    return false;
                }
                else if (trim(document.aspnetForm.ctl00_BodyContentPH_txtnonthirdLateEnd.value) == "") {
                    alert("Row 3: Enter End Time of Non-Disruptive - Late Fine Percentage");
                    document.aspnetForm.ctl00_BodyContentPH_txtnonthirdLateEnd.focus();
                    return false;
                }
                else if (trim(document.aspnetForm.ctl00_BodyContentPH_TxtnonLateInValue31.value) == "" || trim(document.aspnetForm.ctl00_BodyContentPH_TxtnonLateInValue32.value) == "" || trim(document.aspnetForm.ctl00_BodyContentPH_TxtnonLateInValue33.value) == "" || trim(document.aspnetForm.ctl00_BodyContentPH_TxtnonLateInValue34.value) == "") {
                    alert("Row 3: Enter Percentage values of each field of Non Disruptive - Late Fine Percentage");
                    return false;
                }
                else if (trim(document.aspnetForm.ctl00_BodyContentPH_TxtearlyStart.value) == "") {
                    alert("Row 1: Enter Start Time of Disruptive & Non-Disruptive Early Exit Fine Percentage");
                    document.aspnetForm.ctl00_BodyContentPH_TxtearlyStart.focus();
                    return false;
                }
                else if (trim(document.aspnetForm.ctl00_BodyContentPH_TxtearlyEnd.value) == "") {
                    alert("Row 1: Enter End Time of Disruptive & Non-Disruptive Early Exit Fine Percentage");
                    document.aspnetForm.ctl00_BodyContentPH_TxtearlyEnd.focus();
                    return false;
                }
                else if (trim(document.aspnetForm.ctl00_BodyContentPH_Txtearly11.value) == "" || trim(document.aspnetForm.ctl00_BodyContentPH_Txtearly12.value) == "" || trim(document.aspnetForm.ctl00_BodyContentPH_Txtearly13.value) == "" || trim(document.aspnetForm.ctl00_BodyContentPH_Txtearly14.value) == "") {
                    alert("Row 1: Enter Percentage values of each field of Disruptive & Non Disruptive - Early Exit Fine Percentage");
                    return false;
                }
                return confirm("Are you sure to save Penalty Percentage Configuration");
            }
        }
    </script>
</asp:Content>
