<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Hrm_PoliciesForms_PoliciesMaster, App_Web_tlby3yie" enableEventValidation="false" viewStateEncryptionMode="Never" %>


<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/Common/EmployeeSearch/EmployeeSearch.ascx" TagName="EmployeeSearchControl" TagPrefix="hims" %>
<%@ Register Src="~/UserControls/Common/StudentSearch/StudentSearch.ascx" TagName="StudentSearch" TagPrefix="Std" %>
<%@ Register Src="~/UserControls/MessageBox/MessageBoxControl.ascx" TagName="MessageControl" TagPrefix="uc1" %>



<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">


    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">

                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="237"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <div class="himssuHeader5WireBox card card-box" id="SearchDiv" runat="server">

                        <div class="himsBoxHeader card-head col-md-12">
                            <ol class="breadcrumb col-md-5">
                                <li class="breadcrumb-item">

                                    <img src="../../../Images/FolderIcon/home.png" />

                                </li>

                                <li class="breadcrumb-item">
                                    <asp:LinkButton ID="LinkButtonRoot" OnClick="LinkButtonRoot_Click" runat="server" ToolTip="Go to this Folder !"> 
                                                    
                                                       Root  
                                                   
                                    </asp:LinkButton>
                                </li>
                                <li class="breadcrumb-item display-flex">
                                    <asp:DataList ID="dlData" runat="server">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="LinkButtonPath" runat="server" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "Id")%> ' CommandName='<%# DataBinder.Eval(Container.DataItem, "Title")%>' Style="color: black;" ToolTip="Go to this Folder !"> 
                                                       <%# Eval("Title") %>
                                            </asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:DataList>
                                </li>

                            </ol>
                            <div class="btn-list col-md-7">
                                <asp:Button ID="ButtonRefresh" runat="server" Text="&#xf0e2; Refresh" SkinID="0" CssClass="fas btn btn-assign" OnClick="ButtonRefresh_Click" />
                                <asp:Button ID="ButtonUP" runat="server" Text="&#xf062; UP" SkinID="0" CssClass="fas btn btn-assign" OnClick="ButtonUP_Click" />
                                <asp:Button ID="ButtonCreateFolder" runat="server" Text="&#xf07b; Create Folder" SkinID="0" CssClass="fas btn btn-assign" OnClick="ButtonCreateFolder_Click" />
                                <asp:Button ID="ButtonUploadFiles" runat="server" Text="&#xf093; Upload Files" SkinID="0" CssClass="fas btn btn-assign" OnClick="ButtonUploadFiles_Click" />
                                <asp:Button ID="ButtonDeleteFF" runat="server" Text="&#xf2ed; Delete" SkinID="0" CssClass="fas btn btn-assign" OnClick="ButtonDeleteFF_Click" />
                            </div>
                        </div>

                        <div class="himsBoxContent card-body padd-0">

                            <asp:Panel ID="DetailPanel" runat="Server">
                                <div class="contentHolder">
                                    <div class="tableContainer ">
                                        <asp:HiddenField ID="HiddenFieldID" runat="server" />
                                        <asp:HiddenField ID="HiddenFieldContentType" runat="server" />
                                        <asp:HiddenField ID="HiddenFieldFileName" runat="server" />

                                        <cc1:TabContainer Width="100%" ID="TabContainerFormsMaster" runat="server" CssClass="ajax__myTab tabs-style-iconbox"
                                            AutoPostBack="true" OnActiveTabChanged="ActiveTabChanged_TabContainerFormsMaster"
                                            meta:resourcekey="EventScheduleTabContainerResource1" ActiveTabIndex="0">
                                            <cc1:TabPanel Width="100%" ID="TabPanelGridView" runat="server" HeaderText="Grid View"
                                                CssClass="">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs iconboxinner  tabs-style-iconboxinner">
                                                        <li class="fancyTab">
                                                            <a><i class="fas fa-list-ul"></i>Grid View
                                                            </a>
                                                        </li>

                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <div class="contentHolder pTop15">
                                                        <div id="Div2" class="himssuHeader1WireBox col-md-12" runat="server">
                                                            <div class="himsBoxContent width-100 table-responsive">
                                                                <asp:GridView ID="GridViewDetails" runat="server" CellPadding="4"
                                                                    DataKeyNames="Id" EmptyDataText="No record found here!" CssClass="table table-striped table-bordered table-hover" AutoGenerateColumns="False"
                                                                    OnRowDataBound="GridViewDetails_RowDataBound">
                                                                    <Columns>
                                                                        <asp:TemplateField>
                                                                            <ItemTemplate>
                                                                                <asp:Image runat="server" ID="Image1" />
                                                                                <asp:HiddenField ID="HiddenFieldType" runat="server" Value='<%# Bind("TypeId") %>'></asp:HiddenField>
                                                                                <asp:HiddenField ID="HiddenFieldId" runat="server" Value='<%# Bind("Id") %>'></asp:HiddenField>
                                                                                <asp:HiddenField ID="HiddenFieldFolderPath" runat="server" Value='<%# Bind("FolderPath") %>'></asp:HiddenField>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle HorizontalAlign="Left" Width="5%" Wrap="True" />
                                                                        </asp:TemplateField>

                                                                        <asp:TemplateField HeaderText="Title">
                                                                            <ItemTemplate>
                                                                                <div class="myDiv">
                                                                                    <asp:LinkButton ID="LinkButtonTitle" runat="server" OnClick="LinkButtonTitle_Click"
                                                                                        Text='<%# Bind("Title") %>' CausesValidation="false"></asp:LinkButton>

                                                                                    <ul class="act">
                                                                                        <li>
                                                                                            <asp:ImageButton ID="ImageButtonAdd" ImageUrl="../../../Images/add.png" runat="server" />
                                                                                        </li>
                                                                                        <li>
                                                                                            <asp:ImageButton ID="ImageButtonEdit" ImageUrl="../../../Images/edit.png" runat="server" />
                                                                                        </li>
                                                                                        <li>
                                                                                            <asp:ImageButton ID="ImageButtonDelete" ImageUrl="../../../Images/delete.png" runat="server" />
                                                                                        </li>
                                                                                    </ul>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle HorizontalAlign="Left" Width="35%" Wrap="True" />
                                                                        </asp:TemplateField>

                                                                        <asp:TemplateField HeaderText="Type">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="T" runat="server" Text='<%# Bind("Type") %>' Style="color: #678197; font-size: 13px; font-family: monospace;"></asp:Label>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle HorizontalAlign="Left" Width="10%" Wrap="True" />
                                                                        </asp:TemplateField>

                                                                        <asp:TemplateField HeaderText="Size">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="ValidFrom" runat="server" Text='<%# Bind("Size") %>' Style="color: #678197; font-size: 13px; font-family: monospace;"></asp:Label>

                                                                            </ItemTemplate>
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle HorizontalAlign="Left" Width="10%" Wrap="True" />
                                                                        </asp:TemplateField>


                                                                        <asp:TemplateField HeaderText="Created By">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="LabelCreatedBy" runat="server" Text='<%# Bind("CreatedUser") %>' Style="color: #678197; font-size: 13px; font-family: monospace;"></asp:Label>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="15%" Wrap="True" />
                                                                        </asp:TemplateField>


                                                                        <asp:TemplateField HeaderText="Created Date">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="LabelCreateDate" runat="server" Text='<%# Bind("CreateDate") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle HorizontalAlign="Left" />

                                                                            <ItemStyle HorizontalAlign="Left" Width="20%" Wrap="True" />
                                                                        </asp:TemplateField>


                                                                        <asp:TemplateField>
                                                                            <HeaderTemplate>
                                                                                <label class="rt-chkbox  rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="HeaderSelectCheckBox" runat="server" onclick="checkAll(this);" />
                                                                                    <span></span>
                                                                                </label>

                                                                            </HeaderTemplate>
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox  rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="SelectCheckBox" runat="server" Enabled='<%# Bind("IsDelete") %>' onclick="Check_Click(this);" />
                                                                                    <span></span>
                                                                                </label>

                                                                            </ItemTemplate>
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle HorizontalAlign="Left" Width="5%" Wrap="True" />
                                                                        </asp:TemplateField>
                                                                    </Columns>
                                                                </asp:GridView>
                                                            </div>
                                                        </div>

                                                    </div>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                            <cc1:TabPanel Width="100%" ID="TabPanelDetailsView" ClientIDMode="Static" runat="server"
                                                HeaderText="Details View" CssClass="navgraybackground">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs iconboxinner  tabs-style-iconboxinner">
                                                        <li class="fancyTab">
                                                            <a><i class="fas fa-th-large"></i>Details View
                                                            </a>
                                                        </li>
                                                    </ul>

                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <div class="contentHolder">
                                                        <div id="Div1" class="himssuHeader1WireBox col-md-12" runat="server">
                                                            <div class="himsBoxContent ">
                                                                <asp:DataList ID="DataList1" runat="Server"
                                                                    RepeatColumns="11" RepeatDirection="horizontal" RepeatLayout="Table" CellPadding="2" CellSpacing="1">
                                                                    <ItemTemplate>
                                                                        <div class="DivDataList1 table-responsive">
                                                                            <table class="table table-striped table-hover ">
                                                                                <tr>
                                                                                    <td title="Open This Folder" class="folder-big">
                                                                                        <asp:LinkButton ID="LinkButtonFolder" runat="server" OnClick="LinkButtonFolder_Click" CommandArgument='<%# Eval("Id") %>' CommandName='<%# Eval("Title") %>'>
                                                                                            <asp:HiddenField ID="HiddenFieldFolderPath" runat="server" Value='<%# Bind("FolderPath") %>'></asp:HiddenField>
                                                                                            <img src="../../../Images/FolderIcon/folder.png" />
                                                                                            <label class="DivDataList1Label"><%# Eval("Title") %></label>
                                                                                        </asp:LinkButton>

                                                                                        <ul class="actDataList1">
                                                                                            <li style="position: absolute; margin: 0px 38px 1px 0px;">
                                                                                                <asp:ImageButton ID="ImageButtonAdd" ImageUrl="../../../Images/add.png" runat="server" />
                                                                                            </li>
                                                                                            <li style="position: absolute; margin: 0px 38px 1px 0px;">
                                                                                                <asp:ImageButton ID="ImageButtonEdit" ImageUrl="../../../Images/edit.png" runat="server" />
                                                                                            </li>
                                                                                            <li style="position: absolute; margin: 0px 38px 1px 0px;">
                                                                                                <asp:ImageButton ID="ImageButtonDelete" ImageUrl="../../../Images/delete.png" runat="server" />
                                                                                            </li>
                                                                                        </ul>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </div>
                                                                    </ItemTemplate>
                                                                </asp:DataList>
                                                                <asp:DataList ID="DataList2" runat="Server"
                                                                    RepeatColumns="11" RepeatDirection="horizontal" BackColor="#f6f7f9" RepeatLayout="Table" CellPadding="2" CellSpacing="1">
                                                                    <ItemTemplate>
                                                                        <div class="DivDataList2">
                                                                            <table style="width: 100%;">
                                                                                <tr>
                                                                                    <td title="Open This File" class="inner-fol">
                                                                                        <asp:LinkButton ID="LinkButtonFile" runat="server" OnClick="LinkButtonFile_Click" CommandArgument='<%# Eval("Id") %>'>
                                                                                                    <img src="../../../Images/FolderIcon/<%# Eval("ImageName") %>" style="margin-top: 9px;height: 64px;width: 64PX" /><label class="DivDataList2Label"><%# Eval("Title") %></label>
                                                                                        </asp:LinkButton>
                                                                                        <ul class="actDataList2">
                                                                                            <li style="position: absolute; margin: 0px 0px 0px 5px;">
                                                                                                <asp:ImageButton ID="ImageButtonEdit" ImageUrl="../../../Images/edit.png" runat="server" />
                                                                                            </li>
                                                                                            <li style="position: absolute; margin: 0px 0px 0px 28px;">
                                                                                                <asp:ImageButton ID="ImageButtonDelete" ImageUrl="../../../Images/delete.png" runat="server" />
                                                                                            </li>
                                                                                        </ul>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </div>
                                                                    </ItemTemplate>
                                                                </asp:DataList>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                        </cc1:TabContainer>

                                    </div>

                                </div>
                            </asp:Panel>
                        </div>
                    </div>


                </div>

            </div>
        </ContentTemplate>
    </asp:UpdatePanel>



    <cc1:ModalPopupExtender ID="ModalPopupExtenderFolder" runat="server" TargetControlID="HidenButton" PopupControlID="ModalPopUpPanel" BackgroundCssClass="modalBackground"
        Drag="True" PopupDragHandleControlID="dragPanel" Enabled="True" />
    <asp:LinkButton runat="server" ID="HidenButton" meta:resourcekey="HidenButtonResource1" />

    <asp:Panel ID="ModalPopUpPanel" runat="server" CssClass="dragControl" Width="700px" DefaultButton="HidenButton" meta:resourcekey="ModalPopUpPanelResource1">
        <div class="messagebox card card-box">
            <asp:Panel ID="dragPanel" runat="server" CssClass="dragMePanel" Width="100%" meta:resourcekey="dragPanelResource1">
                <div id="dragMe1" class="dragMe card-head" style="cursor: move">
                    <div class="himsPopupWireBox">
                        <div class="himsBoxHeadermain">
                            <div>
                            </div>
                        </div>
                        <div class="himsBoxTopper headerFont">
                            <div class="fLeft headerText">
                                <asp:UpdatePanel ID="UpdatePanel3" runat="server" RenderMode="Inline">
                                    <ContentTemplate>
                                        <header>
                                            <asp:Label ID="DialogHeaderLabel" runat="server" meta:resourcekey="DialogHeaderLabelResource1" Text="Add / Edit a folder"></asp:Label>
                                        </header>
                                        <span class="pull-right">
                                            <asp:ImageButton ID="ImageButtonClose" runat="server" Height="20PX" Width="20PX" ImageUrl="~/Images/closebox.png" OnClick="ImageButtonClose_Click" />
                                        </span>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </div>
                        </div>
                    </div>
                </div>
            </asp:Panel>
            <asp:UpdatePanel ID="EmployeeSearchUpdatePanel" runat="server"
                RenderMode="Block">
                <ContentTemplate>

                    <div id="bodyContainer" class="card-body">
                        <div class="himsPopupWireBox">
                            <div class="himsBoxHeadermain">
                                <div>
                                </div>
                            </div>
                            <uc1:MessageControl ID="SearchMessageBox" runat="server" Visible="false" />
                            <div class="himsBoxContentmain" style="overflow: hidden">
                                <div id="divContentPage1">
                                    <div class="spacer">
                                        <asp:Image ID="Image2" runat="server" ImageUrl="~/Images/spacer.gif"
                                            meta:resourcekey="Image1Resource1" />
                                    </div>
                                    <div>
                                        <div class="himssuHeader5WireBox">
                                            <div class="himsBoxHeader">
                                                <asp:Panel ID="TopPanel" runat="server" meta:resourcekey="TopPanelResource1">
                                                    <div class="leftdiv">
                                                    </div>
                                                    <div class="himsBoxTitle">
                                                    </div>
                                                </asp:Panel>
                                            </div>
                                            <div class="himsBoxContent">
                                                <asp:Panel ID="Panel2" runat="server" meta:resourcekey="DetailPanelResource1">
                                                    <div class="contentHolder">
                                                        <asp:Panel ID="Panel3" runat="server" meta:resourcekey="SearchCriteriaPanelResource1">
                                                            <table style="margin-left: 9px; width: 98%;">
                                                                <tr>
                                                                    <td class="ModalTd">
                                                                        <asp:Label ID="LabelFolderName" runat="server" Text="Folder Name" SkinID="MandatoryLabel"></asp:Label>
                                                                    </td>
                                                                    <td class="td-inner">
                                                                        <asp:TextBox ID="TextBoxFolderName" onmouseleave="showHideTooltip()"
                                                                            onPaste="return false;"
                                                                            onDrag="return false"
                                                                            onDrop="return false"
                                                                            OnKeypress="javascript:return isAlphaNumeric(event,this.value);" onmouseenter="showHideTooltip()" SkinID="CustomWidthTextBox" Width="50%" runat="Server" MaxLength="100"></asp:TextBox>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td class="ModalTd">
                                                                        <asp:Label ID="LabelDescription" runat="server" Text="Description"></asp:Label>
                                                                    </td>
                                                                    <td class="td-inner">
                                                                        <asp:TextBox ID="TextBoxDescription" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" SkinID="CustomWidthTextBox" Width="50%" Height="50PX" runat="Server" MaxLength="100" TextMode="MultiLine"></asp:TextBox>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td class="ModalTd">
                                                                        <asp:Label ID="LabelAccessibleTo" runat="server" Text="Accessible To"></asp:Label>
                                                                    </td>
                                                                    <td class="td-inner">
                                                                        <asp:RadioButtonList ID="RadioButtonListAccessible" runat="server" RepeatDirection="Horizontal" OnSelectedIndexChanged="RadioButtonListAccessible_SelectedIndexChanged" AutoPostBack="true">
                                                                            <asp:ListItem Value="1" Selected="True">Only Me </asp:ListItem>
                                                                            <asp:ListItem Value="2">Selected</asp:ListItem>
                                                                            <asp:ListItem Value="3">All</asp:ListItem>
                                                                        </asp:RadioButtonList>
                                                                        <div id="DivCheckBoxList1" runat="server" visible="false" class="fLeft pRight5 chckbox-list">
                                                                            <asp:CheckBoxList ID="CheckBoxList1"  RepeatDirection="Vertical" RepeatColumns="3" runat="server">
                                                                            </asp:CheckBoxList>
                                                                        </div>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td class="ModalTd">
                                                                        <asp:Label ID="LabelViewAccess" runat="server" Text="View Access"></asp:Label>
                                                                    </td>
                                                                    <td class="td-inner">
                                                                        <asp:RadioButtonList ID="RadioButtonListViewAccess" runat="server" RepeatDirection="Horizontal" OnSelectedIndexChanged="RadioButtonListViewAccess_SelectedIndexChanged" AutoPostBack="true">
                                                                            <asp:ListItem Value="1" Selected="True">Only Me </asp:ListItem>
                                                                            <asp:ListItem Value="2">Selected</asp:ListItem>
                                                                            <asp:ListItem Value="3">All</asp:ListItem>
                                                                        </asp:RadioButtonList>
                                                                        <div id="DivCheckBoxList2" runat="server" visible="false" class="fLeft pRight5 chckbox-list">
                                                                            <asp:CheckBoxList ID="CheckBoxList2"  RepeatDirection="Vertical" RepeatColumns="3" runat="server">
                                                                            </asp:CheckBoxList>
                                                                        </div>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td class="ModalTd">
                                                                        <asp:Label ID="LabelUploadAccess" runat="server" Text="Upload Access"></asp:Label>
                                                                    </td>
                                                                    <td class="td-inner">
                                                                        <asp:RadioButtonList ID="RadioButtonListUploadAccess" runat="server" RepeatDirection="Horizontal" OnSelectedIndexChanged="RadioButtonListUploadAccess_SelectedIndexChanged" AutoPostBack="true">
                                                                            <asp:ListItem Value="1" Selected="True">Only Me </asp:ListItem>
                                                                            <asp:ListItem Value="2">Selected</asp:ListItem>
                                                                            <asp:ListItem Value="3">All</asp:ListItem>
                                                                        </asp:RadioButtonList>
                                                                        <div id="DivCheckBoxList3" runat="server" visible="false" class="fLeft pRight5 chckbox-list">
                                                                            <asp:CheckBoxList ID="CheckBoxList3" RepeatDirection="Vertical" RepeatColumns="3"  runat="server">
                                                                            </asp:CheckBoxList>
                                                                        </div>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td class="ModalTd">
                                                                        <asp:Label ID="Label1" runat="server" Text="Edit Access"></asp:Label>
                                                                    </td>
                                                                    <td class="td-inner">
                                                                        <asp:RadioButtonList ID="RadioButtonListEditAccess" runat="server" RepeatDirection="Horizontal" OnSelectedIndexChanged="RadioButtonListEditAccess_SelectedIndexChanged" AutoPostBack="true">
                                                                            <asp:ListItem Value="1" Selected="True">Only Me </asp:ListItem>
                                                                            <asp:ListItem Value="2">Selected</asp:ListItem>
                                                                            <asp:ListItem Value="3">All</asp:ListItem>
                                                                        </asp:RadioButtonList>
                                                                        <div id="DivCheckBoxList4" runat="server" visible="false" class="fLeft pRight5 chckbox-list">
                                                                            <asp:CheckBoxList ID="CheckBoxList4"  RepeatDirection="Vertical" RepeatColumns="3" runat="server">
                                                                            </asp:CheckBoxList>
                                                                        </div>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td class="ModalTd">
                                                                        <asp:Label ID="LabelDeleteAccess" runat="server" Text="Delete Access"></asp:Label>
                                                                    </td>
                                                                    <td class="td-inner">
                                                                        <asp:RadioButtonList ID="RadioButtonListDeleteAccess" runat="server" RepeatDirection="Horizontal" OnSelectedIndexChanged="RadioButtonListDeleteAccess_SelectedIndexChanged" AutoPostBack="true">
                                                                            <asp:ListItem Value="1" Selected="True">Only Me </asp:ListItem>
                                                                            <asp:ListItem Value="2">Selected</asp:ListItem>
                                                                            <asp:ListItem Value="3">All</asp:ListItem>
                                                                        </asp:RadioButtonList>
                                                                        <div id="DivCheckBoxList5" runat="server" visible="false" class="fLeft pRight5 chckbox-list">
                                                                            <asp:CheckBoxList ID="CheckBoxList5"  RepeatDirection="Vertical" RepeatColumns="3" runat="server">
                                                                            </asp:CheckBoxList>
                                                                        </div>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                            <div class="cBoth">
                                                            </div>
                                                        </asp:Panel>

                                                    </div>
                                                </asp:Panel>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="himsmainBoxBottom   pb15 text-center">
                                <div class="col-md-12 pTop15 pb15 text-center">


                                    <asp:Button runat="server" ID="ButtonSaveFolder" Text="&#xf1d8; Submit" SkinID="0" CssClass="fas btn btn-send" meta:resourcekey="OkButtonResource1" OnClick="ButtonSaveFolder_Click" />

                                    <asp:Button ID="CancelButton" runat="server" CssClass="fas btn btn-cancel" meta:resourcekey="CancelButtonResource1" SkinID="0" Text="&#xf00d; Cancel" OnClick="CancelButton_Click" />

                                </div>
                            </div>
                           <%-- <div class="himsmainBoxFooter">
                                <div>
                                    <table>
                                        <tr>
                                            <td>&nbsp
                                            </td>
                                        </tr>

                                    </table>
                                </div>
                            </div>--%>

                        </div>
                    </div>

                    <asp:UpdateProgress ID="MainUpdateProgress" runat="server" DisplayAfter="200">
                        <ProgressTemplate>
                            <div style="position: absolute; top: 50%; left: 45%; font-size: 20px">
                                <asp:Image ID="LoadingImage4" runat="server" ImageUrl="~/Images/Loading.gif"
                                    meta:resourcekey="Image3Resource1" />
                            </div>
                        </ProgressTemplate>
                    </asp:UpdateProgress>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
    </asp:Panel>




    <cc1:ModalPopupExtender ID="ModalPopupExtenderFile" runat="server" TargetControlID="LinkButton1" PopupControlID="PanelModalPopUpFile" BackgroundCssClass="modalBackground"
        Drag="True" PopupDragHandleControlID="PanelDrageFile" Enabled="True" />
    <asp:LinkButton runat="server" ID="LinkButton1" meta:resourcekey="HidenButtonResource1" />

    <asp:Panel ID="PanelModalPopUpFile" runat="server" CssClass="dragControl" Width="700px" DefaultButton="HidenButton" meta:resourcekey="ModalPopUpPanelResource1">
        <div class="messagebox card card-box">

            <asp:Panel ID="PanelDrageFile" runat="server" CssClass="dragMePanel" Width="100%" meta:resourcekey="dragPanelResource1">
                <div id="dragMe2" class="dragMe card-head" style="cursor: move">
                    <div class="himsPopupWireBox">
                        <div class="himsBoxHeadermain">
                            <div>
                            </div>
                        </div>
                        <div class="himsBoxTopper headerFont">
                            <div class="fLeft headerText">
                                <asp:UpdatePanel ID="UpdatePanel1" runat="server" RenderMode="Inline">
                                    <ContentTemplate>
                                        <header>
                                            <asp:Label ID="Label2" runat="server" meta:resourcekey="DialogHeaderLabelResource1" Text="Upload Files in Forms"></asp:Label>
                                        </header>
                                        <span class="pull-right">
                                            <asp:ImageButton ID="ImageButton1" runat="server" Height="20PX" Width="20PX" ImageUrl="~/Images/closebox.png" OnClick="ImageButton1_Click" />
                                        </span>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </div>
                        </div>
                    </div>
                </div>
            </asp:Panel>

            <asp:UpdatePanel ID="UpdatePanelFileUpload" runat="server" UpdateMode="Always">
                <Triggers>
                    <asp:PostBackTrigger ControlID="ButtonUpload" />
                </Triggers>
                <ContentTemplate>
                    <div id="bodyContainerFile" class="card-body">
                        <div class="himsPopupWireBox">
                            <div class="himsBoxHeadermain">
                                <div>
                                </div>
                            </div>
                            <uc1:MessageControl ID="MessageControlFile" runat="server" Visible="false" />
                            <div class="himsBoxContentmain" style="overflow: hidden">
                                <div id="divContentPage2">
                                    <div>
                                        <div class="himssuHeader5WireBox">
                                            <div class="himsBoxHeader">
                                                <asp:Panel ID="Panel1" runat="server" meta:resourcekey="TopPanelResource1">
                                                    <div class="leftdiv">
                                                    </div>
                                                    <div class="himsBoxTitle">
                                                    </div>
                                                </asp:Panel>
                                            </div>
                                            <div class="himsBoxContent">
                                                <asp:Panel ID="Panel4" runat="server" meta:resourcekey="DetailPanelResource1">
                                                    <div class="contentHolder">
                                                        <asp:Panel ID="Panel5" runat="server" meta:resourcekey="SearchCriteriaPanelResource1">
                                                            <table style="margin-left: 9px; width: 98%;">
                                                                <tr>
                                                                    <td class="ModalTd">
                                                                        <asp:Label ID="Label3" runat="server" Text="Select File" SkinID="MandatoryLabel"></asp:Label>
                                                                    </td>
                                                                    <td class="td-inner">
                                                                        <asp:FileUpload ID="FileUploadFile" runat="server" AllowMultiple="true" />
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td class="ModalTd">
                                                                        <asp:Label ID="Label4" runat="server" Text="Description"></asp:Label>
                                                                    </td>
                                                                    <td class="td-inner">
                                                                        <asp:TextBox ID="TextBoxDescriptionFile" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" TextMode="MultiLine" SkinID="CustomWidthTextBox" Width="50%" Height="50PX" runat="Server" MaxLength="100"></asp:TextBox>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td class="ModalTd">
                                                                        <asp:Label ID="Label5" runat="server" Text="Accessible To"></asp:Label>
                                                                    </td>
                                                                    <td class="td-inner">
                                                                        <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal" onclick="GetRadioButtonList1();">
                                                                            <asp:ListItem Value="1" Selected="True">Only Me </asp:ListItem>
                                                                            <asp:ListItem Value="2">Selected</asp:ListItem>
                                                                            <asp:ListItem Value="3">All</asp:ListItem>
                                                                        </asp:RadioButtonList>
                                                                        <div id="DivCheckBoxList6" runat="server" class="fLeft pRight5 chckbox-list" style="display: none; visibility: hidden;">
                                                                            <asp:CheckBoxList ID="CheckBoxList6"  RepeatDirection="Vertical" RepeatColumns="3" runat="server">
                                                                            </asp:CheckBoxList>
                                                                        </div>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td class="ModalTd">
                                                                        <asp:Label ID="Label6" runat="server" Text="View Access"></asp:Label>
                                                                    </td>
                                                                    <td class="td-inner">
                                                                        <asp:RadioButtonList ID="RadioButtonList2" runat="server" RepeatDirection="Horizontal" onclick="GetRadioButtonList2();">
                                                                            <asp:ListItem Value="1" Selected="True">Only Me </asp:ListItem>
                                                                            <asp:ListItem Value="2">Selected</asp:ListItem>
                                                                            <asp:ListItem Value="3">All</asp:ListItem>
                                                                        </asp:RadioButtonList>
                                                                        <div id="DivCheckBoxList7" runat="server" class="fLeft pRight5 chckbox-list" style="display: none; visibility: hidden;">
                                                                            <asp:CheckBoxList ID="CheckBoxList7"  RepeatDirection="Vertical" RepeatColumns="3" runat="server">
                                                                            </asp:CheckBoxList>
                                                                        </div>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td class="ModalTd">
                                                                        <asp:Label ID="Label8" runat="server" Text="Edit Access"></asp:Label>
                                                                    </td>
                                                                    <td class="td-inner">
                                                                        <asp:RadioButtonList ID="RadioButtonList4" runat="server" RepeatDirection="Horizontal" onclick="GetRadioButtonList3();">
                                                                            <asp:ListItem Value="1" Selected="True">Only Me </asp:ListItem>
                                                                            <asp:ListItem Value="2">Selected</asp:ListItem>
                                                                            <asp:ListItem Value="3">All</asp:ListItem>
                                                                        </asp:RadioButtonList>
                                                                        <div id="DivCheckBoxList8" runat="server" class="fLeft pRight5 chckbox-list" style="display: none; visibility: hidden;">
                                                                            <asp:CheckBoxList ID="CheckBoxList8"  RepeatDirection="Vertical" RepeatColumns="3" runat="server">
                                                                            </asp:CheckBoxList>
                                                                        </div>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td class="ModalTd">
                                                                        <asp:Label ID="Label9" runat="server" Text="Delete Access"></asp:Label>
                                                                    </td>
                                                                    <td class="td-inner">
                                                                        <asp:RadioButtonList ID="RadioButtonList5" runat="server" RepeatDirection="Horizontal" onclick="GetRadioButtonList4();">
                                                                            <asp:ListItem Value="1" Selected="True">Only Me </asp:ListItem>
                                                                            <asp:ListItem Value="2">Selected</asp:ListItem>
                                                                            <asp:ListItem Value="3">All</asp:ListItem>
                                                                        </asp:RadioButtonList>
                                                                        <div id="DivCheckBoxList9" runat="server" class="fLeft pRight5 chckbox-list" style="display: none; visibility: hidden;">
                                                                            <asp:CheckBoxList ID="CheckBoxList9"  RepeatDirection="Vertical" RepeatColumns="3" runat="server">
                                                                            </asp:CheckBoxList>
                                                                        </div>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                            <div class="cBoth">
                                                            </div>
                                                        </asp:Panel>

                                                    </div>
                                                </asp:Panel>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="himsmainBoxBottom pTop15 pb15 text-center">
                                <asp:Button runat="server" ID="ButtonUpload" Text="&#xf093; Upload" SkinID="0" CssClass="fas btn btn-upload" meta:resourcekey="OkButtonResource1" OnClick="ButtonUpload_Click" OnClientClick="return validationForUpload();" />

                                <asp:Button ID="ButtonCloseFile" runat="server" CssClass="fas btn btn-cancel" meta:resourcekey="CancelButtonResource1" SkinID="0" Text="&#xf00d; Cancel" OnClick="ButtonCloseFile_Click" />

                            </div>

                        </div>
                    </div>
                    <asp:UpdateProgress ID="UpdateProgressFile" runat="server" DisplayAfter="200">
                        <ProgressTemplate>
                            <div style="position: absolute; top: 50%; left: 45%; font-size: 20px">
                                <asp:Image ID="LoadingImage5" runat="server" ImageUrl="~/Images/Loading.gif"
                                    meta:resourcekey="Image3Resource1" />
                            </div>
                        </ProgressTemplate>
                    </asp:UpdateProgress>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
    </asp:Panel>


    <cc1:ModalPopupExtender ID="ModalPopupFileDownload" runat="server" TargetControlID="LinkButton2" PopupControlID="Panel6" BackgroundCssClass="modalBackground"
        Drag="True" PopupDragHandleControlID="Panel7" Enabled="True" />
    <asp:LinkButton runat="server" ID="LinkButton2" meta:resourcekey="HidenButtonResource1" />
    <asp:Panel ID="Panel6" runat="server" CssClass="dragControl" Width="700px" DefaultButton="HidenButton" meta:resourcekey="ModalPopUpPanelResource1">
        <div class="messagebox card card-box">
            <asp:Panel ID="Panel7" runat="server" CssClass="dragMePanel" Width="100%" meta:resourcekey="dragPanelResource1">
                <div id="dragMe3" class="dragMe card-head" style="cursor: move">
                    <div class="himsPopupWireBox">

                        <div class="himsBoxTopper headerFont">
                            <div class="fLeft headerText">
                                <asp:UpdatePanel ID="UpdatePanel2" runat="server" RenderMode="Inline">
                                    <ContentTemplate>
                                        <header>
                                            <asp:Label ID="Label7" runat="server" meta:resourcekey="DialogHeaderLabelResource1" Text="Document Details"></asp:Label>
                                        </header>
                                        <span class="pull-right">
                                            <asp:ImageButton ID="ImageButton2" runat="server" Height="20PX" Width="20PX" ImageUrl="~/Images/closebox.png" OnClick="ImageButton2_Click" />
                                        </span>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </div>
                        </div>
                    </div>
                </div>
            </asp:Panel>

            <asp:UpdatePanel ID="UpdatePanel4" runat="server" UpdateMode="Always">
                <Triggers>
                    <asp:PostBackTrigger ControlID="ButtonDownload" />
                </Triggers>
                <ContentTemplate>

                    <div id="bodyContainerFile1" class="card-body">
                        <div class="himsPopupWireBox">

                            <uc1:MessageControl ID="MessageControlFileDownload" runat="server" Visible="false" />
                            <div class="himsBoxContentmain" style="overflow: hidden">
                                <div id="divContentPage3">

                                    <div>
                                        <div class="himssuHeader5WireBox">
                                            <div class="himsBoxHeader">
                                                <asp:Panel ID="Panel8" runat="server" meta:resourcekey="TopPanelResource1">
                                                </asp:Panel>
                                            </div>
                                            <div class="himsBoxContent">
                                                <asp:Panel ID="Panel9" runat="server" meta:resourcekey="DetailPanelResource1">
                                                    <div class="contentHolder col-md-12">
                                                        <asp:Panel ID="Panel10" runat="server" meta:resourcekey="SearchCriteriaPanelResource1">
                                                            <table>
                                                                <tr>
                                                                    <td class="ModalTd">Title 
                                                                    </td>
                                                                    <td class="td-inner">
                                                                        <asp:Label ID="LabelDocumentTitle" runat="server"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td class="ModalTd">Description 
                                                                    </td>
                                                                    <td class="td-inner">
                                                                        <asp:Label ID="LabelDocumentDescription" runat="server"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td class="ModalTd">Parent Folder 
                                                                    </td>
                                                                    <td class="td-inner">
                                                                        <asp:Label ID="LabelDocumentParentFolder" runat="server"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td class="ModalTd">File Size  
                                                                    </td>
                                                                    <td class="td-inner">
                                                                        <asp:Label ID="LabelDocumentFileSize" runat="server"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td class="ModalTd">Versions  
                                                                    </td>
                                                                    <td class="td-inner">
                                                                        <asp:Label ID="LabelDocumentVersions" runat="server"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td class="ModalTd">Uploaded By 
                                                                    </td>
                                                                    <td class="td-inner">
                                                                        <asp:Label ID="LabelDocumentUploadedBy" runat="server"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td class="ModalTd">Created on 
                                                                    </td>
                                                                    <td class="td-inner">
                                                                        <asp:Label ID="LabelDocumentCreatedon" runat="server"></asp:Label>
                                                                    </td>
                                                                </tr>

                                                            </table>
                                                        </asp:Panel>
                                                    </div>
                                                </asp:Panel>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="himsmainBoxBottom col-md-12 text-center pTop15 pb15">

                                <asp:Button runat="server" ID="ButtonDownload" Text="&#xf019; Download" SkinID="0" CssClass="fas btn btn-download" meta:resourcekey="OkButtonResource1" OnClick="ButtonDownload_Click" />

                                <asp:Button ID="ButtonCloseDownload" runat="server" CssClass="fas btn btn-close" meta:resourcekey="CancelButtonResource1" SkinID="0" Text="&#xf00d; Close" OnClick="ButtonCloseDownload_Click" />

                            </div>
                            <div class="himsmainBoxFooter">
                                <div>
                                    <table>
                                        <tr>
                                            <td>&nbsp
                                            </td>
                                        </tr>

                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>

                </ContentTemplate>
            </asp:UpdatePanel>

        </div>

    </asp:Panel>











    <script type="text/javascript">
        function GetRadioButtonList1() {
            var list = document.getElementById("<% =RadioButtonList1.ClientID %>");
            var rdbtnLstValues = list.getElementsByTagName("input");
            var Checkdvalue;
            var RadioButtonList1 = 0;
            for (var i = 0; i < rdbtnLstValues.length; i++) {
                if (rdbtnLstValues[i].type = "radio") {
                    if (rdbtnLstValues[i].checked) {
                        Checkdvalue = rdbtnLstValues[i]; break;
                    }
                }
            }
            RadioButtonList1 = Number(Checkdvalue.value);

            var DivCheckBoxList6 = document.getElementById("ctl00_CP_DivCheckBoxList6");
            var DivMessage = document.getElementById("ctl00_CP_MessageControlFile_divMessageType");
            if (DivMessage) {
                DivMessage.style.display = "none";
                DivMessage.style.visibility = "hidden";
            }



            if (RadioButtonList1 == 2) {
                DivCheckBoxList6.style.display = "";
                DivCheckBoxList6.style.visibility = "visible";
            }
            else {
                DivCheckBoxList6.style.display = "none";
                DivCheckBoxList6.style.visibility = "hidden";
            }


            var DivCheckBoxList7 = document.getElementById("ctl00_CP_DivCheckBoxList7");
            var DivCheckBoxList8 = document.getElementById("ctl00_CP_DivCheckBoxList8");
            var DivCheckBoxList9 = document.getElementById("ctl00_CP_DivCheckBoxList9");


            DivCheckBoxList7.style.display = "none";
            DivCheckBoxList7.style.visibility = "hidden";
            DivCheckBoxList8.style.display = "none";
            DivCheckBoxList8.style.visibility = "hidden";
            DivCheckBoxList9.style.display = "none";
            DivCheckBoxList9.style.visibility = "hidden";



        }

        function GetRadioButtonList2() {
            var list = document.getElementById("<% =RadioButtonList2.ClientID %>");
            var rdbtnLstValues = list.getElementsByTagName("input");
            var Checkdvalue;
            var RadioButtonList2 = 0;
            for (var i = 0; i < rdbtnLstValues.length; i++) {
                if (rdbtnLstValues[i].type = "radio") {
                    if (rdbtnLstValues[i].checked) {
                        Checkdvalue = rdbtnLstValues[i]; break;
                    }
                }
            }
            RadioButtonList2 = Number(Checkdvalue.value);

            var DivCheckBoxList7 = document.getElementById("ctl00_CP_DivCheckBoxList7");
            var DivMessage = document.getElementById("ctl00_CP_MessageControlFile_divMessageType");
            if (DivMessage) {
                DivMessage.style.display = "none";
                DivMessage.style.visibility = "hidden";
            }
            if (RadioButtonList2 == 2) {
                DivCheckBoxList7.style.display = "";
                DivCheckBoxList7.style.visibility = "visible";
            }
            else {
                DivCheckBoxList7.style.display = "none";
                DivCheckBoxList7.style.visibility = "hidden";
            }
            var DivCheckBoxList6 = document.getElementById("ctl00_CP_DivCheckBoxList6");

            var DivCheckBoxList8 = document.getElementById("ctl00_CP_DivCheckBoxList8");
            var DivCheckBoxList9 = document.getElementById("ctl00_CP_DivCheckBoxList9");

            DivCheckBoxList6.style.display = "none";
            DivCheckBoxList6.style.visibility = "hidden";

            DivCheckBoxList8.style.display = "none";
            DivCheckBoxList8.style.visibility = "hidden";
            DivCheckBoxList9.style.display = "none";
            DivCheckBoxList9.style.visibility = "hidden";
        }





        function GetRadioButtonList3() {
            var list = document.getElementById("<% =RadioButtonList4.ClientID %>");
            var rdbtnLstValues = list.getElementsByTagName("input");
            var Checkdvalue;
            var RadioButtonList4 = 0;
            for (var i = 0; i < rdbtnLstValues.length; i++) {
                if (rdbtnLstValues[i].type = "radio") {
                    if (rdbtnLstValues[i].checked) {
                        Checkdvalue = rdbtnLstValues[i]; break;
                    }
                }
            }
            RadioButtonList4 = Number(Checkdvalue.value);

            var DivCheckBoxList8 = document.getElementById("ctl00_CP_DivCheckBoxList8");
            var DivMessage = document.getElementById("ctl00_CP_MessageControlFile_divMessageType");
            if (DivMessage) {
                DivMessage.style.display = "none";
                DivMessage.style.visibility = "hidden";
            }
            if (RadioButtonList4 == 2) {
                DivCheckBoxList8.style.display = "";
                DivCheckBoxList8.style.visibility = "visible";
            }
            else {
                DivCheckBoxList8.style.display = "none";
                DivCheckBoxList8.style.visibility = "hidden";
            }
            var DivCheckBoxList6 = document.getElementById("ctl00_CP_DivCheckBoxList6");
            var DivCheckBoxList7 = document.getElementById("ctl00_CP_DivCheckBoxList7");

            var DivCheckBoxList9 = document.getElementById("ctl00_CP_DivCheckBoxList9");

            DivCheckBoxList6.style.display = "none";
            DivCheckBoxList6.style.visibility = "hidden";
            DivCheckBoxList7.style.display = "none";
            DivCheckBoxList7.style.visibility = "hidden";

            DivCheckBoxList9.style.display = "none";
            DivCheckBoxList9.style.visibility = "hidden";
        }





        function GetRadioButtonList4() {
            var list = document.getElementById("<% =RadioButtonList5.ClientID %>");
            var rdbtnLstValues = list.getElementsByTagName("input");
            var Checkdvalue;
            var RadioButtonList5 = 0;
            for (var i = 0; i < rdbtnLstValues.length; i++) {
                if (rdbtnLstValues[i].type = "radio") {
                    if (rdbtnLstValues[i].checked) {
                        Checkdvalue = rdbtnLstValues[i]; break;
                    }
                }
            }
            RadioButtonList5 = Number(Checkdvalue.value);

            var DivCheckBoxList9 = document.getElementById("ctl00_CP_DivCheckBoxList9");
            var DivMessage = document.getElementById("ctl00_CP_MessageControlFile_divMessageType");
            if (DivMessage) {
                DivMessage.style.display = "none";
                DivMessage.style.visibility = "hidden";
            }
            if (RadioButtonList5 == 2) {
                DivCheckBoxList9.style.display = "";
                DivCheckBoxList9.style.visibility = "visible";
            }
            else {
                DivCheckBoxList9.style.display = "none";
                DivCheckBoxList9.style.visibility = "hidden";
            }

            var DivCheckBoxList6 = document.getElementById("ctl00_CP_DivCheckBoxList6");
            var DivCheckBoxList7 = document.getElementById("ctl00_CP_DivCheckBoxList7");
            var DivCheckBoxList8 = document.getElementById("ctl00_CP_DivCheckBoxList8");


            DivCheckBoxList6.style.display = "none";
            DivCheckBoxList6.style.visibility = "hidden";
            DivCheckBoxList7.style.display = "none";
            DivCheckBoxList7.style.visibility = "hidden";
            DivCheckBoxList8.style.display = "none";
            DivCheckBoxList8.style.visibility = "hidden";


        }

        function isAlphaNumeric(e) { // Alphanumeric only
            var k;
            document.all ? k = e.keycode : k = e.which;
            return (k != 47 && k != 92 && k != 58 && k != 42 && k != 63 && k != 34 && k != 60 && k != 62 && k != 124);
        }



    </script>

    <script type="text/javascript">
        function Check_Click(objRef) {
            var row = objRef.parentNode.parentNode;
            var GridView = objRef.closest('table');
            var inputList = GridView.getElementsByTagName("input");
            for (var i = 0; i < inputList.length; i++) {
                var headerCheckBox = inputList[0];
                var checked = true;
                if (inputList[i].type == "checkbox" && inputList[i] != headerCheckBox) {
                    if (!inputList[i].checked) { checked = false; break; }
                }
            }
            headerCheckBox.checked = checked;

        }

        function checkAll(objRef) {
            var GridView = objRef.closest('table');
            var inputList = GridView.getElementsByTagName("input");
            for (var i = 0; i < inputList.length; i++) {
                var row = inputList[i].parentNode.parentNode;
                if (inputList[i].type == "checkbox" && objRef != inputList[i]) {
                    if (objRef.checked) {
                        if (!inputList[i].disabled) {
                            inputList[i].checked = true;
                        }
                    }
                    else {
                        inputList[i].checked = false;
                    }
                }
            }
        }
    </script>
    <script type="text/javascript">

        function validationForUpload() {
            var list1 = document.getElementById("<% =RadioButtonList1.ClientID %>");
            var list2 = document.getElementById("<% =RadioButtonList2.ClientID %>");
            var list3 = document.getElementById("<% =RadioButtonList4.ClientID %>");
            var list4 = document.getElementById("<% =RadioButtonList5.ClientID %>");

            var rdbtnLstValues1 = list1.getElementsByTagName("input");
            var rdbtnLstValues2 = list2.getElementsByTagName("input");
            var rdbtnLstValues3 = list3.getElementsByTagName("input");
            var rdbtnLstValues4 = list4.getElementsByTagName("input");



            var Checkdvalue1, Checkdvalue2, Checkdvalue3, Checkdvalue4; RadioButtonList1 = 0, RadioButtonList2 = 0, RadioButtonList3 = 0, RadioButtonList4 = 0, counter1 = 0, counter2 = 0, counter3 = 0, counter4 = 0;


            for (var i = 0; i < rdbtnLstValues1.length; i++) { if (rdbtnLstValues1[i].type = "radio") { if (rdbtnLstValues1[i].checked) { Checkdvalue1 = rdbtnLstValues1[i]; break; } } } RadioButtonList1 = Number(Checkdvalue1.value);
            for (var i = 0; i < rdbtnLstValues2.length; i++) { if (rdbtnLstValues2[i].type = "radio") { if (rdbtnLstValues2[i].checked) { Checkdvalue2 = rdbtnLstValues2[i]; break; } } } RadioButtonList2 = Number(Checkdvalue2.value);
            for (var i = 0; i < rdbtnLstValues3.length; i++) { if (rdbtnLstValues3[i].type = "radio") { if (rdbtnLstValues3[i].checked) { Checkdvalue3 = rdbtnLstValues3[i]; break; } } } RadioButtonList3 = Number(Checkdvalue3.value);
            for (var i = 0; i < rdbtnLstValues4.length; i++) { if (rdbtnLstValues4[i].type = "radio") { if (rdbtnLstValues4[i].checked) { Checkdvalue4 = rdbtnLstValues4[i]; break; } } } RadioButtonList4 = Number(Checkdvalue4.value);

            if (RadioButtonList1 == 2) {
                var TableRow = document.getElementById('ctl00_CP_CheckBoxList6'); checkBoxList = TableRow.getElementsByTagName('input');
                for (var i = 0; i < checkBoxList.length; i++) { var CheckBox = checkBoxList[i]; if (CheckBox.checked) { counter1 = counter1 + 1; } }
                if (counter1 == 0) { alert('Select Atlist One Role for Accessible To.!'); return false; }
            }
            if (RadioButtonList2 == 2) {
                var TableRow = document.getElementById('ctl00_CP_CheckBoxList7'); checkBoxList = TableRow.getElementsByTagName('input');
                for (var i = 0; i < checkBoxList.length; i++) { var CheckBox = checkBoxList[i]; if (CheckBox.checked) { counter2 = counter2 + 1; } }
                if (counter2 == 0) { alert('Select Atlist One Role for View Access.!'); return false; }
            }
            if (RadioButtonList3 == 2) {
                var TableRow = document.getElementById('ctl00_CP_CheckBoxList8'); checkBoxList = TableRow.getElementsByTagName('input');
                for (var i = 0; i < checkBoxList.length; i++) { var CheckBox = checkBoxList[i]; if (CheckBox.checked) { counter3 = counter3 + 1; } }
                if (counter3 == 0) { alert('Select Atlist One Role for Edit Access.!'); return false; }
            }
            if (RadioButtonList4 == 2) {
                var TableRow = document.getElementById('ctl00_CP_CheckBoxList9'); checkBoxList = TableRow.getElementsByTagName('input');
                for (var i = 0; i < checkBoxList.length; i++) { var CheckBox = checkBoxList[i]; if (CheckBox.checked) { counter4 = counter4 + 1; } }
                if (counter4 == 0) { alert('Select Atlist One Role for Delete Access.!'); return false; }
            }

            return true;
        }

    </script>
    <%--<script data-main="../../../JavaScript/rjs/encrypt/payrollyear-master-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/assign-organization" )%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js" )%>'></script>  
</asp:Content>

