<%@ page language="C#" autoeventwireup="true" inherits="Forms_VehicleRequisition, App_Web_tnfq0fem" enableeventvalidation="false" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/New_Header.ascx" TagName="Header" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/New_Footer.ascx" TagName="Footer" TagPrefix="uc2" %>

<%--<%@ Register Assembly="DevExpress.Web.ASPxGridView.v8.2, Version=8.2.10.0, Culture=neutral, PublicKeyToken=9B171C9FD64DA1D1"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v8.2, Version=8.2.10.0, Culture=neutral, PublicKeyToken=9B171C9FD64DA1D1"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v8.2" Namespace="DevExpress.Web.ASPxEditors"
    TagPrefix="dxe" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v8.2.Export, Version=8.2.10.0, Culture=neutral, PublicKeyToken=9B171C9FD64DA1D1" Namespace="DevExpress.Web.ASPxGridView.Export"
    TagPrefix="exp" %>--%>

<%@ Register Assembly="DevExpress.Web.v14.2" Namespace="DevExpress.Web" TagPrefix="dxw" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>tSense-IoT Scheduled Vehicle Requisition Page</title>
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Page-Enter" content="blendTrans(Duration=0)" />
    <meta http-equiv="Page-Exit" content="blendTrans(Duration=0)" />
    <link href="../css/reset.css" rel="stylesheet" type="text/css" />
    <link href="../css/stylesheet2.css" rel="stylesheet" type="text/css" />
    <link href="../css/Updated_css.css" rel="stylesheet" type="text/css" />
    <link href="../css/dropdown.css" rel="stylesheet" type="text/css" />
    <link rel="SHORTCUT ICON" href="../images/favicon.ico" />
    <link href="../App_Themes/Office2003Blue/GridView/grid.css" rel="Stylesheet" />
    <link href="../App_Themes/Office2003Blue/Editors/styles.css" rel="Stylesheet" />
    <script src="../js/wow.min.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScmVehicleRequisition1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="upVehicleRequisition1" runat="server">
            <ContentTemplate>
                <div id="container">
                    <!-- Header Starts Here -->
                    <uc1:Header ID="ucHeader" runat="server" />
                    <!-- Nav Ends Here -->
                    <!-- Content Starts Here -->
                    <div id="outer">
                        <div id="inner">
                            <div id="float-wrap">
                                <!-- Main Content Starts Here -->
                                <!-- Main Content Starts Here -->
                                <div id="content">
                                    <div class="content-wrap">
                                        <div id="top-content">
                                            <div id="heading">
                                                <img class="icon" src="../images/rostering-icon.jpg" alt="" />
                                                <h1>Rostering</h1>
                                                <a href="Dashboard.aspx">Home</a><span>&gt;</span><span><a href="RosteringPanel.aspx">Rostering</a></span><span>&gt;</span><span><a
                                                    href="VehicleRequisition.aspx">Scheduled</a></span>
                                            </div>
                                            <div id="control-box">
                                                <table border="0" cellpadding="0" cellspacing="0" id="control-tbl" width="100%">
                                                    <tr height="20px">
                                                        <td>&nbsp;
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <div id="control-btn">
                                                                <table cellpadding="0" cellspacing="0" border="0" align="right">
                                                                    <tr>
                                                                        <td colspan="3">&nbsp;
                                                                        </td>
                                                                        <td>
                                                                            <asp:ImageButton ID="btnAddScheduledReq" runat="server" OnClick="btnAddScheduledReq_Click" ImageUrl="~/images/btn-add-scheduledrequisition.jpg" />
                                                                        </td>
                                                                        <td>
                                                                            <asp:ImageButton ID="ibtBackToRosterManagement" PostBackUrl="~/Forms/RosteringPanel.aspx"
                                                                                runat="server" ImageUrl="~/images/btn-backto-rostering.jpg" />
                                                                        </td>
                                                                        <td>&nbsp;&nbsp;
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                            <div class="clear clearfix">
                                            </div>
                                        </div>
                                        <div class="clear clearfix">
                                        </div>
                                        <asp:Panel ID="pnlUserInfo" runat="server" CssClass="ControlShow" Width="100%">
                                            <div class="form-box">
                                                <h1>
                                                    <span class="icon">
                                                        <img src="../images/vehiclenew-icon.gif" alt="" /></span>Request Details</h1>
                                            </div>
                                            <table border="0" cellpadding="0" cellspacing="0" width="100%" class="form-tbl">
                                                <tr>
                                                    <td width="100%">
                                                        <asp:Label ID="lblNote" runat="server" Text="Note:-Kindly raise a request for next day before 8pm today."
                                                            ForeColor="Red"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td width="100%">
                                                        <table border="0" cellpadding="0" cellspacing="0" class="form-box">
                                                            <tr>
                                                                <td class="split"></td>
                                                                <td width="100%">
                                                                    <asp:Panel Width="100%" ID="pnlEmployeePersonal" runat="server" BorderColor="AliceBlue"
                                                                        GroupingText="Employee Personal Details">
                                                                        <table border="0" cellspacing="0" cellpadding="0" width="100%" class="form-tbl">
                                                                            <tr id="trManageFleets" runat="server">
                                                                                <td class="split"></td>
                                                                                <td valign="top">
                                                                                    <asp:Label ID="lblReqForm" runat="server" CssClass="label" Text="Requisition From"></asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:Label runat="server" ID="lblRequisitionFrom" Font-Bold="true" Text="IND/CSC" CssClass="label"></asp:Label>
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>
                                                                                    <asp:Label runat="server" ID="lblEmpId" Text="Employee ID" CssClass="label"></asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:Label runat="server" ID="lblEmployeeId" Font-Bold="true" Text="1112750" CssClass="label"></asp:Label>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="split"></td>
                                                                                <td>
                                                                                    <asp:Label runat="server" ID="lblCubicle" Text="Cubicle Number" CssClass="label"></asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:Label runat="server" ID="lblCubicleNo" Font-Bold="true" Text="43F8545" CssClass="label"></asp:Label>
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>
                                                                                    <asp:Label runat="server" ID="lblExtention" Text="Extention Number" CssClass="label"></asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:Label runat="server" Font-Bold="true" ID="lblExtentionNo" Text="74524" CssClass="label"></asp:Label>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="split"></td>
                                                                                <td>
                                                                                    <asp:Label runat="server" ID="lblMobile" Text="Mobile Number" CssClass="label"></asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:Label ID="lblMobileNo" runat="server" Font-Bold="true" Text="9856542352" CssClass="label"></asp:Label>
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>
                                                                                    <asp:Label runat="server" ID="lblPhone" Text="Phone Number" CssClass="label"></asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:Label runat="server" ID="lblPhoneNo" Font-Bold="true" Text="+91-4252-564852" CssClass="label"></asp:Label>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="split"></td>
                                                                                <td>
                                                                                    <asp:Label runat="server" ID="lblLocate" Text="Location" CssClass="label"></asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:Label runat="server" Font-Bold="true" ID="lblLocation" Text="Coimbatore" CssClass="label"></asp:Label>
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>
                                                                                    <asp:Label runat="server" ID="lblBuild" Text="Building" CssClass="label"></asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:Label runat="server" Font-Bold="true" ID="lblBuilding" Text="B4" CssClass="label"></asp:Label>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="split"></td>
                                                                                <td>
                                                                                    <asp:Label runat="server" ID="lbldiv" Text="Division/Service Line" CssClass="label"></asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:Label runat="server" Font-Bold="true" ID="lbldivision" Text="Testing" CssClass="label"></asp:Label>
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>
                                                                                    <asp:Label runat="server" ID="lblorg" Text="Org Unit-3" CssClass="label"></asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:Label runat="server" Font-Bold="true" ID="lblOrgUnit" Text="Finance" CssClass="label"></asp:Label>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="split"></td>
                                                                                <td>
                                                                                    <asp:Label runat="server" ID="lblManager" Text="Manager Name" CssClass="label"></asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:Label runat="server" Font-Bold="true" ID="lblManagerName" Text="Raja Sekar" CssClass="label"></asp:Label>
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>
                                                                                    <asp:Label runat="server" ID="lbldate" Text="Date" CssClass="label"></asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:Label runat="server" Font-Bold="true" ID="lblDateTime" Text="10/10/2009" CssClass="label"></asp:Label>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </asp:Panel>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="split"></td>
                                                                <td width="100%">
                                                                    <asp:Panel ID="pnlEmployeeRequirements" Width="100%" runat="server" GroupingText="Employee Requirement Details">
                                                                        <table border="0" cellpadding="0" cellspacing="0" width="100%" class="form-tbl">
                                                                            <tr>
                                                                                <td class="split"></td>
                                                                                <td>
                                                                                    <asp:Label runat="server" ID="lblAdd" Text="Residence Address for pickup/drops" CssClass="label"></asp:Label>
                                                                                    &nbsp;
                                                                                <asp:Label ID="Label13" runat="server" ForeColor="Red">*</asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:TextBox ID="txtAddress" runat="server" TextMode="MultiLine" onkeypress="return chkDescription(event,this,199);"
                                                                                        TabIndex="1" onblur="disallowScriptTags(this);" onchange="getEmpLatLong(this.value);"></asp:TextBox>
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>
                                                                                    <asp:Label runat="server" ID="lblpla" Text="To Place(Office Location)" CssClass="label"></asp:Label>
                                                                                    &nbsp;<asp:Label ID="Label5" runat="server" ForeColor="Red">*</asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:DropDownList ID="ddlPlace" runat="server" Width="100%" TabIndex="2" onchange="getEmpLatLong(txtAddress.value);">
                                                                                    </asp:DropDownList>
                                                                                    <asp:Label ID="lblToPlace" Font-Bold="true" runat="server" Text=""></asp:Label>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="split"></td>
                                                                                <td>
                                                                                    <asp:Label runat="server" ID="lblPin" Text="PIN Code of your residence area" CssClass="label"></asp:Label>
                                                                                    &nbsp;<asp:Label ID="Label6" runat="server" ForeColor="Red">*</asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:TextBox ID="txtPincode" runat="server" onkeypress="chkAlphaNumericWithSpace(event,this,9);"
                                                                                        MaxLength="10" TabIndex="3"></asp:TextBox>
                                                                                    <asp:Label ID="lblPincode" Font-Bold="true" runat="server" Text=""></asp:Label>
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>
                                                                                    <asp:Label runat="server" ID="lblDistance" Text="Approx.Distance of residence from Office(In Km)"
                                                                                        CssClass="label"></asp:Label>
                                                                                    &nbsp;<asp:Label ID="Label7" runat="server" ForeColor="Red">*</asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:DropDownList ID="ddlDistance" runat="server" TabIndex="4">
                                                                                        <asp:ListItem>- Select -</asp:ListItem>
                                                                                        <asp:ListItem>5</asp:ListItem>
                                                                                        <asp:ListItem>6</asp:ListItem>
                                                                                        <asp:ListItem>7</asp:ListItem>
                                                                                        <asp:ListItem>8</asp:ListItem>
                                                                                        <asp:ListItem>9</asp:ListItem>
                                                                                        <asp:ListItem>10</asp:ListItem>
                                                                                        <asp:ListItem>15</asp:ListItem>
                                                                                        <asp:ListItem>20</asp:ListItem>
                                                                                        <asp:ListItem>25</asp:ListItem>
                                                                                        <asp:ListItem>30</asp:ListItem>
                                                                                        <asp:ListItem>35</asp:ListItem>
                                                                                        <asp:ListItem>40</asp:ListItem>
                                                                                        <asp:ListItem>45</asp:ListItem>
                                                                                        <asp:ListItem>50</asp:ListItem>
                                                                                        <asp:ListItem>55</asp:ListItem>
                                                                                        <asp:ListItem>60</asp:ListItem>
                                                                                    </asp:DropDownList>
                                                                                    <asp:Label ID="lblDistanceview" Font-Bold="true" runat="server" Text=""></asp:Label>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="split"></td>
                                                                                <td>
                                                                                    <asp:Label runat="server" ID="lblService" Text="Please specify the type of service required during the request period"
                                                                                        CssClass="label"></asp:Label>
                                                                                    &nbsp;<asp:Label ID="Label8" runat="server" ForeColor="Red">*</asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:RadioButton ID="rbtServiceBoth" Text="Both" runat="server" GroupName="ServiceType"
                                                                                        TabIndex="5" />
                                                                                    <asp:RadioButton ID="rbtServicePickup" Text="Pickup" runat="server" GroupName="ServiceType" />
                                                                                    <asp:RadioButton ID="rbtServiceDrop" Text="Drop" runat="server" GroupName="ServiceType" />
                                                                                    <asp:Label ID="lblServiceType" Font-Bold="true" runat="server" Text=""></asp:Label>
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>
                                                                                    <asp:Label ID="lblPurpose" runat="server" CssClass="label" Text="Purpose"></asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:TextBox ID="txtReqPurpose" runat="server" TextMode="MultiLine" onkeypress="return chkDescription(event,this,99);"
                                                                                        TabIndex="6"></asp:TextBox>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="split"></td>
                                                                                <td>
                                                                                    <asp:Label runat="server" ID="lblFromDate" Text="Required From" CssClass="label"></asp:Label>
                                                                                    &nbsp;<asp:Label ID="Label9" runat="server" ForeColor="Red">*</asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:TextBox ID="txtFromDate" runat="server" onkeypress="return false" TabIndex="7"></asp:TextBox>
                                                                                    <cc1:CalendarExtender ID="ceDateOfJoining" runat="server" Format="dd/MM/yyyy" CssClass="cal_Theme1"
                                                                                        TargetControlID="txtFromDate" OnClientDateSelectionChanged="checkDate">
                                                                                    </cc1:CalendarExtender>
                                                                                    <asp:Label ID="lblFromdateview" Font-Bold="true" runat="server" Text=""></asp:Label>
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>
                                                                                    <asp:Label ID="lblComments0" runat="server" Text="Comments"></asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:TextBox ID="txtComments" runat="server" onkeypress="return chkDescription(event,this,199);"
                                                                                        TextMode="MultiLine" TabIndex="8"></asp:TextBox>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="split"></td>
                                                                                <td>
                                                                                    <asp:Label ID="lblToDate" runat="server" CssClass="label" Text="Required To"></asp:Label>
                                                                                    &nbsp;<asp:Label ID="Label10" runat="server" ForeColor="Red">*</asp:Label>
                                                                                    <asp:Label ID="lblMaxMonths" runat="server" Text="(Max.2 months from current date)"
                                                                                        CssClass="label"></asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:TextBox ID="txtToDate" runat="server" onkeypress="return false" TabIndex="9"></asp:TextBox>
                                                                                    <asp:Label ID="lblTodateview" runat="server" Font-Bold="true" Text=""></asp:Label><br />

                                                                                    <cc1:CalendarExtender ID="ceToDate" runat="server" CssClass="cal_Theme1" Format="dd/MM/yyyy"
                                                                                        OnClientDateSelectionChanged="checkDate" TargetControlID="txtToDate">
                                                                                    </cc1:CalendarExtender>
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td class="split">&nbsp;
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="split"></td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </asp:Panel>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="split"></td>
                                                                <td width="100%">
                                                                    <asp:Panel ID="pnlEmployeeShifts" Width="100%" runat="server" GroupingText="Employee Shift Details">
                                                                        <table border="0" cellpadding="0" cellspacing="0" width="100%" class="form-tbl">
                                                                            <tr>
                                                                                <td class="split"></td>
                                                                                <td>
                                                                                    <img src="../images/calendar-lft-icon.gif" width="15" height="16" alt="" />&nbsp;<asp:Label
                                                                                        runat="server" ID="lblLogInTime" Text="Log-In Time" CssClass="label"></asp:Label>
                                                                                    &nbsp;<asp:Label ID="Label11" runat="server" ForeColor="Red">*</asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:DropDownList ID="ddlLogInTime" runat="server" CssClass="time" TabIndex="10">
                                                                                    </asp:DropDownList>
                                                                                    <asp:DropDownList ID="ddlLogInTimeMinutes" runat="server" CssClass="time" TabIndex="11">
                                                                                        <asp:ListItem>00</asp:ListItem>
                                                                                        <asp:ListItem>15</asp:ListItem>
                                                                                        <asp:ListItem>30</asp:ListItem>
                                                                                        <asp:ListItem>45</asp:ListItem>
                                                                                    </asp:DropDownList>
                                                                                </td>
                                                                                <td></td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>
                                                                                    <img src="../images/calendar-lft-icon.gif" width="15" height="16" alt="" />&nbsp;
                                                                                <asp:Label runat="server" ID="lblLogOutTime" Text="Log-Out Time" CssClass="label"></asp:Label>
                                                                                    &nbsp;<asp:Label ID="Label12" runat="server" ForeColor="Red">*</asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:DropDownList ID="ddlLogOutTime" runat="server" CssClass="time" onchange="ValidateTime('ddlLogInTime', 'ddlLogOutTime','ddlLogInTimeMinutes','ddlLogOutTimeMinutes');"
                                                                                        TabIndex="12">
                                                                                    </asp:DropDownList>
                                                                                    <asp:DropDownList ID="ddlLogOutTimeMinutes" runat="server" CssClass="time" TabIndex="13">
                                                                                        <asp:ListItem>00</asp:ListItem>
                                                                                        <asp:ListItem>15</asp:ListItem>
                                                                                        <asp:ListItem>30</asp:ListItem>
                                                                                        <asp:ListItem>45</asp:ListItem>
                                                                                    </asp:DropDownList>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="split"></td>
                                                                                <td colspan="2">
                                                                                    <%--  <asp:Label runat="server" ID="lblCopyShiftTime" Text="Copy Shift Time From Above"
                                                                                    CssClass="label"></asp:Label>--%>
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td colspan="2">
                                                                                    <asp:ImageButton ID="btnCopyShiftTime" runat="server" ImageUrl="~/images/btn-copy-shifttime-fromabove.jpg"
                                                                                        OnClick="btnCopyShiftTime_Click" TabIndex="14" />
                                                                                    <%-- <asp:Button ID="btnCopyShiftTime" runat="server" Text="Copy Shift time from above"
                                                                                    OnClick="btnCopyShiftTime_Click" TabIndex="14" />--%>
                                                                                </td>
                                                                                <td></td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="split"></td>
                                                                                <td>
                                                                                    <asp:Label runat="server" ID="lblWeekDay" Text="WeekDay" CssClass="label"></asp:Label>
                                                                                </td>
                                                                                <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                                                <asp:Label ID="lblLogin" runat="server" Text="Log-In Time"></asp:Label>
                                                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                                                <asp:Label ID="lblLogout" runat="server" Text="Log-Out Time"></asp:Label>
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>
                                                                                    <asp:Label runat="server" ID="lblWeekday1" Text="WeekDay" CssClass="label"></asp:Label>
                                                                                </td>
                                                                                <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                                                <asp:Label ID="Label1" runat="server" Text="Log-In Time"></asp:Label>
                                                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<asp:Label
                                                                                        ID="Label4" runat="server" Text="Log-Out Time"></asp:Label>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="split"></td>
                                                                                <td>
                                                                                    <table border="0" cellpadding="0" cellspacing="0">
                                                                                        <tr>
                                                                                            <td>
                                                                                                <asp:CheckBox ID="chkMonday" Text="Monday" runat="server" onclick="ShowTimePickers();"
                                                                                                    TabIndex="15" /><br />
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                                <asp:CheckBox ID="chkTuesday" Text="Tuesday" runat="server" onclick="ShowTimePickers();"
                                                                                                    TabIndex="25" /><br />
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                                <asp:CheckBox ID="chkWednesday" Text="Wednesday" runat="server" onclick="ShowTimePickers();"
                                                                                                    TabIndex="35" />
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>&nbsp;
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </td>
                                                                                <td>
                                                                                    <table border="0" cellpadding="0" cellpadding="0">
                                                                                        <tr>
                                                                                            <td id="tdMonday" runat="server">
                                                                                                <asp:DropDownList ID="ddlMondayLogInTime" runat="server" CssClass="time" TabIndex="16">
                                                                                                </asp:DropDownList>
                                                                                                <asp:DropDownList ID="ddlMondayLogInTimeMinutes" runat="server" CssClass="time" TabIndex="17">
                                                                                                    <asp:ListItem>00</asp:ListItem>
                                                                                                    <asp:ListItem>15</asp:ListItem>
                                                                                                    <asp:ListItem>30</asp:ListItem>
                                                                                                    <asp:ListItem>45</asp:ListItem>
                                                                                                </asp:DropDownList>
                                                                                                &nbsp;&nbsp;&nbsp; - &nbsp;&nbsp;&nbsp;
                                                                                            <asp:DropDownList ID="ddlMondayLogOutTime" runat="server" CssClass="time" onchange="ValidateTime('ddlMondayLogInTime', 'ddlMondayLogOutTime','ddlMondayLogInTimeMinutes','ddlMondayLogOutTimeMinutes');"
                                                                                                TabIndex="18">
                                                                                            </asp:DropDownList>
                                                                                                <asp:DropDownList ID="ddlMondayLogOutTimeMinutes" runat="server" CssClass="time"
                                                                                                    TabIndex="19">
                                                                                                    <asp:ListItem>00</asp:ListItem>
                                                                                                    <asp:ListItem>15</asp:ListItem>
                                                                                                    <asp:ListItem>30</asp:ListItem>
                                                                                                    <asp:ListItem>45</asp:ListItem>
                                                                                                </asp:DropDownList>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td id="tdTuesday" runat="server">
                                                                                                <asp:DropDownList ID="ddlTuesdayLogInTime" runat="server" CssClass="time" TabIndex="26">
                                                                                                </asp:DropDownList>
                                                                                                <asp:DropDownList ID="ddlTuesdayLogInTimeMinutes" runat="server" CssClass="time"
                                                                                                    TabIndex="27">
                                                                                                    <asp:ListItem>00</asp:ListItem>
                                                                                                    <asp:ListItem>15</asp:ListItem>
                                                                                                    <asp:ListItem>30</asp:ListItem>
                                                                                                    <asp:ListItem>45</asp:ListItem>
                                                                                                </asp:DropDownList>
                                                                                                &nbsp;&nbsp;&nbsp; - &nbsp;&nbsp;&nbsp;
                                                                                            <asp:DropDownList ID="ddlTuesdayLogOutTime" runat="server" CssClass="time" onchange="ValidateTime('ddlTuesdayLogInTime', 'ddlTuesdayLogOutTime','ddlTuesdayLogInTimeMinutes','ddlTuesdayLogOutTimeMinutes');"
                                                                                                TabIndex="28">
                                                                                            </asp:DropDownList>
                                                                                                <asp:DropDownList ID="ddlTuesdayLogOutTimeMinutes" runat="server" CssClass="time"
                                                                                                    TabIndex="29">
                                                                                                    <asp:ListItem>00</asp:ListItem>
                                                                                                    <asp:ListItem>15</asp:ListItem>
                                                                                                    <asp:ListItem>30</asp:ListItem>
                                                                                                    <asp:ListItem>45</asp:ListItem>
                                                                                                </asp:DropDownList>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td id="tdWednesday" runat="server">
                                                                                                <asp:DropDownList ID="ddlWednesdayLogInTime" runat="server" CssClass="time" TabIndex="36">
                                                                                                </asp:DropDownList>
                                                                                                <asp:DropDownList ID="ddlWednesdayLogInTimeMinutes" runat="server" CssClass="time"
                                                                                                    TabIndex="37">
                                                                                                    <asp:ListItem>00</asp:ListItem>
                                                                                                    <asp:ListItem>15</asp:ListItem>
                                                                                                    <asp:ListItem>30</asp:ListItem>
                                                                                                    <asp:ListItem>45</asp:ListItem>
                                                                                                </asp:DropDownList>
                                                                                                &nbsp;&nbsp;&nbsp; - &nbsp;&nbsp;&nbsp;
                                                                                            <asp:DropDownList ID="ddlWednesdayLogOutTime" runat="server" CssClass="time" onchange="ValidateTime('ddlWednesdayLogInTime', 'ddlWednesdayLogOutTime','ddlWednesdayLogInTimeMinutes','ddlWednesdayLogOutTimeMinutes');"
                                                                                                TabIndex="38">
                                                                                            </asp:DropDownList>
                                                                                                <asp:DropDownList ID="ddlWednesdayLogOutTimeMinutes" runat="server" CssClass="time"
                                                                                                    TabIndex="39">
                                                                                                    <asp:ListItem>00</asp:ListItem>
                                                                                                    <asp:ListItem>15</asp:ListItem>
                                                                                                    <asp:ListItem>30</asp:ListItem>
                                                                                                    <asp:ListItem>45</asp:ListItem>
                                                                                                </asp:DropDownList>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>&nbsp;
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>
                                                                                    <table border="0" cellpadding="0" cellspacing="0">
                                                                                        <tr>
                                                                                            <td>
                                                                                                <asp:CheckBox ID="chkThursday" Text="Thursday" runat="server" onclick="ShowTimePickers();"
                                                                                                    TabIndex="20" /><br />
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                                <asp:CheckBox ID="chkFriday" Text="Friday" runat="server" onclick="ShowTimePickers();"
                                                                                                    TabIndex="30" /><br />
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                                <asp:CheckBox ID="chkSaturday" Text="Saturday" runat="server" onclick="ShowTimePickers();"
                                                                                                    TabIndex="40" /><br />
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                                <asp:CheckBox ID="chkSunday" Text="Sunday" runat="server" onclick="ShowTimePickers();"
                                                                                                    TabIndex="45" />
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </td>
                                                                                <td>
                                                                                    <table border="0" cellpadding="0" cellspacing="0">
                                                                                        <tr>
                                                                                            <td id="tdThursday" runat="server">
                                                                                                <asp:DropDownList ID="ddlThursdayLogInTime" runat="server" CssClass="time" TabIndex="21">
                                                                                                </asp:DropDownList>
                                                                                                <asp:DropDownList ID="ddlThursdayLogInTimeMinutes" runat="server" CssClass="time"
                                                                                                    TabIndex="22">
                                                                                                    <asp:ListItem>00</asp:ListItem>
                                                                                                    <asp:ListItem>15</asp:ListItem>
                                                                                                    <asp:ListItem>30</asp:ListItem>
                                                                                                    <asp:ListItem>45</asp:ListItem>
                                                                                                </asp:DropDownList>
                                                                                                &nbsp;&nbsp;&nbsp; - &nbsp;&nbsp;&nbsp;
                                                                                            <asp:DropDownList ID="ddlThursdayLogOutTime" runat="server" CssClass="time" onchange="ValidateTime('ddlThursdayLogInTime', 'ddlThursdayLogOutTime','ddlThursdayLogInTimeMinutes','ddlThursdayLogOutTimeMinutes');"
                                                                                                TabIndex="23">
                                                                                            </asp:DropDownList>
                                                                                                <asp:DropDownList ID="ddlThursdayLogOutTimeMinutes" runat="server" CssClass="time"
                                                                                                    TabIndex="24">
                                                                                                    <asp:ListItem>00</asp:ListItem>
                                                                                                    <asp:ListItem>15</asp:ListItem>
                                                                                                    <asp:ListItem>30</asp:ListItem>
                                                                                                    <asp:ListItem>45</asp:ListItem>
                                                                                                </asp:DropDownList>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td id="tdFriday" runat="server">
                                                                                                <asp:DropDownList ID="ddlFridayLogInTime" runat="server" CssClass="time" TabIndex="31">
                                                                                                </asp:DropDownList>
                                                                                                <asp:DropDownList ID="ddlFridayLogInTimeMinutes" runat="server" CssClass="time" TabIndex="32">
                                                                                                    <asp:ListItem>00</asp:ListItem>
                                                                                                    <asp:ListItem>15</asp:ListItem>
                                                                                                    <asp:ListItem>30</asp:ListItem>
                                                                                                    <asp:ListItem>45</asp:ListItem>
                                                                                                </asp:DropDownList>
                                                                                                &nbsp;&nbsp;&nbsp; - &nbsp;&nbsp;&nbsp;
                                                                                            <asp:DropDownList ID="ddlFridayLogOutTime" runat="server" CssClass="time" onchange="ValidateTime('ddlFridayLogInTime', 'ddlFridayLogOutTime','ddlFridayLogInTimeMinutes','ddlFridayLogOutTimeMinutes');"
                                                                                                TabIndex="33">
                                                                                            </asp:DropDownList>
                                                                                                <asp:DropDownList ID="ddlFridayLogOutTimeMinutes" runat="server" CssClass="time"
                                                                                                    TabIndex="34">
                                                                                                    <asp:ListItem>00</asp:ListItem>
                                                                                                    <asp:ListItem>15</asp:ListItem>
                                                                                                    <asp:ListItem>30</asp:ListItem>
                                                                                                    <asp:ListItem>45</asp:ListItem>
                                                                                                </asp:DropDownList>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td id="tdSaturday" runat="server">
                                                                                                <asp:DropDownList ID="ddlSaturdayLogInTime" runat="server" CssClass="time" TabIndex="41">
                                                                                                </asp:DropDownList>
                                                                                                <asp:DropDownList ID="ddlSaturdayLogInTimeMinutes" runat="server" CssClass="time"
                                                                                                    TabIndex="42">
                                                                                                    <asp:ListItem>00</asp:ListItem>
                                                                                                    <asp:ListItem>15</asp:ListItem>
                                                                                                    <asp:ListItem>30</asp:ListItem>
                                                                                                    <asp:ListItem>45</asp:ListItem>
                                                                                                </asp:DropDownList>
                                                                                                &nbsp;&nbsp;&nbsp; - &nbsp;&nbsp;&nbsp;
                                                                                            <asp:DropDownList ID="ddlSaturdayLogOutTime" runat="server" CssClass="time" onchange="ValidateTime('ddlSaturdayLogInTime', 'ddlSaturdayLogOutTime','ddlSaturdayLogInTimeMinutes','ddlSaturdayLogOutTimeMinutes');"
                                                                                                TabIndex="43">
                                                                                            </asp:DropDownList>
                                                                                                <asp:DropDownList ID="ddlSaturdayLogOutTimeMinutes" runat="server" CssClass="time"
                                                                                                    TabIndex="44">
                                                                                                    <asp:ListItem>00</asp:ListItem>
                                                                                                    <asp:ListItem>15</asp:ListItem>
                                                                                                    <asp:ListItem>30</asp:ListItem>
                                                                                                    <asp:ListItem>45</asp:ListItem>
                                                                                                </asp:DropDownList>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td id="tdSunday" runat="server">
                                                                                                <asp:DropDownList ID="ddlSundayLogInTime" runat="server" CssClass="time" TabIndex="46">
                                                                                                </asp:DropDownList>
                                                                                                <asp:DropDownList ID="ddlSundayLogInTimeMinutes" runat="server" CssClass="time" TabIndex="47">
                                                                                                    <asp:ListItem>00</asp:ListItem>
                                                                                                    <asp:ListItem>15</asp:ListItem>
                                                                                                    <asp:ListItem>30</asp:ListItem>
                                                                                                    <asp:ListItem>45</asp:ListItem>
                                                                                                </asp:DropDownList>
                                                                                                &nbsp;&nbsp;&nbsp; - &nbsp;&nbsp;&nbsp;
                                                                                            <asp:DropDownList ID="ddlSundayLogOutTime" runat="server" CssClass="time" onchange="ValidateTime('ddlSundayLogInTime', 'ddlSundayLogOutTime','ddlSundayLogInTimeMinutes','ddlSundayLogOutTimeMinutes');"
                                                                                                TabIndex="48">
                                                                                            </asp:DropDownList>
                                                                                                <asp:DropDownList ID="ddlSundayLogOutTimeMinutes" runat="server" CssClass="time"
                                                                                                    TabIndex="49">
                                                                                                    <asp:ListItem>00</asp:ListItem>
                                                                                                    <asp:ListItem>15</asp:ListItem>
                                                                                                    <asp:ListItem>30</asp:ListItem>
                                                                                                    <asp:ListItem>45</asp:ListItem>
                                                                                                </asp:DropDownList>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </asp:Panel>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td></td>
                                                                <td colspan="3">
                                                                    <asp:Label ID="lblManitary" runat="server" ForeColor="Red">*</asp:Label>
                                                                    &nbsp;
                                                            <asp:Label ID="lblIndicates" runat="server">Required Fields</asp:Label>
                                                                </td>
                                                            </tr>
                                                            <tr id="trActions" runat="server">
                                                                <td>&nbsp;
                                                                </td>
                                                                <td valign="top">
                                                                    <center>
                                                                        <asp:ImageButton ID="btnAddRequisition" runat="server" ImageUrl="~/images/btn-save.jpg"
                                                                            OnClick="btnAddRequisition_Click" OnClientClick="return ScheduledVehicleReqValidation();"
                                                                            TabIndex="50" />
                                                                        &nbsp;&nbsp;
                                                                    <asp:ImageButton ID="btnCancelRequisition" runat="server" ImageUrl="~/images/btn-cancel.jpg"
                                                                        OnClick="btnCancelRequisition_Click" TabIndex="51" />

                                                                    </center>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                        </asp:Panel>
                                        <asp:TextBox ID="txtLatitude" runat="server" Style="display: none;"></asp:TextBox>
                                        <asp:TextBox ID="txtlongitude" runat="server" Style="display: none;"></asp:TextBox>
                                        <asp:Button ID="btnCofirm" runat="server" Style="display: none;" OnClick="btnCofirm_Click" />
                                        <asp:Panel ID="pnlVehicleRequistionDetails" runat="server" CssClass="ControlShow">
                                            <div class="form-box">
                                                <h1>
                                                    <span class="icon">
                                                        <img src="../images/vehiclenew-icon.gif" alt="" /></span>
                                                    My Own Scheduled Requisition Details</h1>
                                            </div>
                                            <div id="grid-dsply">
                                                <dxw:ASPxGridView ID="gvVehicleRequisition" ClientInstanceName="gvVehicleRequisition"
                                                    KeyFieldName="RequisitionId" runat="server" EnableTheming="true" Theme="Office2003Blue"
                                                    CssFilePath="~/App_Themes/Office2003Blue/{0}/grid.css" CssPostfix="Office2003_Blue"
                                                    Width="100%" AutoGenerateColumns="False" OnHtmlRowCreated="gvVehicleRequisition_HtmlRowCreated">
                                                    <%--<Images ImageFolder="~/App_Themes/Office2003 Blue/{0}/">
                                                        <CollapsedButton Height="12px" Url="~/App_Themes/Office2  003 Blue/GridView/gvCollapsedButton.png"
                                                            Width="11px" />
                                                        <ExpandedButton Height="12px" Url="~/App_Themes/Office2003 Blue/GridView/gvExpandedButton.png"
                                                            Width="11px" />
                                                        <DetailCollapsedButton Height="12px" Url="~/App_Themes/Office2003 Blue/GridView/gvCollapsedButton.png"
                                                            Width="11px" />
                                                        <DetailExpandedButton Height="12px" Url="~/App_Themes/Office2003 Blue/GridView/gvExpandedButton.png"
                                                            Width="11px" />
                                                    </Images>--%>
                                                    <Styles AlternatingRow-Enabled="True" CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css"
                                                        CssPostfix="Office2003_Blue">
                                                        <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                        </Header>
                                                        <LoadingPanel ImageSpacing="10px">
                                                        </LoadingPanel>
                                                        <PagerBottomPanel CssClass="PageFooter">
                                                        </PagerBottomPanel>
                                                        <PagerTopPanel CssClass="PageFooter">
                                                        </PagerTopPanel>
                                                    </Styles>
                                                    <SettingsPager PrevPageButton-Image-Url="../App_Themes/Office2003Blue/GridView/pPrev.gif"
                                                        PrevPageButton-Image-UrlDisabled="../App_Themes/Office2003Blue/GridView/pPrevDisabled.gif"
                                                        NextPageButton-Image-UrlDisabled="../App_Themes/Office2003Blue/GridView/pNextDisabled.gif"
                                                        NextPageButton-Image-Url="../App_Themes/Office2003Blue/GridView/pNext.gif" AlwaysShowPager="true">
                                                    </SettingsPager>
                                                    <Columns>

                                                        <dxw:GridViewDataColumn Caption="RequiredFrom" FieldName="RequisitionFromDate">
                                                            <HeaderCaptionTemplate>
                                                                <span class="icon">
                                                                    <img src="../images/icn-requisition-fromdate.gif" align="top" alt="" /></span>
                                                                <span class="label">Required From</span>
                                                            </HeaderCaptionTemplate>
                                                        </dxw:GridViewDataColumn>
                                                        <dxw:GridViewDataColumn Caption="RequiredTo" FieldName="RequisitionToDate">
                                                            <HeaderCaptionTemplate>
                                                                <span class="icon">
                                                                    <img src="../images/icn-requisition-todate.gif" align="top" alt="" /></span>
                                                                <span class="label">Required To</span>
                                                            </HeaderCaptionTemplate>
                                                        </dxw:GridViewDataColumn>
                                                        <dxw:GridViewDataColumn Caption="RequiredService" FieldName="RequisitionService">
                                                            <HeaderCaptionTemplate>
                                                                <span class="icon">
                                                                    <img src="../images/icn-requsition-service.gif" align="top" alt="" /></span>
                                                                <span class="label">Required Service</span>
                                                            </HeaderCaptionTemplate>
                                                        </dxw:GridViewDataColumn>
                                                        <dxw:GridViewDataColumn Caption="RequisitionDate" FieldName="RequisitionDate">
                                                            <HeaderCaptionTemplate>
                                                                <span class="icon">
                                                                    <img src="../images/icn-requisited-date.gif" align="top" alt="" /></span>
                                                                <span class="label">RequisitionDate</span>
                                                            </HeaderCaptionTemplate>
                                                        </dxw:GridViewDataColumn>
                                                        <dxw:GridViewDataTextColumn Caption="ClosedDate">
                                                            <HeaderCaptionTemplate>
                                                                <span class="icon">
                                                                    <img src="../images/icn-closeddate.gif" align="top" alt="" /></span>
                                                                <span class="label">Closed On</span>
                                                            </HeaderCaptionTemplate>
                                                            <DataItemTemplate>
                                                                <asp:Label ID="lblClosed" runat="server" Text='<%# Eval("DateOfClosed")%>'></asp:Label>
                                                            </DataItemTemplate>
                                                        </dxw:GridViewDataTextColumn>
                                                        <dxw:GridViewDataTextColumn Caption="ApprovalSatus">
                                                            <HeaderTemplate>
                                                                <span class="icon">
                                                                    <img src="../images/icn-approval-status.gif" align="top" alt="" /></span>
                                                                <span class="label">Approval Status</span>
                                                            </HeaderTemplate>
                                                            <DataItemTemplate>
                                                                <asp:Label ID="lblSatus" runat="server" Text='<%# Eval("Actions")%>'></asp:Label>
                                                            </DataItemTemplate>
                                                        </dxw:GridViewDataTextColumn>
                                                        <dxw:GridViewDataTextColumn Caption="ApplyLeave" HeaderStyle-HorizontalAlign="Center"
                                                            CellStyle-HorizontalAlign="Center">
                                                            <HeaderTemplate>
                                                            </HeaderTemplate>
                                                            <DataItemTemplate>
                                                                <asp:LinkButton ID="lbtnApplyLeave" runat="server" CommandArgument='<%# Eval("EmployeeId")+","+Eval("RequisitionFromDate")+","+Eval("RequisitionToDate") %>'
                                                                    ToolTip="Click here to apply leave" OnClick="lbtnApply_click"><img src="../images/btn-apply-leave.jpg" /></asp:LinkButton>
                                                            </DataItemTemplate>
                                                        </dxw:GridViewDataTextColumn>
                                                        <dxw:GridViewDataTextColumn Caption="ExceptionDay" HeaderStyle-HorizontalAlign="Center"
                                                            CellStyle-HorizontalAlign="Center">
                                                            <HeaderTemplate>
                                                            </HeaderTemplate>
                                                            <DataItemTemplate>
                                                                <asp:LinkButton ID="lbtnExceptionDay" runat="server" CommandArgument='<%# Eval("EmployeeId")+","+Eval("RequisitionFromDate")+","+Eval("RequisitionToDate") %>'
                                                                    ToolTip="Click here to apply exceptionday Shift times" OnClick="lbtnExceptionDay_click"><img src="../images/btn-exception-day.jpg" /></asp:LinkButton>
                                                            </DataItemTemplate>
                                                        </dxw:GridViewDataTextColumn>

                                                    </Columns>
                                                    <Settings ShowStatusBar="Auto" ShowFilterRow="false" ShowGroupPanel="false" />
                                                    <%--<ClientSideEvents EndCallback="function(s, e) {document.getElementById('btnTest').click();}" />--%>
                                                    <SettingsText EmptyDataRow="No Data Identified" />
                                                    <SettingsBehavior ColumnResizeMode="NextColumn" AllowSort="true" AllowDragDrop="true"
                                                        AllowGroup="true" AllowFocusedRow="false" AllowMultiSelection="true" />
                                                    <SettingsPager PageSize="5" Mode="ShowPager">
                                                    </SettingsPager>
                                                </dxw:ASPxGridView>
                                            </div>
                                        </asp:Panel>
                                        <div class="clear clearfix"></div>
                                        <div style="height: 30px;" class="clear clearfix">
                                        </div>
                                        <asp:Panel ID="pnlManagersView" runat="server" CssClass="ControlShow">
                                            <asp:HiddenField ID="hdnAccepted" Value="" runat="server" />
                                            <asp:HiddenField ID="hdnEmailId" Value="" runat="server" />
                                            <div class="form-box">
                                                <h1>
                                                    <span class="icon">
                                                        <img src="../images/icn-manager-action.gif" align="top" alt="" /></span>
                                                    Manager&#39;s Action (Waiting For Your Approval)</h1>
                                            </div>
                                            <div id="grid-dsply">
                                                <dxw:ASPxGridView ID="gvManagersView" ClientInstanceName="gvManagersView" KeyFieldName="RequisitionId"
                                                    runat="server" EnableTheming="true" Theme="Office2003Blue" Width="100%" AutoGenerateColumns="False"
                                                    CssFilePath="~/App_Themes/Office2003Blue/{0}/grid.css" CssPostfix="Office2003_Blue">
                                                    <ClientSideEvents SelectionChanged="function(s,e){ OnGridSelectionChanged(); }" />
                                                    <%--<Images ImageFolder="~/App_Themes/Office2003 Blue/{0}/">
                                                        <CollapsedButton Height="12px" Url="~/App_Themes/Office2  003 Blue/GridView/gvCollapsedButton.png"
                                                            Width="11px" />
                                                        <ExpandedButton Height="12px" Url="~/App_Themes/Office2003 Blue/GridView/gvExpandedButton.png"
                                                            Width="11px" />
                                                        <DetailCollapsedButton Height="12px" Url="~/App_Themes/Office2003 Blue/GridView/gvCollapsedButton.png"
                                                            Width="11px" />
                                                        <DetailExpandedButton Height="12px" Url="~/App_Themes/Office2003 Blue/GridView/gvExpandedButton.png"
                                                            Width="11px" />
                                                    </Images>--%>
                                                    <Styles AlternatingRow-Enabled="True" CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css"
                                                        CssPostfix="Office2003_Blue">
                                                        <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                        </Header>
                                                        <LoadingPanel ImageSpacing="10px">
                                                        </LoadingPanel>
                                                        <PagerBottomPanel CssClass="PageFooter">
                                                        </PagerBottomPanel>
                                                        <PagerTopPanel CssClass="PageFooter">
                                                        </PagerTopPanel>
                                                    </Styles>
                                                    <SettingsPager PrevPageButton-Image-Url="../App_Themes/Office2003Blue/GridView/pPrev.gif"
                                                        PrevPageButton-Image-UrlDisabled="../App_Themes/Office2003Blue/GridView/pPrevDisabled.gif"
                                                        NextPageButton-Image-UrlDisabled="../App_Themes/Office2003Blue/GridView/pNextDisabled.gif"
                                                        NextPageButton-Image-Url="../App_Themes/Office2003Blue/GridView/pNext.gif" AlwaysShowPager="true">
                                                    </SettingsPager>
                                                    <Columns>
                                                        <dxw:GridViewCommandColumn ShowSelectCheckbox="True" VisibleIndex="0" Name="Accepted"
                                                            Width="10%">
                                                            <HeaderTemplate>
                                                                <input type="checkbox" style="vertical-align: middle;" onclick="gvManagersView.SelectAllRowsOnPage(this.checked);"
                                                                    title="Select All"> </input>
                                                            </HeaderTemplate>
                                                            <HeaderStyle Paddings-PaddingTop="1" Paddings-PaddingBottom="1" HorizontalAlign="Center" />
                                                        </dxw:GridViewCommandColumn>
                                                        <dxw:GridViewDataColumn Caption="EmployeeName" FieldName="DisplayName">
                                                            <HeaderCaptionTemplate>
                                                                <span class="icon">
                                                                    <img src="../images/icn-employee-name.gif" align="top" alt="" /></span>
                                                                <span class="label">Employee Name</span>
                                                            </HeaderCaptionTemplate>
                                                        </dxw:GridViewDataColumn>

                                                        <dxw:GridViewDataColumn Caption="RequiredFrom" FieldName="RequisitionFromDate">
                                                            <HeaderCaptionTemplate>
                                                                <span class="icon">
                                                                    <img src="../images/icn-requisition-fromdate.gif" align="top" alt="" /></span>
                                                                <span class="label">Required From</span>
                                                            </HeaderCaptionTemplate>
                                                        </dxw:GridViewDataColumn>
                                                        <dxw:GridViewDataColumn Caption="RequiredTo" FieldName="RequisitionToDate">
                                                            <HeaderCaptionTemplate>
                                                                <span class="icon">
                                                                    <img src="../images/icn-requisition-todate.gif" align="top" alt="" /></span>
                                                                <span class="label">Required To</span>
                                                            </HeaderCaptionTemplate>
                                                        </dxw:GridViewDataColumn>
                                                        <dxw:GridViewDataColumn Caption="RequiredService" FieldName="RequisitionService">
                                                            <HeaderCaptionTemplate>
                                                                <span class="icon">
                                                                    <img src="../images/icn-requsition-service.gif" align="top" alt="" /></span>
                                                                <span class="label">Required Service</span>
                                                            </HeaderCaptionTemplate>
                                                        </dxw:GridViewDataColumn>
                                                        <dxw:GridViewDataColumn Caption="RequisitionDate" FieldName="RequisitionDate">
                                                            <HeaderCaptionTemplate>
                                                                <span class="icon">
                                                                    <img src="../images/icn-requisited-date.gif" align="top" alt="" /></span>
                                                                <span class="label">Requisition Date</span>
                                                            </HeaderCaptionTemplate>
                                                        </dxw:GridViewDataColumn>
                                                        <%--  <dxw:GridViewDataTextColumn Caption="ClosedDate" FieldName="DateOfClosed">
                                                        <HeaderCaptionTemplate>
                                                          <span class="icon">
                                                            <img src="../images/icn-closeddate.gif"  align="top" alt="" /></span> 
                                                            <span class="label">Closed On</span></HeaderCaptionTemplate>
                                                    </dxw:GridViewDataTextColumn>--%>
                                                        <dxw:GridViewDataTextColumn Caption="EmailId" FieldName="EmailId" Visible="false">
                                                            <HeaderCaptionTemplate>

                                                                <span class="label">EmailId</span>
                                                            </HeaderCaptionTemplate>
                                                        </dxw:GridViewDataTextColumn>
                                                        <dxw:GridViewDataTextColumn Caption="Edit" Width="10px" HeaderStyle-HorizontalAlign="Center"
                                                            CellStyle-HorizontalAlign="Center">
                                                            <HeaderTemplate>
                                                                <span class="icon">
                                                                    <img src="../images/icn-view-request.gif" align="top" alt="" /></span>
                                                                <span class="label">View Request</span>
                                                            </HeaderTemplate>
                                                            <DataItemTemplate>
                                                                <%-- <asp:ImageButton ID="btnView" runat="server" CommandArgument='<%# Eval("RequisitionId")+","+ Eval("EmailId") %>'
                                                                AlternateText="Edit" ImageUrl="~/images/icn-view.gif" OnClick="btnEditReq_click"
                                                                ToolTip="Click here to View" />--%>
                                                                <asp:LinkButton ID="btnView" runat="server" CommandArgument='<%# Eval("RequisitionId")+","+ Eval("EmailId") %>'
                                                                    AlternateText="Edit" OnClick="btnEditReq_click"
                                                                    ToolTip="Click here to View"><img src="../images/icn-view.gif" /></asp:LinkButton>
                                                            </DataItemTemplate>
                                                        </dxw:GridViewDataTextColumn>
                                                    </Columns>
                                                    <Settings ShowStatusBar="Auto" ShowFilterRow="false" ShowGroupPanel="false" />
                                                    <SettingsText EmptyDataRow="No Data Identified" />
                                                    <%-- <ClientSideEvents EndCallback="function(s, e) {document.getElementById('btnTest').click();}" />--%>
                                                    <SettingsBehavior ColumnResizeMode="NextColumn" AllowSort="true" AllowDragDrop="true"
                                                        AllowGroup="true" AllowFocusedRow="false" AllowMultiSelection="true" />
                                                    <SettingsPager PageSize="5" Mode="ShowPager">
                                                    </SettingsPager>
                                                </dxw:ASPxGridView>
                                                <div class="clear clearfix">
                                                </div>
                                                <div class="form-box">
                                                    <table width="100%" class="form-tbl">
                                                        <tr>
                                                            <td width="9%">
                                                                <center>
                                                                    <asp:ImageButton ID="btnAccept" runat="server" OnClientClick="return confirm('Do you Accept the employee(s) request.!');" ToolTip="Accept" OnClick="btnAccept_click"
                                                                        TabIndex="52" ImageUrl="~/images/icn-accept-requisition.gif" />
                                                                    <asp:ImageButton ID="btnReject" OnClientClick="return confirm('Do you Reject the employee(s) request.!');" ToolTip="Reject" runat="server" OnClick="btnReject_click"
                                                                        TabIndex="52" ImageUrl="~/images/icn-reject-requisition.gif" />
                                                                </center>
                                                            </td>
                                                            <td></td>
                                                        </tr>
                                                    </table>
                                                </div>
                                                <div class="clear clearfix">
                                                </div>
                                            </div>
                                        </asp:Panel>
                                        <asp:HiddenField ID="hdnLeaveDetails" Value="" runat="server" />
                                        <asp:Panel ID="pnlLeaveDetails" runat="server" CssClass="ControlShow">
                                            <div class="form-box">
                                                <h1>
                                                    <span class="icon">
                                                        <img src="../images/icn-apply-leave.gif" align="top" alt="" /></span>
                                                    Apply Leave Details
                                                </h1>
                                            </div>
                                            <div id="grid-dsply">

                                                <dxw:ASPxGridView ID="gvLeaveDetails" ClientInstanceName="gvLeaveDetails" KeyFieldName="EMPLOYEEID"
                                                    runat="server" EnableTheming="true" Theme="Office2003Blue" Width="100%" AutoGenerateColumns="False"
                                                    CssFilePath="~/App_Themes/Office2003Blue/{0}/grid.css" CssPostfix="Office2003_Blue">
                                                    <%--<Images ImageFolder="~/App_Themes/Office2003 Blue/{0}/">
                                                        <CollapsedButton Height="12px" Url="~/App_Themes/Office2  003 Blue/GridView/gvCollapsedButton.png"
                                                            Width="11px" />
                                                        <ExpandedButton Height="12px" Url="~/App_Themes/Office2003 Blue/GridView/gvExpandedButton.png"
                                                            Width="11px" />
                                                        <DetailCollapsedButton Height="12px" Url="~/App_Themes/Office2003 Blue/GridView/gvCollapsedButton.png"
                                                            Width="11px" />
                                                        <DetailExpandedButton Height="12px" Url="~/App_Themes/Office2003 Blue/GridView/gvExpandedButton.png"
                                                            Width="11px" />
                                                    </Images>--%>
                                                    <Styles AlternatingRow-Enabled="True" CssFilePath="~/App_Themes/Office2003 Blue/{0}/styles.css"
                                                        CssPostfix="Office2003_Blue">
                                                        <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                        </Header>
                                                        <LoadingPanel ImageSpacing="10px">
                                                        </LoadingPanel>
                                                        <PagerBottomPanel CssClass="PageFooter">
                                                        </PagerBottomPanel>
                                                        <PagerTopPanel CssClass="PageFooter">
                                                        </PagerTopPanel>
                                                    </Styles>
                                                    <SettingsPager PrevPageButton-Image-Url="../App_Themes/Office2003Blue/GridView/pPrev.gif"
                                                        PrevPageButton-Image-UrlDisabled="../App_Themes/Office2003Blue/GridView/pPrevDisabled.gif"
                                                        NextPageButton-Image-UrlDisabled="../App_Themes/Office2003Blue/GridView/pNextDisabled.gif"
                                                        NextPageButton-Image-Url="../App_Themes/Office2003Blue/GridView/pNext.gif" AlwaysShowPager="true">
                                                    </SettingsPager>
                                                    <Columns>

                                                        <dxw:GridViewDataColumn Caption="LeaveFrom" FieldName="FromDate">
                                                            <HeaderCaptionTemplate>
                                                                <span class="icon">
                                                                    <img src="../images/icn-leave-frmdate.gif" align="top" alt="" /></span>
                                                                <span class="label">Leave From</span>
                                                            </HeaderCaptionTemplate>
                                                        </dxw:GridViewDataColumn>
                                                        <dxw:GridViewDataColumn Caption="LeaveTo" FieldName="ToDate">
                                                            <HeaderCaptionTemplate>
                                                                <span class="icon">
                                                                    <img src="../images/icn-leave-todate.gif" align="top" alt="" /></span>
                                                                <span class="label">Leave To</span>
                                                            </HeaderCaptionTemplate>
                                                        </dxw:GridViewDataColumn>
                                                        <dxw:GridViewDataColumn Caption="NoOfDays" FieldName="TotalDays">
                                                            <HeaderCaptionTemplate>
                                                                <span class="icon">
                                                                    <img src="../images/icn-total-leave-days.gif" align="top" alt="" /></span>
                                                                <span class="label">Total Days</span>
                                                            </HeaderCaptionTemplate>
                                                        </dxw:GridViewDataColumn>

                                                        <dxw:GridViewDataTextColumn Caption="Edit" Width="10px" HeaderStyle-HorizontalAlign="Center"
                                                            CellStyle-HorizontalAlign="Center">
                                                            <HeaderTemplate>
                                                                <span class="icon">
                                                                    <img src="../images/icn-cancel-leave.gif" align="top" alt="" /></span>
                                                                <span class="label">Cancel Leave</span>
                                                            </HeaderTemplate>
                                                            <DataItemTemplate>
                                                                <asp:LinkButton ID="btnCancelApplyLeave" runat="server" CommandArgument='<%# Eval("EMPLOYEEID")+","+Eval("FromDate")+","+Eval("ToDate") %>'
                                                                    AlternateText="CancelApplyLeave" OnClick="btnCancelApplyLeave_click"
                                                                    ToolTip="Click here to Cancel Leave"><img src="../images/icn-cancel-leave.gif" /></asp:LinkButton>
                                                            </DataItemTemplate>
                                                        </dxw:GridViewDataTextColumn>
                                                    </Columns>
                                                    <Settings ShowStatusBar="Auto" ShowFilterRow="false" ShowGroupPanel="false" />
                                                    <%--<ClientSideEvents EndCallback="function(s, e) {document.getElementById('btnTest').click();}" />--%>
                                                    <SettingsText EmptyDataRow="No Data Identified" />
                                                    <SettingsBehavior ColumnResizeMode="NextColumn" AllowSort="false" AllowDragDrop="true"
                                                        AllowGroup="true" AllowFocusedRow="false" AllowMultiSelection="true" />
                                                    <SettingsPager PageSize="5" Mode="ShowPager">
                                                    </SettingsPager>
                                                </dxw:ASPxGridView>
                                            </div>
                                            <div class="clear clearfix">
                                            </div>
                                            <div id="grid-dsply">
                                                <table border="0" cellpadding="0" cellspacing="0" class="form-tbl">
                                                    <tr>
                                                        <td class="split"></td>
                                                        <td>
                                                            <asp:Label ID="lblLeaveFromDate" runat="server" CssClass="label" Text="Leave From Date"></asp:Label>
                                                            &nbsp;
                                                        <asp:Label ID="Label14" runat="server" ForeColor="Red">*</asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtLeaveFromDate" runat="server" onkeypress="return false" onkeydown="doCheckBackSpaceOrDelete()" onpaste="return false"></asp:TextBox>
                                                            <cc1:CalendarExtender ID="calLeaveFromDate" runat="server" TargetControlID="txtLeaveFromDate"
                                                                CssClass="cal_Theme1" Format="dd/MM/yyyy" OnClientDateSelectionChanged="checkLeaveDate">
                                                            </cc1:CalendarExtender>
                                                        </td>
                                                        <td class="split"></td>
                                                        <td>
                                                            <asp:Label ID="lblLeaveToDate" runat="server" Text="Leave To Date" CssClass="label"></asp:Label>
                                                            &nbsp;<asp:Label ID="Label15" runat="server" ForeColor="Red">*</asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtLeaveToDate" runat="server" TabIndex="55" onkeypress="return false" onkeydown="doCheckBackSpaceOrDelete()" onpaste="return false"></asp:TextBox>
                                                            <cc1:CalendarExtender ID="calLeaveTodate" runat="server" TargetControlID="txtLeaveToDate"
                                                                CssClass="cal_Theme1" Format="dd/MM/yyyy" OnClientDateSelectionChanged="checkLeaveDate">
                                                            </cc1:CalendarExtender>
                                                        </td>
                                                        <td>
                                                            <asp:ImageButton ID="btnApplyLeave" runat="server" OnClientClick="return ValidateLeaveDetails();"
                                                                OnClick="btnApplyLeave_Click" TabIndex="56" ImageUrl="~/images/btn-save.jpg" />
                                                            &nbsp;&nbsp;
                                                                    <asp:ImageButton ID="btnCancelLeave" runat="server" OnClick="btnCancelLeave_Click"
                                                                        TabIndex="57" ImageUrl="~/images/btn-cancel.jpg" />
                                                            &nbsp;&nbsp;
                                                       <asp:ImageButton ID="btnCancel" runat="server" OnClick="btnCancel_Click"
                                                           TabIndex="57" ImageUrl="~/images/btn-cancel.jpg" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </asp:Panel>
                                        <asp:Panel ID="pnlExceptionday" runat="server" CssClass="ControlShow">
                                            <div class="form-box">
                                                <h1>
                                                    <span class="icon">
                                                        <img src="../images/icn-exception-day.gif" align="top" alt="" /></span>
                                                    Exceptionday Details
                                                </h1>
                                            </div>
                                            <div id="grid-dsply">
                                                <table border="0" cellpadding="0" cellspacing="0" class="form-tbl">
                                                    <tr>

                                                        <td>
                                                            <asp:Label ID="lblExceptionDate" runat="server" CssClass="label" Text="Exception Date"></asp:Label>
                                                            &nbsp;
                                                        <asp:Label ID="Label3" runat="server" ForeColor="Red">*</asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtExceptionDate" runat="server" onkeypress="return false" onkeydown="doCheckBackSpaceOrDelete()" onpaste="return false"></asp:TextBox>
                                                            <cc1:CalendarExtender ID="ceExceptionDate" runat="server" TargetControlID="txtExceptionDate"
                                                                CssClass="cal_Theme1" Format="dd/MM/yyyy" OnClientDateSelectionChanged="checkExceptionDate">
                                                            </cc1:CalendarExtender>
                                                        </td>
                                                        <td>
                                                            <asp:Label ID="lblExceptionShiftIn" runat="server" Text="ShiftIn Time" CssClass="label"></asp:Label>
                                                            &nbsp;<asp:Label ID="Label16" runat="server" ForeColor="Red">*</asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:DropDownList ID="ddlExceptionShiftIn" runat="server" CssClass="time">
                                                            </asp:DropDownList>
                                                            <asp:DropDownList ID="ddlExceptionShiftInMinutes" runat="server" CssClass="time">
                                                                <asp:ListItem>00</asp:ListItem>
                                                                <asp:ListItem>15</asp:ListItem>
                                                                <asp:ListItem>30</asp:ListItem>
                                                                <asp:ListItem>45</asp:ListItem>
                                                            </asp:DropDownList>
                                                        </td>
                                                        <td>
                                                            <asp:Label ID="lblExceptionShiftOut" runat="server" Text="ShiftOut Time" CssClass="label"></asp:Label>
                                                            &nbsp;<asp:Label ID="Label17" runat="server" ForeColor="Red">*</asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:DropDownList ID="ddlExceptionShiftOut" runat="server" CssClass="time" onchange="ValidateTime('ddlExceptionShiftIn','ddlExceptionShiftOut','ddlExceptionShiftInMinutes','ddlExceptionShiftOutMinutes');">
                                                            </asp:DropDownList>
                                                            <asp:DropDownList ID="ddlExceptionShiftOutMinutes" runat="server" CssClass="time"
                                                                onchange="ValidateTime('ddlExceptionShiftIn','ddlExceptionShiftOut','ddlExceptionShiftInMinutes','ddlExceptionShiftOutMinutes');">
                                                                <asp:ListItem>00</asp:ListItem>
                                                                <asp:ListItem>15</asp:ListItem>
                                                                <asp:ListItem>30</asp:ListItem>
                                                                <asp:ListItem>45</asp:ListItem>
                                                            </asp:DropDownList>
                                                        </td>

                                                        <td>
                                                            <asp:ImageButton ID="btnExceptionUpdate" runat="server" OnClientClick="return ValidateExceptionDay();"
                                                                OnClick="btnExceptionUpdate_Click" ImageUrl="~/images/btn-save.jpg" />
                                                            <asp:ImageButton ID="btnExceptionCancel" runat="server" OnClick="btnExceptionCancel_Click" ImageUrl="~/images/btn-cancel.jpg" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                </div>
                            </div>
                            <!-- Main Content Ends Here -->
                            <div id="left">
                            </div>
                            <div class="clear clearfix">
                            </div>
                        </div>
                        <div id="right">
                        </div>
                    </div>
                </div>

                <%--<asp:HiddenField ID="hdnEmpLatLong" runat="server" />--%>
                <%-- <asp:HiddenField ID="hdnLocalityDetails" runat="server" />--%>
                <asp:HiddenField ID="hdnLocationDetails" runat="server" />
                <asp:HiddenField ID="hdnAddressStatus" runat="server" />
                <asp:HiddenField ID="hdnLeaveCancelDetails" runat="server" />
                <asp:Button ID="btnTest" Text="Test" CssClass="ControlHide" runat="server" />
            </ContentTemplate>
            <Triggers>
                <asp:PostBackTrigger ControlID="btnTest" />
            </Triggers>
        </asp:UpdatePanel>

        <!-- Content Ends Here -->
        <uc2:Footer ID="ucFooter" runat="server" />

        <%--<script src="http://www.google.com/jsapi?key=ABQIAAAAadK4QC_stKG_N-fgpmjS2xQA_4E2fCCMSvystwZnewY94nMSzBSJVaeoWL6-saco8uIUmXZXGqtarw" type="text/javascript" ></script>
<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAadK4QC_stKG_N-fgpmjS2xQA_4E2fCCMSvystwZnewY94nMSzBSJVaeoWL6-saco8uIUmXZXGqtarw"></script>--%>
        <script language="javascript" type="text/javascript" src="../js/FormValidations.js"></script>

        <script language="javascript" type="text/javascript" src="../js/myformvalidations.js"></script>
        <script language="javascript" type="text/javascript" src="../js/GoogleSearchCSS.js"></script>

        <script type="text/javascript">



            function ShowTimePickers() {

                if (document.getElementById("chkMonday").checked) {
                    document.getElementById("tdMonday").style.visibility = "visible";

                }
                else {
                    document.getElementById("tdMonday").style.visibility = "hidden";

                }
                if (document.getElementById("chkTuesday").checked) {
                    document.getElementById("tdTuesday").style.visibility = "visible";
                }
                else {
                    document.getElementById("tdTuesday").style.visibility = "hidden";
                }
                if (document.getElementById("chkWednesday").checked) {
                    document.getElementById("tdWednesday").style.visibility = "visible";
                }
                else {
                    document.getElementById("tdWednesday").style.visibility = "hidden";
                }
                if (document.getElementById("chkThursday").checked) {
                    document.getElementById("tdThursday").style.visibility = "visible";
                }
                else {
                    document.getElementById("tdThursday").style.visibility = "hidden";
                }
                if (document.getElementById("chkFriday").checked) {
                    document.getElementById("tdFriday").style.visibility = "visible";
                }
                else {
                    document.getElementById("tdFriday").style.visibility = "hidden";
                }
                if (document.getElementById("chkSaturday").checked) {
                    document.getElementById("tdSaturday").style.visibility = "visible";
                }
                else {
                    document.getElementById("tdSaturday").style.visibility = "hidden";
                }
                if (document.getElementById("chkSunday").checked) {
                    document.getElementById("tdSunday").style.visibility = "visible";
                }
                else {
                    document.getElementById("tdSunday").style.visibility = "hidden";
                }

            }


            function OnGridSelectionChanged() {

                gvManagersView.GetSelectedFieldValues('RequisitionId', OnGridSelectionComplete);
                gvManagersView.GetSelectedFieldValues('EmailId', OnGridSelectionCompleteEmail);
            }

            function OnGridSelectionComplete(values) {
                var counter = document.getElementById("hdnAccepted");
                counter.value = '';
                for (var i = 0; i < values.length; i++) {
                    counter.value = counter.value + values[i] + ',';
                }
            }

            function OnGridSelectionCompleteEmail(values) {
                var counter = document.getElementById("hdnEmailId");
                counter.value = '';
                for (var i = 0; i < values.length; i++) {
                    counter.value = counter.value + values[i] + ',';
                }
            }

            function checkDate(sender, args) {
                if (new Date().getHours() >= 20) {
                    var validtimedate = new Date((new Date().getMonth() + 1) + "/" + (new Date().getDate() + 1) + "/" + new Date().getFullYear());
                    var validcheckdate = new Date(sender._selectedDate);
                    if (validcheckdate.getDate() == validtimedate.getDate()) {
                        alert('Request time limit exceeded. Please try again tomorrow.')
                        sender._textbox.set_Value("");
                        return;
                    }
                }
                if (sender._selectedDate < new Date()) {
                    alert("Please select a future date.");
                    sender._selectedDate = new Date();
                    sender._textbox.set_Value("");
                }
                else if ((document.getElementById("txtFromDate").value != "" && document.getElementById("txtFromDate").value != null)) {
                    var fromDate = new Date((new Date().getMonth() + 3) + "/" + new Date().getDate() + "/" + new Date().getFullYear());
                    //                alert(sender._selectedDate);
                    if (sender._selectedDate > fromDate) {
                        alert("Please select a Required From date less than 2 months from the current date.");
                        document.getElementById("txtFromDate").value = "";
                        document.getElementById("txtFromDate").focus();
                    }
                }
                if ((document.getElementById("txtFromDate").value != "" && document.getElementById("txtFromDate").value != null) && (document.getElementById("txtToDate").value != "" && document.getElementById("txtToDate").value != null)) {
                    var FromdateStr = new Array(3);
                    FromdateStr = String(document.getElementById("txtFromDate").value).split('/');
                    var day = FromdateStr[0];
                    var month = FromdateStr[1];
                    var year = FromdateStr[2];
                    var fromDate = new Date(month + "/" + day + "/" + year);
                    if (fromDate >= sender._selectedDate) {
                        alert("Please select todate greater then fromdate..!");
                        document.getElementById("txtToDate").value = "";
                        document.getElementById("txtToDate").focus();
                    }
                }
                if ((document.getElementById("txtFromDate").value != "" && document.getElementById("txtFromDate").value != null) && (document.getElementById("txtToDate").value != "" && document.getElementById("txtToDate").value != null)) {
                    var fromDate = new Date((new Date().getMonth() + 3) + "/" + new Date().getDate() + "/" + new Date().getFullYear());
                    if (sender._selectedDate > fromDate) {
                        alert("Please select todate less then or equal to 2 month's from current date..!");
                        document.getElementById("txtToDate").value = "";
                        document.getElementById("txtToDate").focus();
                    }
                }

            }
            function checkLeaveDate(sender, args) {
                var LeaveDetails = new Array(3);
                if (document.getElementById("hdnLeaveCancelDetails").value != '') {
                    LeaveDetails = String(document.getElementById("hdnLeaveCancelDetails").value).split(',');
                    //document.getElementById("hdnLeaveCancelDetails").value = '';
                }
                else {
                    LeaveDetails = String(document.getElementById("hdnLeaveDetails").value).split(',');
                }

                var ValidFromDate = new Date(LeaveDetails[1]);
                var ValidToDate = new Date(LeaveDetails[2]);
                if (sender._selectedDate < new Date()) {
                    alert("Please select a future date.");
                    sender._selectedDate = new Date();
                    sender._textbox.set_Value("");
                }
                else if ((sender._selectedDate > ValidToDate) || (sender._selectedDate < ValidFromDate)) {
                    alert("Please select the leave date between the scheduled dates.");
                    sender._selectedDate = new Date();
                    sender._textbox.set_Value("");
                }
                else if ((document.getElementById("txtLeaveFromDate").value != null && document.getElementById("txtLeaveFromDate").value != "")
                        && (document.getElementById("txtLeaveToDate").value != null && document.getElementById("txtLeaveToDate").value != "")) {
                    var Todate = new Array(3);
                    var FromdateStr = new Array(3);
                    FromdateStr = String(document.getElementById("txtLeaveFromDate").value).split('/');
                    Todate = String(document.getElementById("txtLeaveToDate").value).split('/');

                    var Fromdate = new Date(FromdateStr[1] + "/" + FromdateStr[0] + "/" + FromdateStr[2]);
                    Todate = new Date(Todate[1] + "/" + Todate[0] + "/" + Todate[2]);
                    if (((Fromdate >= ValidFromDate) && (Fromdate <= ValidToDate))) {
                        if (((Todate >= ValidFromDate) && (Todate <= ValidToDate))) {
                            if (Fromdate <= Todate) {
                            }
                            else {
                                alert("Please select valid Todate..!");
                                document.getElementById("txtLeaveToDate").value = "";
                                document.getElementById("txtLeaveToDate").focus();
                            }
                        }
                        else {
                            alert("Please select valid leave Todate..!");
                            document.getElementById("txtLeaveToDate").value = "";
                            document.getElementById("txtLeaveToDate").focus();
                        }
                    }
                    else {
                        alert("Please select valid leave Fromdate..!");
                        document.getElementById("txtLeaveFromDate").value = "";
                        document.getElementById("txtLeaveFromDate").focus();
                    }
                }

            }

            function ValidateTime(FromTime, ToTime, FromMinutes, ToMinutes) {
                var ToTimeControl = ToTime;
                if (document.getElementById(FromTime).value == "Hr") {
                    alert("Please select the Shift In time first.");
                    document.getElementById(ToTime).value = "Hr";
                    document.getElementById(FromTime).focus();
                }
                else if (document.getElementById(ToTime).value != "Hr") {
                    FromTime = document.getElementById(FromTime).value;
                    FromMinutes = document.getElementById(FromMinutes).value;
                    ToTime = document.getElementById(ToTime).value;
                    ToMinutes = document.getElementById(ToMinutes).value;
                    FromTime = eval(FromTime) + "." + eval(FromMinutes);
                    ToTime = eval(ToTime) + "." + eval(ToMinutes);
                    if (eval(ToTime) <= eval(FromTime)) {
                        alert("Shift Out time should be greater than the Shift In time.");
                        document.getElementById(ToTimeControl).value = "Hr";
                        document.getElementById(ToTimeControl).focus();
                    }
                }

            }
            function SetScrollbar() {
                setTimeout("window.scrollTo(0,0)", 0);
            }

            function checkExceptionDate(sender, args) {
                var LeaveDetails = new Array(3);
                LeaveDetails = String(document.getElementById("hdnLeaveDetails").value).split(',');
                var ValidFromDate = new Date(LeaveDetails[1]);
                var ValidToDate = new Date(LeaveDetails[2]);
                if (sender._selectedDate < new Date()) {
                    alert("Please select a future date.");
                    sender._selectedDate = new Date();
                    sender._textbox.set_Value("");
                }
                else if ((sender._selectedDate > ValidToDate) || (sender._selectedDate < ValidFromDate)) {
                    alert("Please select the leave date between the scheduled dates.");
                    sender._selectedDate = new Date();
                    sender._textbox.set_Value("");
                }
            }
            function ConfirmStatus() {
                var returnValue = confirm('This request is conflicting with earlier requested dates do you want to proceed..!');
                if (returnValue) {
                    //                _doPostBack('btnCofirm', 'Click');
                    document.getElementById('<%=btnCofirm.ClientID%>').click();
            }
            else {
                return false;
            }
        }

        function OpenPopup() {
            window.open("EmployeeLocation.aspx", "List", "scrollbars=no,resizable=no,width=400px,height=350px");
            return false;
        }
        </script>
        <asp:HiddenField ID="hdnLogout" runat="server" />
    </form>
</body>
</html>
