<%@ page title="" language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="PCC_DC_ManageOrg, MachSol.MachPanel.Web" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/PCC/DC/CC/ADUsers.ascx" TagName="ADUsers" TagPrefix="UC" %>
<%@ Register Src="~/PCC/DC/CC/ADUserManageCert.ascx" TagName="UserCerts" TagPrefix="UC" %>
<%@ Register Src="~/PCC/DC/CC/PasswordPolicies.ascx" TagName="PasswordPolicies" TagPrefix="UC" %>
<%@ Register Src="~/RCC/Exchange/CC/GroupActions.ascx" TagName="GroupActions" TagPrefix="UC" %>
<%@ Register Src="~/PCC/DC/CC/SG.ascx" TagName="SG" TagPrefix="EM" %>
<%@ Register Src="~/PCC/DC/CC/IAMRole.ascx" TagName="IAMRole" TagPrefix="UC" %>
<%@ Register Src="~/RCC/Exchange/CC/Contacts.ascx" TagName="Contacts" TagPrefix="EM" %>
<%@ Register Assembly="GroupRadioButton" Namespace="Vladsm.Web.UI.WebControls" TagPrefix="EM" %>
<%@ Register TagPrefix="cc1" Namespace="System.Web.UI" Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" %>
<asp:Content ID="Content4" ContentPlaceHolderID="CPH_Content" runat="Server">

    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h2>
                    <asp:Literal ID="Ltl_OrgInfo" runat="server" /></h2>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-xs-12">
                        <asp:Button ID="Btn_RefreshTab" CssClass="RefreshTab" runat="server" Style="display: none;" />
                        <EM:TabContainer ID="TC_ManageOrg" runat="server" OnClientActiveTabChanged="loadTabPanel" ActiveTabIndex="0">
                            <EM:TabPanel ID="Tab_General" runat="server" HeaderText="<%$ Resources:Content,GN00001466%>">
                                <ContentTemplate>
                                    <asp:Button ID="Btn_Tab0" runat="server" Style="display: none;" />
                                    <asp:Panel ID="Pnl_TabContent0" runat="server">

                                        <asp:Panel ID="Pnl_GeneralInformation" runat="server">
                                            <%-- Operations --%>
                                            <div class="row Div_OpsRow" id="Tbl_Ops" runat="server">
                                                <div class="col-xs-12">
                                                    <div class="card">
                                                        <div class="header">
                                                            <h3>
                                                                <%= Resources.Content.GN00001320%>      <%--Operations--%>
                                                            </h3>
                                                        </div>
                                                        <div class="body">
                                                            <asp:Button ID="Btn_EditOrganization" runat="server" CssClass="btn btn-primary waves-effect" Text='<%$ Resources:Content,EditOrganization%>' />
                                                            <%--<asp:Button ID="Btn_CancelSubscription" runat="server" CssClass="btn btn-primary waves-effect" Text='<%$ Resources:Content,SPT002010%>' />--%>
                                                            <asp:Button ID="Btn_EnableADSync" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content,AD124%>' />
                                                            <asp:Button ID="Btn_DisableADSync" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content,AD123%>' />


                                                            <asp:Button ID="Btn_SyncFromBackend" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content,USM0163%>' />
                                                            <EM:ConfirmButtonExtender ID="CBE_Sync" ConfirmText="<%$ Resources:Content,SyncOrgNote%>" TargetControlID="Btn_SyncFromBackend" runat="server">
                                                            </EM:ConfirmButtonExtender>

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


                                            <div class="row">
                                                <!-- General Information -->
                                                <div class="col-xs-12 col-sm-7">
                                                    <div class="row">
                                                        <div class="col-xs-12">
                                                            <div class="card" id="Div_GeneralInfo" runat="server">
                                                                <div class="header">
                                                                    <h2>
                                                                        <asp:Label ID="Label12" runat="server" Text='<%$Resources:Content, GN000183 %>' /></h2>
                                                                </div>
                                                                <div class="body">

                                                                    <div class="row">
                                                                        <div class="col-md-4 col-xs-12 row-label">
                                                                            <asp:Literal ID="Literal10" runat="server" Text="<%$ Resources:Content,String61%>"
                                                                                EnableViewState="false" />:
                                                                        </div>
                                                                        <div class="col-md-8 col-xs-12" id="Td_SubId" runat="server">
                                                                            <asp:HyperLink ID="LB_SubscriptionID" runat="server"></asp:HyperLink>
                                                                        </div>
                                                                    </div>

                                                                    <div class="row" id="Tr_CustomerInfo" runat="server">
                                                                        <div class="col-md-4 col-xs-12 row-label">
                                                                            <asp:Literal ID="Literal12" runat="server" Text="<%$ Resources:Content,GN0000850%>"
                                                                                EnableViewState="false" />:
                                                                        </div>
                                                                        <div class="col-md-8 col-xs-12">
                                                                            <asp:HyperLink ID="LB_Account" runat="server"></asp:HyperLink>
                                                                        </div>
                                                                    </div>
                                                                    <div class="row" id="Div_SubResellerInfo" runat="server" visible="false">
                                                                        <div class="col-sm-4 col-xs-12 row-label">
                                                                            <asp:Literal ID="Literal14" runat="server" Text="<%$ Resources:Content,strSubReseller%>"
                                                                                EnableViewState="false" />:
                                                                        </div>
                                                                        <div class="col-sm-8 col-xs-12">
                                                                            <asp:LinkButton ID="LB_SubResellerInfo" runat="server"></asp:LinkButton>
                                                                            <EM:ConfirmButtonExtender ID="CBE_LB_SubResellerInfo" ConfirmText="<%$ Resources:Content,LoginAsSubReseller%>" TargetControlID="LB_SubResellerInfo" runat="server">
                                                                            </EM:ConfirmButtonExtender>
                                                                        </div>
                                                                    </div>
                                                                    <div class="row">
                                                                        <div class="col-md-4 col-xs-12 row-label">
                                                                            <asp:Literal ID="Literal19" runat="server" Text="<%$ Resources:Content,GN000135 %>"
                                                                                EnableViewState="false" />:
                                                                        </div>
                                                                        <div class="col-md-8 col-xs-12" id="Td_ServiceType" runat="server">
                                                                        </div>
                                                                    </div>
                                                                    <div class="row">
                                                                        <div class="col-md-4 col-xs-12 row-label">
                                                                            <asp:Literal ID="Literal20" runat="server" Text="<%$ Resources:Content,GN000141%>"
                                                                                EnableViewState="false" />:
                                                                        </div>
                                                                        <div class="col-md-8 col-xs-12" id="Td_Package" runat="server">
                                                                        </div>
                                                                    </div>
                                                                    <div class="row">
                                                                        <div class="col-md-4 col-xs-12 row-label">
                                                                            <asp:Literal ID="Literal37" runat="server" Text='<%$ Resources:Content,GN0000104%>' />:
                                                                        </div>
                                                                        <div class="col-md-8 col-xs-12">
                                                                            <div class="grow">
                                                                                <div runat="server" id="Td_PackageComments"></div>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class="row">
                                                                        <div class="col-md-4 col-xs-12 row-label">
                                                                            <asp:Literal ID="Literal36" runat="server" Text="<%$ Resources:Content,GN00001474%>"
                                                                                EnableViewState="false" />:
                                                                        </div>
                                                                        <div class="col-md-8 col-xs-12" id="Td_SignUpDate" runat="server">
                                                                        </div>
                                                                    </div>
                                                                    <div class="row" id="TR_LastRenewal" runat="server">
                                                                        <div class="col-md-4 col-xs-12 row-label">
                                                                            <asp:Literal ID="Literal50" runat="server" Text="<%$ Resources:Content,GN000136%>"
                                                                                EnableViewState="false" />:
                                                                        </div>
                                                                        <div class="col-md-8 col-xs-12" id="Td_LastRenewal" runat="server">
                                                                        </div>
                                                                    </div>
                                                                    <div class="row" id="TR_NextRenewal" runat="server">
                                                                        <div class="col-md-4 col-xs-12 row-label">
                                                                            <asp:Literal ID="Literal51" runat="server" Text="<%$ Resources:Content,GN000137%>"
                                                                                EnableViewState="false" />:
                                                                        </div>
                                                                        <div class="col-md-8 col-xs-12" id="Td_NextRenewal" runat="server">
                                                                        </div>
                                                                    </div>
                                                                    <div class="row">
                                                                        <div class="col-md-4 col-xs-12 row-label">
                                                                            <asp:Literal ID="Literal52" runat="server" Text="<%$ Resources:Content,String385%>"
                                                                                EnableViewState="false" />:
                                                                        </div>
                                                                        <div class="col-md-8 col-xs-12">
                                                                            <asp:Label ID="lbl_Status" runat="server" data-toggle="tooltip" data-placement="top" title="" data-original-title="" />
                                                                        </div>
                                                                    </div>
                                                                    <div class="row" id="Tr_Org" runat="server" visible="false">
                                                                        <div class="col-md-4 col-xs-12 row-label">
                                                                            <asp:Literal ID="Literal53" runat="server" Text="<%$ Resources:Content,DGN1110608%>"
                                                                                EnableViewState="false" />:
                                                                        </div>
                                                                        <div class="col-md-8 col-xs-12" runat="server" id="Td_OrgName">
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-xs-12">
                                                            <div class="card">
                                                                <div class="header">
                                                                    <h2>
                                                                        <asp:Label ID="Label2" runat="server" Text='<%$Resources:Content, strOrganization %>' /></h2>
                                                                </div>
                                                                <div class="body">

                                                                    <div class="row" id="Tr_GUID" runat="server">
                                                                        <div class="col-sm-5 col-xs-12 row-label">
                                                                            <asp:Literal ID="Literal8" runat="server" Text='<%$Resources:Content, USM0198 %>' EnableViewState="False">
                                                                            </asp:Literal>:
                                                                        </div>
                                                                        <div class="col-sm-6 col-xs-12">
                                                                            <asp:Label ID="Lbl_OrgGUID" runat="server"></asp:Label>
                                                                        </div>
                                                                    </div>
                                                                    <div class="row">
                                                                        <div class="col-sm-5 col-xs-12 row-label">
                                                                            *<asp:Literal ID="Literal7" runat="server" Text='<%$Resources:Content, DGN1110608 %>' EnableViewState="False">
                                                                            </asp:Literal>:
                                                                        </div>
                                                                        <div class="col-sm-6 col-xs-12">
                                                                            <asp:Label ID="Lbl_OUName" runat="server"></asp:Label>
                                                                        </div>
                                                                    </div>
                                                                    <div class="row">
                                                                        <div class="col-sm-5 col-xs-12 row-label">
                                                                            *<asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Content,GN000125%>"
                                                                                EnableViewState="false" />:
                                                                        </div>
                                                                        <div class="col-sm-6 col-xs-12">
                                                                            <asp:Label ID="Lbl_Domains" runat="server"></asp:Label>
                                                                        </div>
                                                                    </div>
                                                                    <div class="row">
                                                                        <div class="col-sm-5 col-xs-12 row-label">

                                                                            <asp:Literal ID="Literal13" runat="server" Text="<%$ Resources:Content,GN00001493%>"
                                                                                EnableViewState="false"></asp:Literal>:
                                                                        </div>
                                                                        <div class="col-sm-6 col-xs-12">
                                                                            <asp:Label ID="Lbl_Address" runat="server"></asp:Label>
                                                                        </div>

                                                                    </div>
                                                                    <div class="row">

                                                                        <div class="col-sm-5 col-xs-12 row-label">

                                                                            <asp:Literal ID="Literal15" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000880%>"></asp:Literal>:
                                                                        </div>
                                                                        <div class="col-sm-6 col-xs-12">
                                                                            <asp:Label ID="Lbl_City" runat="server"></asp:Label>
                                                                        </div>

                                                                    </div>
                                                                    <div class="row">
                                                                        <div class="col-sm-5 col-xs-12 row-label">

                                                                            <asp:Literal ID="Literal16" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DEV1130%>"></asp:Literal>:
                                                                        </div>
                                                                        <div class="col-sm-6 col-xs-12">
                                                                            <asp:Label ID="Lbl_State" runat="server"></asp:Label>
                                                                        </div>

                                                                    </div>
                                                                    <div class="row">
                                                                        <div class="col-sm-5 col-xs-12 row-label">

                                                                            <asp:Literal ID="Literal17" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001522%>"></asp:Literal>:
                                                                        </div>
                                                                        <div class="col-sm-6 col-xs-12">
                                                                            <asp:Label ID="Lbl_Zip" runat="server"></asp:Label>
                                                                        </div>
                                                                    </div>
                                                                    <div class="row">

                                                                        <div class="col-sm-5 col-xs-12 row-label">

                                                                            <asp:Literal ID="Literal18" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000882%>"></asp:Literal>:
                                                                        </div>
                                                                        <div class="col-sm-6 col-xs-12">
                                                                            <asp:Label ID="Lbl_Country" runat="server"></asp:Label>
                                                                        </div>

                                                                    </div>
                                                                    <div class="row">
                                                                        <div class="col-sm-5 col-xs-12 row-label">

                                                                            <asp:Literal ID="Literal3" runat="server" EnableViewState="False" Text='<%$Resources:Content, GN0000597 %>'>
                                                                            </asp:Literal>:
                                                                        </div>
                                                                        <div class="col-sm-6 col-xs-12">
                                                                            <asp:Label ID="Lbl_Description" runat="server"></asp:Label>
                                                                        </div>
                                                                    </div>
                                                                    <div class="row">
                                                                        <div class="col-sm-5 col-xs-12 row-label">

                                                                            <asp:Literal ID="Literal6" runat="server" EnableViewState="False" Text='<%$Resources:Content, AD125 %>'>
                                                                            </asp:Literal>:
                                                                        </div>
                                                                        <div class="col-sm-6 col-xs-12">
                                                                            <asp:Label ID="Lbl_ADSyncEnabled" runat="server"></asp:Label>
                                                                        </div>
                                                                    </div>
                                                                    <div class="row" id="trSelectTemplate" runat="server">

                                                                        <div class="col-sm-5 col-xs-12 row-label">

                                                                            <asp:Literal ID="Ltrl_SelectTemp" runat="server" Text="<%$ Resources:Content, strADSyncTemplate %>"></asp:Literal>:
                                                                        </div>
                                                                        <div class="col-sm-6 col-xs-12">
                                                                            <asp:Label ID="Lbl_ADSyncTemplate" runat="server"></asp:Label>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>

                                                <!-- Subscriptions -->
                                                <div class="col-xs-12 col-sm-5">
                                                    <div class="card">
                                                        <div class="header">
                                                            <h2>
                                                                <asp:Label ID="Label1" runat="server" Text='<%$Resources:Content, M0091 %>' /></h2>
                                                        </div>
                                                        <div class="body">
                                                            <div class="row" id="Div_ExchangeSubs" runat="server">
                                                                <div class="col-xs-12">

                                                                    <asp:Repeater ID="Rep_ExchOrgs" runat="server" OnItemDataBound="Rep_ExchOrgs_ItemDataBound">

                                                                        <ItemTemplate>
                                                                            <div class="row">
                                                                                <div class="col-xs-1">
                                                                                    <div class="icon">
                                                                                        <i class="material-icons icon-exchange col-exchange"></i>
                                                                                    </div>
                                                                                </div>
                                                                                <div class="col-xs-10">
                                                                                    <asp:HyperLink ID="LB_ExchOrgs" runat="server" />
                                                                                </div>
                                                                            </div>
                                                                        </ItemTemplate>
                                                                        <AlternatingItemTemplate>
                                                                            <div class="row">
                                                                                <div class="col-xs-1">
                                                                                    <div class="icon">
                                                                                        <i class="material-icons icon-exchange col-exchange"></i>
                                                                                    </div>
                                                                                </div>
                                                                                <div class="col-xs-10">
                                                                                    <asp:HyperLink ID="LB_ExchOrgs" runat="server" />
                                                                                </div>
                                                                            </div>
                                                                        </AlternatingItemTemplate>
                                                                    </asp:Repeater>

                                                                </div>
                                                            </div>
                                                            <div class="row" id="Div_O365Subs" runat="server">
                                                                <div class="col-xs-12">
                                                                    <asp:Repeater ID="Rep_O365Tenants" runat="server" OnItemDataBound="Rep_O365Tenants_ItemDataBound">
                                                                        <ItemTemplate>
                                                                            <div class="row">
                                                                                <div class="col-xs-1">
                                                                                    <div class="icon">
                                                                                        <i class="material-icons icon-o365 col-exchange"></i>
                                                                                    </div>
                                                                                </div>
                                                                                <div class="col-xs-10">
                                                                                    <asp:HyperLink ID="LB_O365Tenant" runat="server" />
                                                                                </div>
                                                                            </div>
                                                                        </ItemTemplate>
                                                                        <AlternatingItemTemplate>
                                                                            <div class="row">
                                                                                <div class="col-xs-1">
                                                                                    <div class="icon">
                                                                                        <i class="material-icons icon-o365 col-exchange"></i>
                                                                                    </div>
                                                                                </div>
                                                                                <div class="col-xs-10">
                                                                                    <asp:HyperLink ID="LB_O365Tenant" runat="server" />
                                                                                </div>
                                                                            </div>
                                                                        </AlternatingItemTemplate>
                                                                    </asp:Repeater>
                                                                </div>
                                                            </div>
                                                            <div class="row" id="Div_SharepointSubs" runat="server">
                                                                <div class="col-xs-12">


                                                                    <asp:Repeater ID="Rep_SPOrgs" runat="server" OnItemDataBound="Rep_SPOrgs_ItemDataBound">
                                                                        <ItemTemplate>
                                                                            <div class="row">
                                                                                <div class="col-xs-1">
                                                                                    <div class="icon">
                                                                                        <i class="material-icons icon-sharepoint col-exchange"></i>
                                                                                    </div>
                                                                                </div>
                                                                                <div class="col-xs-10">
                                                                                    <asp:HyperLink ID="LB_SPOrgs" runat="server" />
                                                                                </div>
                                                                            </div>
                                                                        </ItemTemplate>
                                                                        <AlternatingItemTemplate>
                                                                            <div class="row">
                                                                                <div class="col-xs-1">
                                                                                    <div class="icon">
                                                                                        <i class="material-icons icon-sharepoint col-exchange"></i>
                                                                                    </div>
                                                                                </div>
                                                                                <div class="col-xs-10">
                                                                                    <asp:HyperLink ID="LB_SPOrgs" runat="server" />
                                                                                </div>
                                                                            </div>
                                                                        </AlternatingItemTemplate>
                                                                    </asp:Repeater>


                                                                </div>
                                                            </div>
                                                            <div class="row" id="Div_CRMSubs" runat="server">
                                                                <div class="col-xs-12">

                                                                    <asp:Repeater ID="Rep_CRMOrgs" runat="server" OnItemDataBound="Rep_CRMOrgs_ItemDataBound">
                                                                        <ItemTemplate>
                                                                            <div class="row">
                                                                                <div class="col-xs-1">
                                                                                    <div class="icon">
                                                                                        <i class="material-icons icon-crm col-exchange"></i>
                                                                                    </div>
                                                                                </div>
                                                                                <div class="col-xs-10">
                                                                                    <asp:HyperLink ID="LB_CRMOrgs" runat="server" />
                                                                                </div>
                                                                            </div>
                                                                        </ItemTemplate>
                                                                        <AlternatingItemTemplate>
                                                                            <div class="row">
                                                                                <div class="col-xs-1">
                                                                                    <div class="icon">
                                                                                        <i class="material-icons icon-crm col-exchange"></i>
                                                                                    </div>
                                                                                </div>
                                                                                <div class="col-xs-10">
                                                                                    <asp:HyperLink ID="LB_CRMOrgs" runat="server" />
                                                                                </div>
                                                                            </div>
                                                                        </AlternatingItemTemplate>
                                                                    </asp:Repeater>

                                                                </div>
                                                            </div>
                                                            <div class="row" id="Div_SubsOCS" runat="server">
                                                                <div class="col-xs-12">

                                                                    <asp:Repeater ID="Rep_OCSOrgs" runat="server" OnItemDataBound="Rep_OCSOrgs_ItemDataBound">
                                                                        <ItemTemplate>
                                                                            <div class="row">
                                                                                <div class="col-xs-1">
                                                                                    <div class="icon">
                                                                                        <i class="material-icons icon-skype4b col-exchange"></i>
                                                                                    </div>
                                                                                </div>
                                                                                <div class="col-xs-10">
                                                                                    <asp:HyperLink ID="LB_OCSOrgs" runat="server" />
                                                                                </div>
                                                                            </div>
                                                                        </ItemTemplate>
                                                                        <AlternatingItemTemplate>
                                                                            <div class="row">
                                                                                <div class="col-xs-1">
                                                                                    <div class="icon">
                                                                                        <i class="material-icons icon-skype4b col-exchange"></i>
                                                                                    </div>
                                                                                </div>
                                                                                <div class="col-xs-10">
                                                                                    <asp:HyperLink ID="LB_OCSOrgs" runat="server" />
                                                                                </div>
                                                                            </div>
                                                                        </AlternatingItemTemplate>
                                                                    </asp:Repeater>

                                                                </div>
                                                            </div>
                                                            <div class="row" id="Div_SubsAD" runat="server">
                                                                <div class="col-xs-12">

                                                                    <asp:Repeater ID="Rep_ADOrgs" runat="server" OnItemDataBound="Rep_ADOrgs_ItemDataBound">
                                                                        <ItemTemplate>
                                                                            <div class="row">
                                                                                <div class="col-xs-1">
                                                                                    <div class="icon">
                                                                                        <i class="material-icons icon-active-directory col-exchange"></i>
                                                                                    </div>
                                                                                </div>
                                                                                <div class="col-xs-10">
                                                                                    <asp:HyperLink ID="LB_ADOrgs" runat="server" />
                                                                                </div>
                                                                            </div>
                                                                        </ItemTemplate>
                                                                        <AlternatingItemTemplate>
                                                                            <div class="row">
                                                                                <div class="col-xs-1">
                                                                                    <div class="icon">
                                                                                        <i class="material-icons icon-active-directory col-exchange"></i>
                                                                                    </div>
                                                                                </div>
                                                                                <div class="col-xs-10">
                                                                                    <asp:HyperLink ID="LB_ADOrgs" runat="server" />
                                                                                </div>
                                                                            </div>
                                                                        </AlternatingItemTemplate>
                                                                    </asp:Repeater>

                                                                </div>
                                                            </div>
                                                            <div class="row" id="Div_SubsWFH" runat="server">
                                                                <div class="col-xs-12">

                                                                    <asp:Repeater ID="Rep_WFHOrgs" runat="server" OnItemDataBound="Rep_WFHOrgs_ItemDataBound">
                                                                        <ItemTemplate>
                                                                            <div class="row">
                                                                                <div class="col-xs-1">
                                                                                    <div class="icon">
                                                                                        <i class="material-icons icon-work-folder col-exchange"></i>
                                                                                    </div>
                                                                                </div>
                                                                                <div class="col-xs-10">
                                                                                    <asp:HyperLink ID="LB_WFHOrgs" runat="server" />
                                                                                </div>
                                                                            </div>
                                                                        </ItemTemplate>
                                                                        <AlternatingItemTemplate>
                                                                            <div class="row">
                                                                                <div class="col-xs-1">
                                                                                    <div class="icon">
                                                                                        <i class="material-icons icon-work-folder col-exchange"></i>
                                                                                    </div>
                                                                                </div>
                                                                                <div class="col-xs-10">
                                                                                    <asp:HyperLink ID="LB_WFHOrgs" runat="server" />
                                                                                </div>
                                                                            </div>
                                                                        </AlternatingItemTemplate>
                                                                    </asp:Repeater>

                                                                </div>
                                                            </div>
                                                            <div class="row" id="Div_SubsRDS" runat="server">
                                                                <div class="col-xs-12">

                                                                    <asp:Repeater ID="Rep_RDSOrgs" runat="server" OnItemDataBound="Rep_RDSOrgs_ItemDataBound">
                                                                        <ItemTemplate>
                                                                            <div class="row">
                                                                                <div class="col-xs-1">
                                                                                    <div class="icon">
                                                                                        <i class="material-icons icon-virtual-machine col-exchange"></i>
                                                                                    </div>
                                                                                </div>
                                                                                <div class="col-xs-10">
                                                                                    <asp:HyperLink ID="LB_RDSOrgs" runat="server" />
                                                                                </div>
                                                                            </div>
                                                                        </ItemTemplate>
                                                                        <AlternatingItemTemplate>
                                                                            <div class="row">
                                                                                <div class="col-xs-1">
                                                                                    <div class="icon">
                                                                                        <i class="material-icons icon-virtual-machine col-exchange"></i>
                                                                                    </div>
                                                                                </div>
                                                                                <div class="col-xs-10">
                                                                                    <asp:HyperLink ID="LB_RDSOrgs" runat="server" />
                                                                                </div>
                                                                            </div>
                                                                        </AlternatingItemTemplate>
                                                                    </asp:Repeater>

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

                                            <%--<EM:AD ID="AD1" runat="server" />--%>
                                        </asp:Panel>

                                        <asp:Panel ID="Pnl_EditOrg" runat="server" Visible="false">
                                            <div class="row">
                                                <div class="col-xs-12">
                                                    <div class="card">
                                                        <div class="header">
                                                            <h2>
                                                                <asp:Label ID="Lbl_PanelTitle" runat="server" Text='<%$Resources:Content, AD0000200 %>' /></h2>
                                                        </div>
                                                        <div class="body">
                                                            <asp:Panel ID="Pnl_Edit" runat="server" DefaultButton="Btn_Save">
                                                                <div class="row" id="TR_DomainEdit" runat="server">
                                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                                        <label>
                                                                            *<asp:Literal ID="Literal21" runat="server" Text='<%$Resources:Content, M0104 %>' EnableViewState="False">
                                                                            </asp:Literal>:</label>
                                                                    </div>
                                                                    <div class="col-sm-4 col-xs-12">
                                                                        <div class="form-group">
                                                                            <asp:DropDownList ID="DDl_Domain" runat="server" AutoPostBack="True" data-label="Domain">
                                                                            </asp:DropDownList>
                                                                            <asp:RequiredFieldValidator ID="RFV_Domain" runat="server" InitialValue="0" ControlToValidate="DDl_Domain" ValidationGroup="EditOrg" Display="None" SetFocusOnError="True">
                                                                            </asp:RequiredFieldValidator>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="row" id="TR_LDAPEdit" runat="server">
                                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                                        <label>
                                                                            *<asp:Literal ID="Literal22" runat="server" Text='<%$Resources:Content, AD0000201 %>' EnableViewState="False">
                                                                            </asp:Literal>:</label>
                                                                    </div>
                                                                    <div class="col-sm-4 col-xs-12">
                                                                        <div class="form-group">
                                                                            <asp:DropDownList ID="DDl_LDAP" runat="server" data-label="Parent OU LDAP">
                                                                            </asp:DropDownList>
                                                                            <asp:RequiredFieldValidator ID="RFV_LDAP" ValidationGroup="EditOrg" runat="server" ControlToValidate="DDl_LDAP" Display="None" SetFocusOnError="True">
                                                                            </asp:RequiredFieldValidator>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="row" id="TR_CustomerEdit" runat="server">
                                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                                        <label>
                                                                            *<asp:Literal ID="Literal23" runat="server" Text='<%$Resources:Content, GN0000850 %>' EnableViewState="False">
                                                                            </asp:Literal>:</label>
                                                                    </div>
                                                                    <div class="col-sm-4 col-xs-12">
                                                                        <div class="form-group">
                                                                            <asp:DropDownList ID="DDl_Customer" AutoPostBack="true" runat="server" data-label="Customer">
                                                                            </asp:DropDownList>
                                                                            <asp:RequiredFieldValidator ID="RFV_Customer" runat="server" InitialValue="0" ControlToValidate="DDl_Customer" ValidationGroup="EditOrg" Display="None" SetFocusOnError="True">
                                                                            </asp:RequiredFieldValidator>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="row" id="Tr_GUIDEdit" runat="server">
                                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                                        <asp:Literal ID="Literal24" runat="server" Text='<%$Resources:Content, USM0198 %>' EnableViewState="False">
                                                                        </asp:Literal>:
                                                                    </div>
                                                                    <div class="col-sm-9 col-xs-12">
                                                                        <asp:Label ID="Lbl_OrgGUIDEdit" runat="server"></asp:Label>
                                                                    </div>
                                                                </div>
                                                                <div class="row">
                                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                                        <label>
                                                                            *<asp:Literal ID="Literal25" runat="server" Text='<%$Resources:Content, DGN1110608 %>' EnableViewState="False">
                                                                            </asp:Literal>:</label>
                                                                    </div>
                                                                    <div class="col-sm-4 col-xs-12">
                                                                        <div class="form-group">
                                                                            <div class="form-line">
                                                                                <asp:TextBox ID="TxBx_OUName" runat="server" MaxLength="128" data-label="Organization Name">
                                                                                </asp:TextBox>
                                                                                <asp:RequiredFieldValidator ID="RFV_OUName" ValidationGroup="EditOrg" runat="server" ControlToValidate="TxBx_OUName" Display="None" SetFocusOnError="True">
                                                                                </asp:RequiredFieldValidator>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="row">
                                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                                        <label>
                                                                            *<asp:Literal ID="Literal26" runat="server" Text="<%$ Resources:Content,GN000125%>"
                                                                                EnableViewState="false" />:</label>
                                                                    </div>
                                                                    <div class="col-sm-4 col-xs-12">
                                                                        <div class="form-group">
                                                                            <asp:TextBox ID="TxBx_Domains" TextMode="MultiLine" Height="150px" Width="100%" runat="server" data-label="Domains">
                                                                            </asp:TextBox>
                                                                            <asp:RequiredFieldValidator ValidationGroup="EditOrg" ID="RFV_Domains" runat="server" ControlToValidate="TxBx_Domains" SetFocusOnError="true" Display="None">
                                                                            </asp:RequiredFieldValidator>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-sm-5 col-xs-12">
                                                                        <asp:Literal ID="Literal27" runat="server" Text="<%$Resources:Content,String032%>" />
                                                                    </div>
                                                                </div>
                                                                <div class="row">
                                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                                        <label>
                                                                            <asp:Literal ID="Literal28" runat="server" Text="<%$ Resources:Content,GN00001493%>"
                                                                                EnableViewState="false"></asp:Literal>:</label>
                                                                    </div>
                                                                    <div class="col-sm-4 col-xs-12">
                                                                        <div class="form-group">
                                                                            <div class="form-line">
                                                                                <asp:TextBox runat="server" ID="TxBx_Address" data-label="Address"></asp:TextBox>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>

                                                                <div class="row">
                                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                                        <label>
                                                                            <asp:Literal ID="Literal29" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000880%>"></asp:Literal>:</label>
                                                                    </div>
                                                                    <div class="col-sm-4 col-xs-12">
                                                                        <div class="form-group">
                                                                            <div class="form-line">
                                                                                <asp:TextBox ID="TxBx_City" runat="server" data-label="City"></asp:TextBox>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="row">
                                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                                        <label>
                                                                            <asp:Literal ID="Literal30" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DEV1130%>"></asp:Literal>:</label>
                                                                    </div>
                                                                    <div class="col-sm-4 col-xs-12">
                                                                        <div class="form-group">
                                                                            <div class="form-line">
                                                                                <asp:TextBox ID="TxBx_State" runat="server" data-label="State"></asp:TextBox>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="row">
                                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                                        <label>
                                                                            <asp:Literal ID="Literal31" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001522%>"></asp:Literal>:</label>
                                                                    </div>
                                                                    <div class="col-sm-4 col-xs-12">
                                                                        <div class="form-group">
                                                                            <div class="form-line">
                                                                                <asp:TextBox ID="TxBx_Zip" runat="server" data-label="Zip"></asp:TextBox>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="row">
                                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                                        <label>
                                                                            <asp:Literal ID="Literal32" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000882%>"></asp:Literal>:</label>
                                                                    </div>
                                                                    <div class="col-sm-4 col-xs-12">
                                                                        <div class="form-group">
                                                                            <asp:DropDownList ID="DDL_Country" runat="server" data-label="Country" />
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="row">
                                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                                        <label>
                                                                            <asp:Literal ID="Literal33" runat="server" EnableViewState="False" Text='<%$Resources:Content, GN0000597 %>'>
                                                                            </asp:Literal>:</label>
                                                                    </div>
                                                                    <div class="col-sm-4 col-xs-12">
                                                                        <div class="form-group">
                                                                            <asp:TextBox ID="TxBx_Description" Text="" runat="server" MaxLength="255" Width="100%" Height="150px" TextMode="MultiLine" data-label="Description">
                                                                            </asp:TextBox>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="row">
                                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                                        <label>
                                                                            <asp:Literal ID="Literal34" runat="server" Text="<%$ Resources:Content, AD124 %>"></asp:Literal>:</label>
                                                                    </div>
                                                                    <div class="col-sm-4 col-xs-12">
                                                                        <asp:CheckBox ID="chkEnableSync" runat="server" Text=" " data-label="ADSync Enabled" />
                                                                    </div>
                                                                </div>
                                                                <div class="row" id="trSelectTemplateEdit" runat="server">
                                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                                        <label>
                                                                            <asp:Literal ID="Literal35" runat="server" Text="<%$ Resources:Content, Dev453 %>"></asp:Literal>:</label>
                                                                    </div>
                                                                    <div class="col-sm-4 col-xs-12">
                                                                        <div class="form-group">
                                                                            <asp:DropDownList ID="ddlAdsyncTemplates" runat="server" data-label="ADSync Template"></asp:DropDownList>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="row">
                                                                    <div class="col-xs-12">
                                                                        <asp:ValidationSummary ValidationGroup="EditOrg" ID="ValidationSum_1" runat="server" HeaderText='<%$ Resources:Content,EM000001 %>'
                                                                            ShowMessageBox="True" ShowSummary="False" />
                                                                        <asp:Button ID="Btn_Save" ValidationGroup="EditOrg" class="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content,GN0000281%>' runat="server" />
                                                                        <asp:Button ID="Btn_Cancel" class="btn btn-primary waves-effect" CausesValidation="false" Text='<%$ Resources:Content,GN0000572%>' runat="server" />
                                                                    </div>
                                                                </div>
                                                            </asp:Panel>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:Panel>

                                    </asp:Panel>
                                </ContentTemplate>
                            </EM:TabPanel>
                            <EM:TabPanel ID="Tab_Users" runat="server" HeaderText="<%$ Resources:Content,GN0000636%>">
                                <ContentTemplate>
                                    <asp:Button ID="Btn_Tab1" runat="server" Style="display: none;" />
                                    <asp:Panel ID="Pnl_TabContent1" runat="server">
                                        <UC:ADUsers ID="ADUsers1" runat="server" />
                                    </asp:Panel>
                                </ContentTemplate>
                            </EM:TabPanel>
                            <EM:TabPanel ID="Tab_Certs" runat="server" HeaderText="<%$ Resources:Content,Certificates%>">
                                <ContentTemplate>
                                    <asp:Button ID="Btn_Tab2" runat="server" Style="display: none;" />
                                    <asp:Panel ID="Pnl_TabContent2" runat="server">
                                        <UC:UserCerts ID="UserCerts1" runat="server" />
                                    </asp:Panel>
                                </ContentTemplate>
                            </EM:TabPanel>
                            <EM:TabPanel ID="Tab_SecurityGroups" runat="server" HeaderText="<%$ Resources:Content,SecurityGroups%>">
                                <ContentTemplate>
                                    <asp:Button ID="Btn_Tab3" runat="server" Style="display: none;" />
                                    <asp:Panel ID="Pnl_TabContent3" runat="server">
                                        <EM:SG ID="SG1" runat="server" />
                                    </asp:Panel>
                                </ContentTemplate>
                            </EM:TabPanel>
                            <EM:TabPanel ID="Tab_Contacts" runat="server" HeaderText="<%$ Resources:Content,DGN1110415%>">
                                <ContentTemplate>
                                    <asp:Button ID="Btn_Tab4" runat="server" Style="display: none;" />
                                    <asp:Panel ID="Pnl_TabContent4" runat="server">
                                        <EM:Contacts ID="Contacts1" runat="server" />
                                    </asp:Panel>
                                </ContentTemplate>
                            </EM:TabPanel>
                            <EM:TabPanel ID="Tab_Settings" runat="server" HeaderText="<%$ Resources:Content,M0027%>">
                                <ContentTemplate>
                                    <asp:Button ID="Btn_Tab5" runat="server" Style="display: none;" />
                                    <asp:Panel ID="Pnl_TabContent5" runat="server">
                                        <%--<div class="row">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                <asp:Literal ID="Literal36" runat="server" Text="<%$ Resources:Content,AD0000100%>"
                                                    EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-10 col-xs-12">
                                                <asp:Label ID="Lbl_Org" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                <asp:Literal ID="Literal37" runat="server" Text="<%$ Resources:Content,Customer%>"
                                                    EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-10 col-xs-12">
                                                <asp:Label ID="Lbl_Customer" runat="server"></asp:Label>
                                            </div>
                                        </div>--%>
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <div class="products-step">
                                                    <span id="div_Defaults" runat="server" nowrap="true" class="label label-success">
                                                        <asp:LinkButton ID="lb_Defaults" runat="server" Text='<%$ Resources:Content, Defaults %>' />
                                                    </span>
                                                    <span id="div_PasswordPolicies" runat="server" nowrap="true" class="label label-default">
                                                        <asp:LinkButton ID="lb_PasswordPolicies" runat="server" Text='<%$ Resources:Content, PasswordPolicies %>' />
                                                    </span>
                                                    <span id="div_Recovery" runat="server" nowrap="true" class="label label-default">
                                                        <asp:LinkButton ID="lb_Recovery" runat="server" Text='<%$ Resources:Content, Enrollment %>' />
                                                    </span>
                                                    <span id="div_GroupNamingPolicy" runat="server" nowrap="true" class="label label-default">
                                                        <asp:LinkButton ID="lb_GroupNamingPolicy" runat="server" Text='<%$ Resources:Content, GroupNamingPolicy %>' />
                                                    </span>
                                                    <asp:HiddenField ID="Hf_HostedOrgId" runat="server" />
                                                    <asp:HiddenField ID="Hf_ADDomainId" runat="server" />
                                                    <asp:HiddenField ID="Hf_CompanyId" runat="server" />
                                                    <asp:HiddenField ID="Hf_CustomerId" runat="server" />
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row" id="Pnl_Defaults" runat="server">
                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3>
                                                            <%= Resources.Content.ADUserPassword%>    
                                                        </h3>
                                                    </div>
                                                    <div class="body">
                                                        <%--<div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Lt_Org" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110357%>"></asp:Literal>:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:Label ID="Lbl_OrgName" runat="server"></asp:Label>

                                                </div>
                                            </div>
                                        </div>--%>
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal38" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000360%>"></asp:Literal>:
                                                            </div>
                                                            <div class="col-sm-9 col-xs-12">
                                                                <asp:Panel ID="Pnl_PasswordSettings" runat="server">
                                                                    <div class="col-xs-12">
                                                                        <div class="form-group">
                                                                            <asp:CheckBox ID="CB_MustChange" Text="<%$ Resources:Content,UserMustChangePassword%>" runat="server" data-label="User must Change Password" />
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-xs-12">
                                                                        <div class="form-group">
                                                                            <asp:CheckBox ID="CB_CantChange" Text="<%$ Resources:Content,UserCantChangePassword%>" runat="server" data-label="User can't Change Password" />
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-xs-12">
                                                                        <div class="form-group">
                                                                            <asp:CheckBox ID="CB_NeverExpires" Text="<%$ Resources:Content,PasswordNeverExpires%>" runat="server" data-label="Password Never Expires" />
                                                                        </div>
                                                                    </div>
                                                                </asp:Panel>
                                                                <div>

                                                                    <div class="col-xs-12">
                                                                        <div class="form-group">
                                                                            <asp:CheckBox ID="CB_SendPasswordExpiryIntimationEmail" Text="<%$ Resources:Content, SendEmailAlertForPwdExpiry %>" runat="server" onClick="showHideSendExpEmailDetail(this,event)" data-label="Send Password Expiry Intimation Email" />
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-xs-12" id="div_send_pwd_exp_email">
                                                                        <div class="form-group">
                                                                            <asp:Literal ID="Ltrl_NotifyDaysBefore" runat="server" Text="<%$ Resources:Content,NotifyUsersEveryDayDuringLast %>"></asp:Literal>
                                                                            &nbsp;
                                                                            <div class="form-line" style="width: 45px; display: inline-block">
                                                                                <asp:TextBox ID="TxBx_ExpiryEmailBeforeDays" runat="server" onChange="checkDaysBefore(this,event)" data-label="Expiry Email Before (days)"></asp:TextBox>
                                                                            </div>
                                                                            &nbsp;
                                                                            <span class="numeric-updown-icon-wrapper">

                                                                                <a id="at_before_days_up" runat="server">
                                                                                    <i class="glyphicon glyphicon-triangle-top"></i>
                                                                                </a>
                                                                                <span class="clearfix"></span>
                                                                                <a id="at_before_days_down" runat="server">
                                                                                    <i class="glyphicon glyphicon-triangle-bottom"></i>
                                                                                </a>
                                                                            </span>
                                                                            <EM:NumericUpDownExtender ID="NUD_AtBeforeDays" runat="server" TargetControlID="TxBx_ExpiryEmailBeforeDays"
                                                                                Step="1" Width="75" TargetButtonUpID="at_before_days_up" TargetButtonDownID="at_before_days_down">
                                                                            </EM:NumericUpDownExtender>
                                                                            <asp:Literal ID="Ltrl_DaysBeforeExpiration" runat="server" Text="<%$ Resources:Content,DaysBeforeExpiration %>"></asp:Literal>
                                                                            &nbsp;&nbsp;
                                                                            <asp:Literal ID="Ltrl_AtHours" runat="server" Text="<%$ Resources:Content,AtHours %>"></asp:Literal>
                                                                            &nbsp;
                                                                            <div class="form-line" style="width: 45px; display: inline-block">
                                                                                <asp:TextBox ID="TxBx_ExpiryEmailAtHour" runat="server" Style='width: 35px;' onChange="checkHour(this,event)" onKeyUp="handleHourUpDownKeys(this,event)" data-label="Expiry Email At (Hour)">
                                                                                </asp:TextBox>
                                                                            </div>
                                                                            &nbsp;
                                                                            <span class="numeric-updown-icon-wrapper">

                                                                                <a id="at_hour_up" runat="server">
                                                                                    <i class="glyphicon glyphicon-triangle-top"></i>
                                                                                </a>
                                                                                <span class="clearfix"></span>
                                                                                <a id="at_hour_down" runat="server">
                                                                                    <i class="glyphicon glyphicon-triangle-bottom"></i>
                                                                                </a>
                                                                            </span>
                                                                            <EM:NumericUpDownExtender ID="NUD_AtHour" runat="server" TargetControlID="TxBx_ExpiryEmailAtHour"
                                                                                Step="1" Width="75" TargetButtonUpID="at_hour_up" TargetButtonDownID="at_hour_down">
                                                                            </EM:NumericUpDownExtender>

                                                                            <asp:Literal ID="Ltrl_Minutes" runat="server" Text="<%$ Resources:Content,Minutes %>"></asp:Literal>
                                                                            &nbsp;
                                                                            <div class="form-line" style="width: 45px; display: inline-block">
                                                                                <asp:TextBox ID="TxBx_ExpiryEmailAtMin" runat="server" Text="00" onChange="checkMin(this,event)" onKeyUp="handleMinUpDownKeys(this,event)" Style='width: 35px;'  data-label="Expiry Email At (Minutes)">
                                                                                </asp:TextBox>
                                                                            </div>
                                                                            &nbsp;
                                                                            <span class="numeric-updown-icon-wrapper m-t--5">

                                                                                <a id="at_min_up" runat="server">
                                                                                    <i class="glyphicon glyphicon-triangle-top"></i>
                                                                                </a>
                                                                                <span class="clearfix"></span>
                                                                                <a id="at_min_down" runat="server">
                                                                                    <i class="glyphicon glyphicon-triangle-bottom"></i>
                                                                                </a>
                                                                            </span>
                                                                            <EM:NumericUpDownExtender ID="NUD_AtMin" runat="server" TargetControlID="TxBx_ExpiryEmailAtMin"
                                                                                Step="15" Width="75" TargetButtonUpID="at_min_up" TargetButtonDownID="at_min_down">
                                                                            </EM:NumericUpDownExtender>

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


                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-xs-12" id="DivPassPolicy" runat="server">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3>
                                                            <%= Resources.Content.PasswordPolicy%>    
                                                        </h3>
                                                    </div>
                                                    <div class="body">
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal39" runat="server" EnableViewState="false" Text="<%$ Resources:Content,EXH029%>"></asp:Literal>:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <asp:DropDownList ID="Ddl_PasswordPolicy" runat="server" data-label="Password Policy">
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                            <%--<div class="col-sm-4 col-xs-12">
                                                <asp:Button ID="Btn_SavePolicy" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000281%>" />
                                            </div>--%>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-xs-12" id="DivLogOnHourTemp" runat="server">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3>
                                                            <%= Resources.Content.strLogonHoursTemplate%>    
                                                        </h3>
                                                    </div>
                                                    <div class="body">
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal40" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Dev453%>"></asp:Literal>:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <asp:DropDownList ID="Ddl_LogonHoursTemplate" runat="server" data-label="Logon Hours Template">
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                            <%--<div class="col-sm-4 col-xs-12">
                                                <asp:Button ID="Btn_SaveLogonHoursTemplate" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000281%>" />
                                            </div>--%>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3>
                                                            <%= Resources.Content.GN0001191%>    
                                                        </h3>
                                                    </div>
                                                    <div class="body">
                                                        <div class="row">
                                                            <div class=" col-xs-6 col-sm-3 row-label">
                                                                <asp:Literal ID="Literal41" runat="server" EnableViewState="false" Text="<%$ Resources:Content,UpdateProfileAllowed%>"></asp:Literal>:
                                                            </div>
                                                            <div class="col-xs-6 col-sm-4">
                                                                <div class="form-group">
                                                                    <asp:CheckBox ID="Cb_UpdateProfileAllowed" Text="&nbsp;" runat="server" data-label="Update Profile Allowed" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row" id="Tr_ChangePassword" runat="server">
                                                            <div class=" col-xs-6 col-sm-3 row-label">
                                                                <asp:Literal ID="Literal42" runat="server" EnableViewState="false" Text="<%$ Resources:Content,ChangePasswordAllowed%>"></asp:Literal>:
                                                            </div>
                                                            <div class="col-xs-6 col-sm-4">
                                                                <div class="form-group">
                                                                    <asp:CheckBox ID="Cb_ChangePasswordAllowed" Text="&nbsp;" runat="server" data-label="Change Password Allowed" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class=" col-xs-6 col-sm-3 row-label">
                                                                <asp:Literal ID="Literal43" runat="server" EnableViewState="false" Text="<%$ Resources:Content,UnlockAccountAllowed%>"></asp:Literal>:
                                                            </div>
                                                            <div class="col-xs-6 col-sm-6">
                                                                <div class="form-group">
                                                                    <asp:CheckBox ID="Cb_UnlockAccountAllowed" Text="&nbsp;" runat="server" data-label="Unlock Account Allowed" />
                                                                    &nbsp;
                                                                    (<asp:Literal ID="Literal44" runat="server" EnableViewState="false" Text="<%$ Resources:Content,UnlockDetail%>"></asp:Literal>)
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row" id="Tr_ManageADUserCertificates" runat="server">
                                                            <div class=" col-xs-6 col-sm-3 row-label">
                                                                <asp:Literal ID="Literal1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,StrAllowToManageADUserCertificates%>"></asp:Literal>:
                                                            </div>
                                                            <div class="col-xs-6">
                                                                <div class="form-group">
                                                                    <asp:CheckBox ID="Cb_AllowToManageADUserCertificates" Text="&nbsp;" runat="server" data-label="Allow to Manage AD User Certificates" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="col-xs-12">
                                                <asp:Button ID="Btn_SaveSettings" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,GN0000281%>" />
                                            </div>

                                        </div>
                                        <div class="row" id="Pnl_PasswordPolicies" runat="server">
                                            <div class="col-xs-12">
                                                <UC:PasswordPolicies ID="UC_PasswordPolicies" runat="server" />
                                            </div>
                                        </div>
                                        <div class="row" id="Pnl_Recovery" runat="server">
                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3>
                                                            <%= Resources.Content.EnrollmentOptions%>    
                                                        </h3>
                                                    </div>
                                                    <div class="body">
                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <asp:Literal ID="Literal45" runat="server" EnableViewState="false" Text="<%$ Resources:Content,AllowedMethods%>"></asp:Literal>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal46" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000652%>"></asp:Literal>:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <asp:CheckBox ID="Cb_Email" Text="&nbsp;" runat="server" data-label="Email Verification Allowed" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row" id="Div_SMS" runat="server">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal47" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SMS%>"></asp:Literal>:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <asp:CheckBox ID="Cb_SMS" Text="&nbsp;" runat="server" data-label="SMS Verification Allowed" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-6 row-label">
                                                                <asp:Literal ID="Literal48" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SecurityQuestions%>"></asp:Literal>:
                                                            </div>
                                                            <div class="col-sm-1 col-xs-6">
                                                                <div class="form-group">
                                                                    <asp:CheckBox ID="Cb_SecurityQuestions" Text="&nbsp;" runat="server" data-label="Security Questions Allowed" />
                                                                </div>
                                                            </div>
                                                            <div id="Tr_NoOfQuestions" runat="server">
                                                                <div class="col-sm-2 col-xs-6 row-label">
                                                                    <asp:Literal ID="Literal49" runat="server" EnableViewState="false" Text="<%$ Resources:Content,NoOfQuestion%>"></asp:Literal>:
                                                                </div>
                                                                <div class="col-sm-3 col-xs-6 p-t-5">
                                                                    <div class="form-group">
                                                                        <asp:RadioButtonList ID="Rbl_SecurityQuestions" runat="server" RepeatDirection="Horizontal" data-label="Number of Questions">
                                                                            <asp:ListItem Text="1" Value="1" Selected="True"></asp:ListItem>
                                                                            <asp:ListItem Text="2" Value="2"></asp:ListItem>
                                                                            <asp:ListItem Text="3" Value="3"></asp:ListItem>
                                                                        </asp:RadioButtonList><br />
                                                                        <%--<asp:RadioButton ID="Rb_1" runat="server" Text="1" CssClass="m-l-10" GroupName="Q" Checked="true" data-label="No. of Questions Allowed" />
                                                                        <asp:RadioButton ID="Rb_2" runat="server" Text="2" CssClass="m-l-10" GroupName="Q" data-label="No. of Questions Allowed"  />
                                                                        <asp:RadioButton ID="Rb_3" runat="server" Text="3" CssClass="m-l-10" GroupName="Q" data-label="No. of Questions Allowed"  />--%>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <asp:Button ID="Btn_SaveRecoveryOptions" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,GN0000281%>" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row" id="Pnl_GroupNamingPolicy" runat="server">

                                            <%--<div class="col-xs-12" id="Div_Btn_AddNamingPolicy" runat="server">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3>
                                                            <asp:Literal ID="Literal2" runat="server" Text='<%$ Resources:Content,GN00001320%>' EnableViewState="false" />
                                                        </h3>
                                                    </div>
                                                    <div class="body">
                                                        <asp:Button ID="Btn_AddNamingPolicy" class="btn btn-primary waves-effect btnAction" runat="server" Text='<%$ Resources:Content,AddNamingPolicy %>' />
                                                    </div>
                                                </div>
                                            </div>--%>

                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3>
                                                            <%= Resources.Content.GroupNamingPolicy%>    
                                                        </h3>
                                                    </div>
                                                    <div class="body">
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal4" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000987%>" />:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-7">
                                                                <div class="form-group">
                                                                    <div class="checkbox">
                                                                        <asp:CheckBox ID="ChBx_AddPrefix" runat="server" Text=" " data-label="Allow to add Prefix"></asp:CheckBox>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row" id="Div_Rep_Prefixes" runat="server">
                                                            <div class="col-sm-12 col-xs-12">
                                                                <asp:Repeater ID="Rep_Prefixes" runat="server">
                                                                    <ItemTemplate>
                                                                        <div class="row">
                                                                            <div class="col-sm-3 col-xs-8">
                                                                                <div class="form-group">
                                                                                    <asp:DropDownList ID="DDL_PrefixOption" runat="server" data-label="Prefix Option">
                                                                                        <%--<asp:ListItem Text="<%$ Resources:Content,StringValue%>" Value="0"></asp:ListItem>
                                                                                        <asp:ListItem Text="City" Value="%City%"></asp:ListItem>
                                                                                        <asp:ListItem Text="Company" Value="%Company%"></asp:ListItem>
                                                                                        <asp:ListItem Text="Country Code" Value="%CountryCode%"></asp:ListItem>
                                                                                        <asp:ListItem Text="Country or Region" Value="%CountryOrRegion%"></asp:ListItem>
                                                                                        <asp:ListItem Text="Department" Value="%Department%"></asp:ListItem>
                                                                                        <asp:ListItem Text="Office" Value="%Office%"></asp:ListItem>
                                                                                        <asp:ListItem Text="Title" Value="%Title%"></asp:ListItem>                                                                                        
                                                                                        <asp:ListItem Text="CustomAttribute1" Value="%CustomAttribute1%"></asp:ListItem>
                                                                                        <asp:ListItem Text="CustomAttribute2" Value="%CustomAttribute2%"></asp:ListItem>
                                                                                        <asp:ListItem Text="CustomAttribute3" Value="%CustomAttribute3%"></asp:ListItem>
                                                                                        <asp:ListItem Text="CustomAttribute4" Value="%CustomAttribute4%"></asp:ListItem>
                                                                                        <asp:ListItem Text="CustomAttribute5" Value="%CustomAttribute5%"></asp:ListItem>
                                                                                        <asp:ListItem Text="CustomAttribute6" Value="%CustomAttribute6%"></asp:ListItem>
                                                                                        <asp:ListItem Text="CustomAttribute7" Value="%CustomAttribute7%"></asp:ListItem>
                                                                                        <asp:ListItem Text="CustomAttribute8" Value="%CustomAttribute8%"></asp:ListItem>
                                                                                        <asp:ListItem Text="CustomAttribute9" Value="%CustomAttribute9%"></asp:ListItem>
                                                                                        <asp:ListItem Text="CustomAttribute10" Value="%CustomAttribute10%"></asp:ListItem>
                                                                                        <asp:ListItem Text="CustomAttribute11" Value="%CustomAttribute11%"></asp:ListItem>
                                                                                        <asp:ListItem Text="CustomAttribute12" Value="%CustomAttribute12%"></asp:ListItem>
                                                                                        <asp:ListItem Text="CustomAttribute13" Value="%CustomAttribute13%"></asp:ListItem>
                                                                                        <asp:ListItem Text="CustomAttribute14" Value="%CustomAttribute14%"></asp:ListItem>
                                                                                        <asp:ListItem Text="CustomAttribute15" Value="%CustomAttribute15%"></asp:ListItem>--%>                                                                                        
                                                                                    </asp:DropDownList>
                                                                                </div>
                                                                            </div>
                                                                            <div class="col-sm-3 col-xs-8">
                                                                                <div class="form-group form-float" ID="Div_TxBx_PrefixText" runat="server">
                                                                                    <div class="form-line">
                                                                                        <asp:TextBox ID="TxBx_PrefixText" runat="server" data-label="Prefix Text"></asp:TextBox>
                                                                                        <asp:Label ID="Label1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,StringValue%>" class="form-label"></asp:Label>
                                                                                    </div>
                                                                                </div>
                                                                            </div>

                                                                            <div class="col-sm-6 col-xs-4">
                                                                                <asp:Button ID="btnRemove" runat="server" Text="<%$ Resources:Content,GN0000278%>" CommandName="Remove" CausesValidation="false"
                                                                                    CommandArgument='<%# Container.ItemIndex %>' CssClass="btn btn-primary btnAction" />
                                                                            </div>
                                                                        </div>
                                                                    </ItemTemplate>
                                                                    <FooterTemplate>
                                                                        <div class="row">
                                                                            <div class="col-xs-12">
                                                                                <asp:Button ID="btnAdd" runat="server" Text="<%$ Resources:Content,AddNewPrefix%>" CommandName="Add" class="btn btn-primary waves-effect btnAction" CausesValidation="false" />
                                                                            </div>
                                                                        </div>
                                                                    </FooterTemplate>
                                                                </asp:Repeater>
                                                            </div>
                                                        </div>

                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal11" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000986%>" />:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-7">
                                                                <div class="form-group">
                                                                    <div class="checkbox">
                                                                        <asp:CheckBox ID="ChBx_AddSuffix" runat="server" Text=" " data-label="Allow to add Suffix"></asp:CheckBox>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row" id="Div_Rep_Suffixes" runat="server">
                                                            <div class="col-sm-12 col-xs-12">
                                                                <asp:Repeater ID="Rep_Suffixes" runat="server">
                                                                    <ItemTemplate>
                                                                        <div class="row">
                                                                            <div class="col-sm-3 col-xs-8">
                                                                                <div class="form-group">
                                                                                    <asp:DropDownList ID="DDL_SuffixOption" runat="server" data-label="Suffix Option">
                                                                                        <%--<asp:ListItem Text="<%$ Resources:Content,StringValue%>" Value="0"></asp:ListItem>
                                                                                        <asp:ListItem Text="City" Value="%City%"></asp:ListItem>
                                                                                        <asp:ListItem Text="Company" Value="%Company%"></asp:ListItem>
                                                                                        <asp:ListItem Text="Country Code" Value="%CountryCode%"></asp:ListItem>
                                                                                        <asp:ListItem Text="Country or Region" Value="%CountryOrRegion%"></asp:ListItem>
                                                                                        <asp:ListItem Text="Department" Value="%Department%"></asp:ListItem>
                                                                                        <asp:ListItem Text="Office" Value="%Office%"></asp:ListItem>
                                                                                        <asp:ListItem Text="Title" Value="%Title%"></asp:ListItem>
                                                                                        <asp:ListItem Text="CustomAttribute1" Value="%CustomAttribute1%"></asp:ListItem>
                                                                                        <asp:ListItem Text="CustomAttribute2" Value="%CustomAttribute2%"></asp:ListItem>
                                                                                        <asp:ListItem Text="CustomAttribute3" Value="%CustomAttribute3%"></asp:ListItem>
                                                                                        <asp:ListItem Text="CustomAttribute4" Value="%CustomAttribute4%"></asp:ListItem>
                                                                                        <asp:ListItem Text="CustomAttribute5" Value="%CustomAttribute5%"></asp:ListItem>
                                                                                        <asp:ListItem Text="CustomAttribute6" Value="%CustomAttribute6%"></asp:ListItem>
                                                                                        <asp:ListItem Text="CustomAttribute7" Value="%CustomAttribute7%"></asp:ListItem>
                                                                                        <asp:ListItem Text="CustomAttribute8" Value="%CustomAttribute8%"></asp:ListItem>
                                                                                        <asp:ListItem Text="CustomAttribute9" Value="%CustomAttribute9%"></asp:ListItem>
                                                                                        <asp:ListItem Text="CustomAttribute10" Value="%CustomAttribute10%"></asp:ListItem>
                                                                                        <asp:ListItem Text="CustomAttribute11" Value="%CustomAttribute11%"></asp:ListItem>
                                                                                        <asp:ListItem Text="CustomAttribute12" Value="%CustomAttribute12%"></asp:ListItem>
                                                                                        <asp:ListItem Text="CustomAttribute13" Value="%CustomAttribute13%"></asp:ListItem>
                                                                                        <asp:ListItem Text="CustomAttribute14" Value="%CustomAttribute14%"></asp:ListItem>
                                                                                        <asp:ListItem Text="CustomAttribute15" Value="%CustomAttribute15%"></asp:ListItem>--%>
                                                                                    </asp:DropDownList>
                                                                                </div>
                                                                            </div>
                                                                            <div class="col-sm-3 col-xs-8">
                                                                                <div class="form-group form-float" ID="Div_TxBx_SuffixText" runat="server">
                                                                                    <div class="form-line">
                                                                                        <asp:TextBox ID="TxBx_SuffixText" runat="server" data-label="Suffix Text"></asp:TextBox>
                                                                                        <asp:Label ID="Label1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,StringValue%>" class="form-label"></asp:Label>
                                                                                    </div>
                                                                                </div>
                                                                            </div>

                                                                            <div class="col-sm-6 col-xs-4">
                                                                                <asp:Button ID="btnRemove" runat="server" Text="<%$ Resources:Content,GN0000278%>" CommandName="Remove" CausesValidation="false"
                                                                                    CommandArgument='<%# Container.ItemIndex %>' CssClass="btn btn-primary btnAction" />
                                                                            </div>
                                                                        </div>
                                                                    </ItemTemplate>
                                                                    <FooterTemplate>
                                                                        <div class="row">
                                                                            <div class="col-xs-12">
                                                                                <asp:Button ID="btnAdd" runat="server" Text="<%$ Resources:Content,AddNewSuffix%>" CommandName="Add" class="btn btn-primary waves-effect btnAction" CausesValidation="false" />
                                                                            </div>
                                                                        </div>
                                                                    </FooterTemplate>
                                                                </asp:Repeater>
                                                            </div>
                                                        </div>

                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal54" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Separator%>" />:
                                                            </div>
                                                            <div class="col-sm-3 col-xs-7">
                                                                <div class="form-group">
                                                                    <asp:DropDownList ID="DDL_Separator" runat="server" data-label="Separator">
                                                                        <asp:ListItem Text="Underscore (_)" Value="_"></asp:ListItem>
                                                                        <asp:ListItem Text="Hyphen (-)" Value="-"></asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                        </div>

                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,UpdateExistingSGNaming%>" />:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-7">
                                                                <div class="form-group">
                                                                    <div class="checkbox">
                                                                        <asp:CheckBox ID="ChBx_UpdateExistingSGNaming" runat="server" Text=" " data-label="Update Existing SGs Naming"></asp:CheckBox>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>

                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <asp:Button ID="Btn_SaveGroupNamingPolicy" runat="server" Text="<%$ Resources:Content,GN0000281%>"
                                                                    class="btn btn-primary waves-effect btnAction" />
                                                                <asp:Button ID="Btn_SaveNOverwriteGroupNamingPolicy" runat="server" Text="<%$ Resources:Content,SaveAndOverwrite%>"
                                                                    class="btn btn-primary waves-effect" Visible="false" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </ContentTemplate>
                            </EM:TabPanel>
                            <EM:TabPanel ID="Tab_GroupJobs" runat="server" HeaderText="<%$ Resources:Content,strJobQueue%>">
                                <ContentTemplate>
                                    <asp:Button ID="Btn_Tab6" runat="server" Style="display: none;" />
                                    <asp:Panel ID="Pnl_TabContent6" runat="server">
                                        <UC:GroupActions ID="GroupActions1" runat="server" />
                                    </asp:Panel>
                                </ContentTemplate>
                            </EM:TabPanel>
                            <EM:TabPanel ID="Tab_IAMRole" runat="server" HeaderText="<%$ Resources:Content,strIAMRoles%>">
                                <ContentTemplate>
                                    <asp:Button ID="Btn_Tab7" runat="server" Style="display: none;" />
                                    <asp:Panel ID="Pnl_TabContent7" runat="server">
                                        <UC:IAMRole ID="UCIAMRole" runat="server" />
                                    </asp:Panel>
                                </ContentTemplate>
                            </EM:TabPanel>
                        </EM:TabContainer>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <asp:Panel ID="Pnl_ChangePWD" runat="server" CssClass="width-modal-popup-auto" DefaultButton='Btn_OK' Style="display: none">
        <div class="col-xs-12">
            <div class="card">
                <div class="header container-fluid">
                    <h3 class="pull-left">
                        <asp:Literal ID="Ltl_AdSyncTemp" runat="server" Text='<%$Resources:Content, strADSyncTemplates %>'></asp:Literal></h3>
                    <span>
                        <button type="button" class="close" onclick="$find('<%=MPE_ChangePWD.ClientID%>').hide();">&times;</button>
                    </span>
                </div>
                <div class="body">
                    <div class="row">
                        <div class="col-md-2 col-sm-3 col-xs-12 row-label">
                            <label>*<asp:Literal ID="Literal9" runat="server" Text="<%$ Resources:Content, Dev453 %>"></asp:Literal>:</label>
                        </div>
                        <div class="col-sm-8 col-xs-12">
                            <div class="row">
                                <asp:Repeater ID="Rep_AdsyncTemplates" runat="server">
                                    <ItemTemplate>
                                        <div class="col-md-4 col-sm-6 col-xs-12">
                                            <EM:GroupRadioButton ID="RB_AdsyncTemplates" ValidationGroup="EnableADSync" runat="server" GroupName="AdSyncTemplates" />
                                            <label id="Lbl_Template" runat="server">
                                                <div id="Div_Template" runat="server" class="display-inline">
                                                </div>
                                            </label>
                                            <asp:HiddenField ID="HF_AdSyncTemplate" runat="server" />
                                        </div>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <asp:ValidationSummary ValidationGroup="EnableADSync" HeaderText='<%$ Resources:Content,EM000001 %>'
                                ID="VS" runat="server" ShowMessageBox="true" ShowSummary="false" />
                            <asp:Button ID="Btn_OK" runat="server" Text='<%$Resources:Content, GN0000858 %>'
                                class="btn btn-primary waves-effect" ValidationGroup="EnableADSync"></asp:Button>
                            <asp:Button ID="Btn_CancelADSync" CausesValidation="false" runat="server" Text='<%$Resources:Content, GN0000572 %>'
                                class="btn btn-primary waves-effect"></asp:Button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </asp:Panel>
    <asp:Button ID='Btn_Dummy' runat='server' Style='display: none;'></asp:Button>
    <EM:ModalPopupExtender ID="MPE_ChangePWD" runat="server" BackgroundCssClass="modalBackground"
        DropShadow="False" PopupControlID="Pnl_ChangePWD" TargetControlID='Btn_Dummy'>
    </EM:ModalPopupExtender>

    <style type="text/css">
        .display-inline-float-left,
        .numeric-updown-icon-wrapper {
            display: inline-block;
            /*float: left;*/
            position: relative;
            top: 15px;
        }

        .numeric-updown-icon-wrapper {
            margin-right: 5px;
            margin-left: 2px;
        }

        input[type='text'].date-picker-input {
            border-bottom: solid 1px;
        }
    </style>

    <script lang="javascript" type="text/javascript">
        $(function () {
            var cbIsTimebound = $get('<%= CB_SendPasswordExpiryIntimationEmail.ClientID%>');
            if (cbIsTimebound) {
                if (cbIsTimebound.checked)
                    $('#div_send_pwd_exp_email').removeClass('hide');
                else if (!$('#div_send_pwd_exp_email').hasClass('hide'))
                    $('#div_send_pwd_exp_email').addClass('hide');
            }
        });

        function showHideSendExpEmailDetail(source, e) {
            //alert('called');
            if (source.checked)
                $('#div_send_pwd_exp_email').removeClass('hide');
            else
                $('#div_send_pwd_exp_email').addClass('hide');
        }

        function checkMin(source, e) {
            if (source.value < 0)
                source.value = '00';
            else if (source.value >= 60)
                source.value = 59
            else if (source.value % 15 != 0 && source.value != 59)
                try { source.value = parseInt(source.value) + 1; } catch { source.value = '00'; }
        }

        function checkHour(source, e) {
            if (source.value > 23)
                source.value = '23';
            else if (source.value < 0)
                source.value = 0;
        }

        function checkDaysBefore(source, e) {

            if (source.value > 7)
                source.value = '7';
            else if (source.value < 1)
                source.value = 1;
        }


        function handleUpDownKeys(source, e, StepSize) {
            if (e.keyCode == 38)
                if (source.value + StepSize < 9)
                    source.value = '0' + (+source.value + StepSize);
                else
                    source.value = +source.value + StepSize;
            else if (e.keyCode == 40)
                if (source.value - StepSize < 11)
                    source.value = '0' + (+source.value - StepSize);
                else
                    source.value = +source.value - StepSize;
        }

        function handleHourUpDownKeys(source, e) {
            handleUpDownKeys(source, e, 1);
            checkHour(source, e);

        }

        function handleMinUpDownKeys(source, e) {
            handleUpDownKeys(source, e, 15);
            checkMin(source, e);

        }

    </script>

</asp:Content>
