<%@ control language="VB" autoeventwireup="false" inherits="RCC_Voice_CC_DirectRouting, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility"
    TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>


<asp:Panel ID="Pnl_DirectRouting" runat="server" CssClass="row">

    <div class="col-xs-12">
        <div class="products-step">
            <span id="div_Configurations" runat="server" nowrap="true" class="label label-success">
                <asp:LinkButton ID="lb_Configurations" runat="server" Text='<%$ Resources:Content, String483 %>' />
            </span>
            <span id="div_UserAssignment" runat="server" nowrap="true" class="label label-default">
                <asp:LinkButton ID="lb_UserAssignment" runat="server" Text='<%$ Resources:Content, strUserAssignment %>' />
            </span>
            <span id="div_ResourceAssignment" runat="server" nowrap="true" class="label label-default">
                <asp:LinkButton ID="lb_ResourceAssignment" runat="server" Text='<%$ Resources:Content, strResourceAssignment %>' />
            </span>
        </div>
    </div>

    <div id="DivJobRemoveConfig" class="col-xs-12" runat="server" visible="false">
        <div>
            <asp:Literal ID="Literal43" runat="server" Text='<%$ Resources:Content,strJobToRemoveInProcess %>' />
        </div>
    </div>
    <asp:Panel ID="Pnl_Configuration" runat="server">
        <div class="panel-group" id="AS_DirectRoutingTenantConfig" role="tablist" aria-multiselectable="true">
            <div class="col-xs-12" role="tab" id="SH_DirectRoutingTenantConfig">
                <div class="card">
                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_DirectRouting" href="#<%= CSB_DirectRoutingTenantConfig.ClientID%>" aria-expanded="true" aria-controls="SH_DirectRoutingTenantConfig">
                        <h3>
                            <asp:Literal ID="Ltl_ConfigStep1" runat="server" Text="<%$ Resources:Content,StrDirectRoutingConfigStep1 %>"></asp:Literal>
                        </h3>
                    </div>
                    <div id="CSB_DirectRoutingTenantConfig" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_DirectRoutingTenantConfig" aria-expanded="false">

                        <div class="row">

                            <div class="body">

                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <asp:Literal ID="Literal47" runat="server" Text='<%$ Resources:Content,strTenantadminlogin %>' />:
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_Tenantadminlogin" runat="server" onChange="handleAdminChange(this)"></asp:TextBox>
                                            </div>
                                        </div>
                                    </div>
                                    <script type="text/javascript">
                                        function handleAdminChange(source) {
                                            $get('<%= Btn_AdminLoginChangeHandler.ClientID %>').click();
                                        }
                                    </script>
                                    <asp:Button ID="Btn_AdminLoginChangeHandler" runat="server" Text="" CssClass="btn-dummy btn-hide hide" />
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12">
                                    </div>
                                    <div class=" col-xs-9">
                                        <asp:Literal ID="Literal1" runat="server" Text='<%$ Resources:Content,strRoutingMainMsg %>' />
                                    </div>
                                </div>

                                <div class="row m-t-10">
                                    <div class="col-lg-9 col-md-9 col-sm-offset-3 col-sm-9 col-xs-12">
                                        <asp:UpdatePanel ID="UP_GrantConsent" runat="server" UpdateMode="Conditional">
                                            <Triggers>
                                                <asp:AsyncPostBackTrigger ControlID="Btn_AdminLoginChangeHandler" EventName="Click" />
                                            </Triggers>
                                            <ContentTemplate>
                                                <EM:UpdatePanelInlineScriptControl ID="UpdatePanelInlineScriptControl1" runat="server">

                                                    <script type="text/javascript" language="javascript">

                                                        $(document).ready(function () {
                                                            if ($("a[id$='Lbtn_GrantAdminConsent']").length > 0)
                                                                O365GrantHelpIconPopover($("a[id$='Lbtn_GrantAdminConsent']").get(0).id, '<%= Resources.Content.StrO365ConsentHelpTitle %>', '<%= Resources.Content.StrO365ConsentHelpContent %>');
                                                        });

                                                    </script>
                                                </EM:UpdatePanelInlineScriptControl>



                                                <a href="javascript:void(0)" id="Lbtn_GrantAdminConsent" runat="server" class="btn btn-primary waves-effect" style="margin-top: -10px;">
                                                    <b>
                                                        <asp:Literal ID="Ltrl_StrTenantManagementConsentButton" runat="server" Text='<%$Resources:Content, StrTenantManagementConsentButton %>' /></b>
                                                </a>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </div>
                                    <%--<div class="col-lg-7 col-md-6 col-md-offset-0 col-sm-offset-3 col-sm-9 col-xs-12 m-t--10">
                                        <i id="grant_info_icon" class="glyphicon glyphicon-info-sign gi-1_75x"></i>
                                        <b>

                                            <%--<asp:Literal ID="Literal25" runat="server" Text="<% $Resources:Content, Note%>"></asp:Literal>:
                                            <asp:Literal ID="Literal45" runat="server" Text="<% $Resources:Content, StrO365ConsentHelpContent%>"></asp:Literal>
                                        </b>
                                    </div>--%>
                                </div>

                                <%-- <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                    </div>
                                    <div class="col-sm-9 col-xs-12">
                                        <asp:Button ID="Btn_SaveTenantInfo" runat="server" Text='<%$ Resources:Content,GN0000281 %>' class="btn btn-primary waves-effect" />
                                        <%-- <asp:Button ID="btn_AllowAccesstoProvider" CausesValidation="false" runat="server" Visible="false" Text='<%$ Resources:Content,strAllowAccessToProvider %>' class="btn btn-primary waves-effect" />
                                    <asp:Label ID="ltrProviderShowMs" runat="server" Visible="false" Text='<%$ Resources:Content,strPasswordShowMsg %>' />
                                    </div>

                                </div>--%>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                    </div>
                                    <div class="col-sm-9 col-xs-12">
                                        <asp:Label ID="ltrMsgTenantCredentials" Style="color: red" Visible="false" runat="server" Text='<%$ Resources:Content,strProviderWillConfigTeamRouting %>' />
                                    </div>
                                </div>
                            </div>

                        </div>

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

        <%--<div class="panel-group" id="AS_DirectRouting" role="tablist" aria-multiselectable="true" runat="server">--%>
        <div class="col-xs-12" id="Div_ConfigStep2" runat="server">
            <%--role="tab" id="SH_DirectRouting"--%>
            <div class="card">
                <div class="header">
                    <%--role="button" data-toggle="collapse" data-parent="#AS_DirectRouting" href="#<%= CSB_DirectRouting.ClientID%>" aria-expanded="true" aria-controls="SH_DirectRouting">--%>
                    <h3>
                        <asp:Literal ID="Ltl_ConfigStep2" runat="server" Text="<%$ Resources:Content,StrDirectRoutingConfigStep2 %>"></asp:Literal>
                    </h3>
                </div>
                <%--<div id="CSB_DirectRouting" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_DirectRouting" aria-expanded="false">--%>

                <div class="body">


                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *
                            <asp:Literal ID="Literal44" runat="server" Text='<%$ Resources:Content,strDomain %>' />:
                        </div>
                        <div class="col-sm-3 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_Domain" runat="server"></asp:TextBox>
                                </div>
                            </div>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
                                ControlToValidate="TxBx_Domain"
                                Display="None" ValidationGroup="ConfigureDirectRouting" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </div>
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Label ID="lblDomain" runat="server" Text='.customers.machcloud.com' /><%-- Do not change this text value. --%>
                           <%-- <asp:Label ID="lblDomain" runat="server" Text='.justfordemo.com' />--%>
                        </div>
                        <div class="col-sm-3 col-xs-12">
                            <asp:Button ID="Btn_Create" class="btn btn-primary waves-effect" ValidationGroup="ConfigureDirectRouting" CausesValidation="true" runat="server" Text='<%$ Resources:Content,strVerify %>' />
                            <%-- <asp:Button ID="Btn_Validate" Visible="false" CausesValidation="false" runat="server" Text='<%$ Resources:Content,strValidate %>' class="btn btn-primary waves-effect" />--%>
                        </div>
                    </div>

                    <div class="row" id="DivActivate" runat="server" visible="false">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal2" runat="server" Text='<%$ Resources:Content,strActivateDirectRouting %>' />:
                        </div>
                        <div class="col-sm-3 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="Txbx_User" runat="server" Enabled="false"></asp:TextBox>
                                    <asp:HiddenField ID="HdnObjectId" runat="server" />
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-3 col-xs-12">
                            <asp:DropDownList ID="ddl_Licences" runat="server"></asp:DropDownList>
                        </div>
                        <div class="col-sm-3 col-xs-12">
                            <asp:Button ID="Btn_Assign" CausesValidation="false" runat="server" Text='<%$ Resources:Content,strAssignLicense %>' class="btn btn-primary waves-effect btnAction" />
                        </div>
                    </div>
                    <div class="row" id="DivActivateMsg" runat="server" visible="false">
                        <div class="col-sm-3 col-xs-12 row-label">
                        </div>
                        <div class="col-sm-6 col-xs-12">
                            <asp:Literal ID="Literal3" runat="server" Text='<%$ Resources:Content,strSelectPropLicForUserMsg %>' />
                        </div>
                        <div class="col-sm-3 col-xs-12">
                        </div>
                    </div>
                    <div class="row" id="DivCompleted" runat="server" visible="false">
                        <div class="col-sm-3 col-xs-12 row-label">
                        </div>
                        <div class="col-sm-3 col-xs-12">
                            <div id="divIcnCompleted" class="glyphicon glyphicon-ok-sign pull-left color-success p-t-2"></div>
                            &nbsp;&nbsp;
                                    <asp:Label ID="lblCompleted" runat="server" Font-Bold="true" Text='<%$ Resources:Content,Completed %>' />
                        </div>
                    </div>
                    <div class="row" id="DivTxtRecord" runat="server" visible="false">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal48" runat="server" Text='<%$ Resources:Content,TxtRecord %>' />:
                        </div>
                        <div class="col-sm-3 col-xs-12">
                            <asp:Label ID="lblTxtRecord" runat="server"></asp:Label>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                        </div>
                        <div class="col-sm-6 col-xs-12">
                            <asp:Button ID="Btn_Save" Visible="false" CausesValidation="true" runat="server" Text='<%$ Resources:Content,strFinish %>' class="btn btn-primary waves-effect btnAction" />
                            <asp:Button ID="Btn_Reset" Visible="false" CausesValidation="false" runat="server" Text='<%$ Resources:Content,Lync298 %>' class="btn btn-primary waves-effect btnAction" />
                            <asp:Button ID="btn_Remove" CausesValidation="false" runat="server" Text='<%$ Resources:Content,strRemove %>' OnClientClick="return confirm('All assignments will be removed, are you sure to remove?');" class="btn btn-primary waves-effect btnAction" />
                             <asp:Button ID="btn_UnilateralRemove" CausesValidation="false" runat="server" Text='<%$ Resources:Content,strUnilateralRemove %>' OnClientClick="return confirm('The current Direct Routing configuration will be unilateral removed. The made associated administration will be discarded without any changes made in the Teams Admin Center. Are you sure to proceed the unilateral removal?');" class="btn btn-primary waves-effect btnAction" />
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <asp:ValidationSummary ID="ValidationSummary2" runat="server" ShowMessageBox="true" ShowSummary="false"
                                ValidationGroup="ConfigureDirectRouting" HeaderText="<%$ Resources:Content,EM000001%>" />
                        </div>
                    </div>
                </div>



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

        <div class="panel-group" runat="server" id="AS_ForwardingHistory" role="tablist" aria-multiselectable="true" visible="false">
            <div class="col-xs-12" role="tab" id="SH_ForwardingHistory">
                <div class="card">
                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_ForwardingHistory" href="#<%= CSB_ForwardingHistory.ClientID%>" aria-expanded="true" aria-controls="SH_ForwardingHistory">
                        <h3>
                            <%= Resources.Content.strTrunkSettings%>                                                                                                                                 
                        </h3>
                    </div>
                    <div id="CSB_ForwardingHistory" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_ForwardingHistory" aria-expanded="false">
                        <div class="row">
                            <div class="body">
                                <div class="row" id="DivForwardingNumber" runat="server">
                                    <div class="col-sm-3 col-xs-12">
                                        <asp:Literal ID="Literal9" runat="server" Text='<%$ Resources:Content,strForwardCallHistory %>' />:
                                    </div>
                                    <div class="col-sm-1 col-xs-12">
                                        <asp:CheckBox ID="ChBx_ForwardCallHistory" Checked="true" Text=" " OnClick="oncheckchange(this.checked);" runat="server" />
                                    </div>
                                    <div class="col-sm-8 col-xs-12">
                                        <asp:Literal ID="Literal11" runat="server" Text='<%$ Resources:Content,strCallForwardingMsg %>' />
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12">
                                    </div>
                                    <div class="col-sm-2 col-xs-12">
                                        <asp:Button ID="btn_ApplyForwardCallHistory" runat="server" CausesValidation="false" Text='<%$ Resources:Content,GN0001189 %>' class="btn btn-primary waves-effect" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </asp:Panel>

    <asp:Panel ID="Pnl_UserAssignment" runat="server" Visible="false">
        <%--  <div class="panel-group search-panel" runat="server" id="AS_NumberAssignment" role="tablist" aria-multiselectable="true" visible="false">
            <div class="col-xs-12" role="tab" id="SH_NumberAssignment">--%>
        <div class="col-xs-12">
            <div class="card">
                <%--<div class="header">
                    <%--role="button" data-toggle="collapse" data-parent="#AS_NumberAssignment" href="#<%= CSB_NumberAssignment.ClientID%>" aria-expanded="true" aria-controls="SH_NumberAssignment"
                    <h3>
                        <%= Resources.Content.strUserNumberAssig%>                                                                                                                                 
                    </h3>
                </div>--%>

                <%--  <div id="CSB_NumberAssignment" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_NumberAssignment" aria-expanded="false">
                        <div class="row">
                            <div class="col-xs-12">--%>

                <div class="body">



                    <div runat="server" id="DivNoCallBundle">
                        <div class="col-xs-12">
                            <asp:Literal ID="Literal12" runat="server" Text='<%$ Resources:Content,strNoCallBundleMsg %>' />
                            <%--</div>
                                <div class="col-md-2 col-xs-12">--%>
                            <asp:LinkButton ID="LB_BuyBundle" runat="server" Text="<%$ Resources:Content,strBuyAddon %>"
                                CssClass="btn btn-primary waves-effect" />
                            <%--NavigateURL='~/RCC/Clients/ServiceSubscription.aspx?Sub=1&CID=' & <% CustomerId %> & '&AID=' & <% ServiceHostingId %> & '&PType=24'--%>
                        </div>
                    </div>


                    <div id="DivAssignNumber" runat="server">

                        <div class="row" runat="server">
                            <div class="col-xs-12">
                                <asp:Literal ID="Literal10" runat="server" Text='<%$ Resources:Content,strUseELicenseMsg %>' />
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-md-1 col-xs-12 row-label">
                                <asp:Literal ID="Literal4" runat="server" Text='<%$ Resources:Content,strUser %>' />:
                            </div>
                            <div class="col-md-5 col-xs-12">
                                <asp:DropDownList ID="ddl_Users" runat="server"></asp:DropDownList>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-xs-6">

                                <div class="col-md-10 col-xs-12 row-label  m-l--15">
                                    <asp:RadioButton ID="RB_UseNumber" Text='<%$ Resources:Content,UsePhone %>' runat="server" Checked="true" AutoPostBack="true" GroupName="NumberOption" />
                                </div>
                                <div class="col-md-2 col-xs-12">
                                    <div class="form-group">
                                        <button type="button" class="btn btn-info btn-block btn-xs waves-effect"
                                            style="width: 30px;" data-trigger="focus" data-html="true" data-container="body" data-toggle="popover"
                                            data-placement="left"
                                            data-content='<asp:Literal runat="server" Text="<%$ Resources:Content,UsePhone%>" />'>
                                            <i class="material-icons">info</i>
                                        </button>
                                    </div>
                                </div>

                                <div class="col-md-3 col-xs-12 row-label  m-l--15">
                                    <asp:Literal ID="Literal5" runat="server" Text='<%$ Resources:Content,String1027 %>' />:
                                </div>
                                <div class="col-md-9 col-xs-12">
                                    <asp:DropDownList ID="ddl_Numbers" runat="server"></asp:DropDownList>
                                </div>

                                <div class="col-md-3 col-xs-12 row-label  m-l--15">
                                    <asp:Literal ID="Literal16" runat="server" Text='<%$ Resources:Content,Lync338 %>' EnableViewState="false" />:
                                </div>
                                <div class="col-md-9 col-xs-12">
                                    <asp:DropDownList ID="Ddl_SIPBundle" runat="server"></asp:DropDownList>
                                </div>

                            </div>

                            <div class="col-xs-6">

                                <div class="col-md-11 col-xs-12 row-label">
                                    <asp:RadioButton ID="RB_UseExt" runat="server" Text='<%$ Resources:Content,UseExt %>' Checked="false" AutoPostBack="true" GroupName="NumberOption" />
                                </div>
                                <div class="col-md-1 col-xs-12">
                                    <div class="form-group">
                                        <button type="button" class="btn btn-info btn-block btn-xs waves-effect"
                                            style="width: 30px;" data-trigger="focus" data-html="true" data-container="body" data-toggle="popover"
                                            data-placement="left"
                                            data-content='<asp:Literal runat="server" Text="<%$ Resources:Content,strUseaPbxWithExistingUAcc%>" />'>
                                            <i class="material-icons">info</i>
                                        </button>
                                    </div>
                                </div>

                                <div class="col-md-5 col-xs-12 row-label">
                                    *
                                                <asp:Literal ID="Literal14" runat="server" Text='<%$ Resources:Content,strExtensionNumber %>' />:
                                </div>
                                <div class="col-md-6 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_Ext" runat="server" CssClass="allowonlyintegervalues"></asp:TextBox>
                                        </div>
                                        <asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator3"
                                            Display="Dynamic"
                                            ControlToValidate="TxBx_Ext"
                                            ValidationExpression="^[0-9]{3,5}$"
                                            ErrorMessage="Minimum 3 and Maximum 5 integers value is allowed.">
                                        </asp:RegularExpressionValidator>
                                        <asp:RangeValidator ID="rgvExtValue" Type="Integer" ControlToValidate="TxBx_Ext" MinimumValue="200" MaximumValue="99999" runat="server"></asp:RangeValidator>
                                    </div>
                                </div>
                                <div class="col-md-1 col-xs-12">
                                    <div class="form-group">
                                        <button type="button" class="btn btn-info btn-block btn-xs waves-effect"
                                            style="width: 30px;" data-trigger="focus" data-html="true" data-container="body" data-toggle="popover"
                                            data-placement="left"
                                            data-content='<asp:Literal runat="server" Text="<%$ Resources:Content,strUseExtNoKnowPBX%>" />'>
                                            <i class="material-icons">info</i>
                                        </button>
                                    </div>
                                </div>

                                <div class="col-md-5 col-xs-12 row-label">
                                    *
                                                <asp:Literal ID="Literal19" runat="server" Text='<%$ Resources:Content,strAccountUsername %>' />:
                                </div>
                                <div class="col-md-6 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_UserName" runat="server"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-1 col-xs-12">
                                    <div class="form-group">
                                        <button type="button" class="btn btn-info btn-block btn-xs waves-effect"
                                            style="width: 30px;" data-trigger="focus" data-html="true" data-container="body" data-toggle="popover"
                                            data-placement="left"
                                            data-content='<asp:Literal runat="server" Text="<%$ Resources:Content,strAccountUsername%>" />'>
                                            <i class="material-icons">info</i>
                                        </button>
                                    </div>
                                </div>

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

                                    <asp:Literal ID="Literal36" runat="server" Text='<%$ Resources:Content,strAuthorizationUserName %>' />:
                                </div>
                                <div class="col-md-6 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_AuthorizationUserName" runat="server"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-1 col-xs-12">
                                    <div class="form-group">
                                        <button type="button" class="btn btn-info btn-block btn-xs waves-effect"
                                            style="width: 30px;" data-trigger="focus" data-html="true" data-container="body" data-toggle="popover"
                                            data-placement="left"
                                            data-content='<asp:Literal runat="server" Text="<%$ Resources:Content,strAccAuthenUserName%>" />'>
                                            <i class="material-icons">info</i>
                                        </button>
                                    </div>
                                </div>



                                <div class="col-md-5 col-xs-12 row-label">
                                    *
                                                <asp:Literal ID="Literal18" runat="server" Text='<%$ Resources:Content,strAccountPassword %>' />:
                                </div>
                                <div class="col-md-6 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_Password" TextMode="Password" runat="server"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-1 col-xs-12">
                                    <div class="form-group">
                                        <button type="button" class="btn btn-info btn-block btn-xs waves-effect"
                                            style="width: 30px;" data-trigger="focus" data-html="true" data-container="body" data-toggle="popover"
                                            data-placement="left"
                                            data-content='<asp:Literal runat="server" Text="<%$ Resources:Content,strAccountPassword%>" />'>
                                            <i class="material-icons">info</i>
                                        </button>
                                    </div>
                                </div>

                                <div class="col-md-5 col-xs-12 row-label">
                                    *
                                                <asp:Literal ID="Literal20" runat="server" Text='<%$ Resources:Content,strAccountDomain %>' />:                                        
                                </div>
                                <div class="col-md-6 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_UserDomain" runat="server"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-1 col-xs-12">
                                    <div class="form-group">
                                        <button type="button" class="btn btn-info btn-block btn-xs waves-effect"
                                            style="width: 30px;" data-trigger="focus" data-html="true" data-container="body" data-toggle="popover"
                                            data-placement="left"
                                            data-content='<asp:Literal runat="server" Text="<%$ Resources:Content,strAccountDomain%>" />'>
                                            <i class="material-icons">info</i>
                                        </button>
                                    </div>
                                </div>

                                <div class="col-md-5 col-xs-12 row-label">
                                    <asp:Literal ID="Literal33" runat="server" Text='<%$ Resources:Content,strAuthorizationRealm %>' />:
                                </div>
                                <div class="col-md-6 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_Realm" runat="server"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-1 col-xs-12">
                                    <div class="form-group">
                                        <button type="button" class="btn btn-info btn-block btn-xs waves-effect"
                                            style="width: 30px;" data-trigger="focus" data-html="true" data-container="body" data-toggle="popover"
                                            data-placement="left"
                                            data-content='<asp:Literal runat="server" Text="<%$ Resources:Content,strRealmUserPerformAuth%>" />'>
                                            <i class="material-icons">info</i>
                                        </button>
                                    </div>
                                </div>

                                <div class="col-md-5 col-xs-12 row-label">
                                    <asp:Literal ID="Literal21" runat="server" Text='<%$ Resources:Content,strProxyServer %>' />:
                                </div>
                                <div class="col-md-6 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_Proxy" runat="server"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-1 col-xs-12">
                                    <div class="form-group">
                                        <button type="button" class="btn btn-info btn-block btn-xs waves-effect"
                                            style="width: 30px;" data-trigger="focus" data-html="true" data-container="body" data-toggle="popover"
                                            data-placement="left"
                                            data-content='<asp:Literal runat="server" Text="<%$ Resources:Content,strPBProxyServerAddSendRequest%>" />'>
                                            <i class="material-icons">info</i>
                                        </button>
                                    </div>
                                </div>


                            </div>
                        </div>

                        <div class="row">
                            <div class="col-md-4 col-xs-12">
                                <asp:Button ID="btn_AssignNumber" CausesValidation="false" runat="server" Text='<%$ Resources:Content,strAssign %>' class="btn btn-primary waves-effect btnAction" />
                                <asp:Button ID="btn_CancelAssignNo" CausesValidation="false" runat="server" Text='<%$ Resources:Content,strCancel %>' class="btn btn-primary waves-effect" />
                            </div>
                        </div>
                    </div>

                    <div id="DivUpdateNumber" runat="server" visible="false">
                        <div class="row" runat="server">
                            <div class="col-xs-12">
                                <asp:Literal ID="Literal32" runat="server" Text='<%$ Resources:Content,strUseELicenseMsg %>' />
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-md-1 col-xs-12 row-label">
                                <asp:Literal ID="Literal6" runat="server" Text='<%$ Resources:Content,strUser %>' />:
                            </div>
                            <div class="col-md-4 col-xs-12">
                                <asp:DropDownList ID="ddl_UserUpdate" runat="server"></asp:DropDownList>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-xs-6">

                                <div class="col-md-11 col-xs-12 row-label">
                                    <asp:RadioButton ID="RB_UseNumberUpdate" Text='<%$ Resources:Content,UsePhone %>' runat="server" Checked="true" GroupName="NumberOptionUpdate" />
                                </div>
                                <div class="col-md-1 col-xs-12">
                                    <div class="form-group">
                                        <button type="button" class="btn btn-info btn-block btn-xs waves-effect"
                                            style="width: 30px;" data-trigger="focus" data-html="true" data-container="body" data-toggle="popover"
                                            data-placement="left"
                                            data-content='<asp:Literal runat="server" Text="<%$ Resources:Content,UsePhone%>" />'>
                                            <i class="material-icons">info</i>
                                        </button>
                                    </div>
                                </div>

                                <div class="col-md-3 col-xs-12 row-label">
                                    <asp:Literal ID="Literal7" runat="server" Text='<%$ Resources:Content,String1027 %>' />:
                                </div>
                                <div class="col-md-9 col-xs-12">
                                    <asp:DropDownList ID="ddl_NumbersUpdate" runat="server"></asp:DropDownList>
                                </div>

                                <div class="col-md-3 col-xs-12 row-label">
                                    <asp:Literal ID="Literal8" runat="server" Text='<%$ Resources:Content,Lync338 %>' EnableViewState="false" />:
                                </div>
                                <div class="col-md-9 col-xs-12">
                                    <asp:DropDownList ID="Ddl_SIPBundleUpdate" runat="server"></asp:DropDownList>
                                </div>

                            </div>

                            <div class="col-xs-6">

                                <div class="col-md-11 col-xs-12 row-label">
                                    <asp:RadioButton ID="RB_UseExtUpdate" runat="server" Text='<%$ Resources:Content,UseExt %>' Checked="false" GroupName="NumberOptionUpdate" />
                                </div>
                                <div class="col-xs-1">
                                    <div class="form-group">
                                        <button type="button" class="btn btn-info btn-block btn-xs waves-effect" style="width: 30px;" data-trigger="focus" data-html="true" data-container="body" data-toggle="popover"
                                            data-placement="left" title="Listed Plan/Addon Format"
                                            data-content='<asp:Literal runat="server" Text="<%$ Resources:Content,strUseaPbxWithExistingUAcc%>" />'>

                                            <i class="material-icons">info</i>
                                        </button>
                                    </div>
                                </div>

                                <div class="col-md-5 col-xs-12 row-label">
                                    *
                                                <asp:Literal ID="Literal22" runat="server" Text='<%$ Resources:Content,strExtensionNumber %>' />:
                                </div>
                                <div class="col-md-6 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_ExtUpdate" MaxLength="5" runat="server"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-1 col-xs-12">
                                    <div class="form-group">
                                        <button type="button" class="btn btn-info btn-block btn-xs waves-effect"
                                            style="width: 30px;" data-trigger="focus" data-html="true" data-container="body" data-toggle="popover"
                                            data-placement="left"
                                            data-content='<asp:Literal runat="server" Text="<%$ Resources:Content,strUseExtNoKnowPBX%>" />'>
                                            <i class="material-icons">info</i>
                                        </button>
                                    </div>
                                </div>

                                <div class="col-md-5 col-xs-12 row-label">
                                    *
                                                <asp:Literal ID="Literal23" runat="server" Text='<%$ Resources:Content,strAccountUsername %>' />:
                                </div>
                                <div class="col-md-6 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_UserNameUpdate" runat="server"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-1 col-xs-12">
                                    <div class="form-group">
                                        <button type="button" class="btn btn-info btn-block btn-xs waves-effect"
                                            style="width: 30px;" data-trigger="focus" data-html="true" data-container="body" data-toggle="popover"
                                            data-placement="left"
                                            data-content='<asp:Literal runat="server" Text="<%$ Resources:Content,strAccountUsername%>" />'>
                                            <i class="material-icons">info</i>
                                        </button>
                                    </div>
                                </div>

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

                                    <asp:Literal ID="Literal37" runat="server" Text='<%$ Resources:Content,strAuthorizationUserName %>' />:
                                </div>
                                <div class="col-md-6 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_AuthorizationUserNameUpdate" runat="server"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-1 col-xs-12">
                                    <div class="form-group">
                                        <button type="button" class="btn btn-info btn-block btn-xs waves-effect"
                                            style="width: 30px;" data-trigger="focus" data-html="true" data-container="body" data-toggle="popover"
                                            data-placement="left"
                                            data-content='<asp:Literal runat="server" Text="<%$ Resources:Content,strAccAuthenUserName%>" />'>
                                            <i class="material-icons">info</i>
                                        </button>
                                    </div>
                                </div>

                                <div class="col-md-5 col-xs-12 row-label">
                                    *
                                                    <asp:Literal ID="Literal24" runat="server" Text='<%$ Resources:Content,strAccountPassword %>' />:
                                </div>
                                <div class="col-md-6 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_PasswordUpdate" TextMode="Password" runat="server"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-1 col-xs-12">
                                    <div class="form-group">
                                        <button type="button" class="btn btn-info btn-block btn-xs waves-effect"
                                            style="width: 30px;" data-trigger="focus" data-html="true" data-container="body" data-toggle="popover"
                                            data-placement="left"
                                            data-content='<asp:Literal runat="server" Text="<%$ Resources:Content,strAccountPassword%>" />'>
                                            <i class="material-icons">info</i>
                                        </button>
                                    </div>
                                </div>

                                <div class="col-md-5 col-xs-12 row-label">
                                    *
                                                <asp:Literal ID="Literal25" runat="server" Text='<%$ Resources:Content,strAccountDomain %>' />:
                                </div>
                                <div class="col-md-6 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_UserDomainUpdate" runat="server"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-1 col-xs-12">
                                    <div class="form-group">
                                        <button type="button" class="btn btn-info btn-block btn-xs waves-effect"
                                            style="width: 30px;" data-trigger="focus" data-html="true" data-container="body" data-toggle="popover"
                                            data-placement="left"
                                            data-content='<asp:Literal runat="server" Text="<%$ Resources:Content,strAccountDomain%>" />'>
                                            <i class="material-icons">info</i>
                                        </button>
                                    </div>
                                </div>

                                <div class="col-md-5 col-xs-12 row-label">
                                    <asp:Literal ID="Literal34" runat="server" Text='<%$ Resources:Content,strAuthorizationRealm %>' />:
                                </div>
                                <div class="col-md-6 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_RealmUpdate" runat="server"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-1 col-xs-12">
                                    <div class="form-group">
                                        <button type="button" class="btn btn-info btn-block btn-xs waves-effect"
                                            style="width: 30px;" data-trigger="focus" data-html="true" data-container="body" data-toggle="popover"
                                            data-placement="left"
                                            data-content='<asp:Literal runat="server" Text="<%$ Resources:Content,strRealmUserPerformAuth%>" />'>
                                            <i class="material-icons">info</i>
                                        </button>
                                    </div>
                                </div>

                                <div class="col-md-5 col-xs-12 row-label">
                                    <asp:Literal ID="Literal26" runat="server" Text='<%$ Resources:Content,strProxyServer %>' />:
                                </div>
                                <div class="col-md-6 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_ProxyUpdate" runat="server"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-1 col-xs-12">
                                    <div class="form-group">
                                        <button type="button" class="btn btn-info btn-block btn-xs waves-effect"
                                            style="width: 30px;" data-trigger="focus" data-html="true" data-container="body" data-toggle="popover"
                                            data-placement="left"
                                            data-content='<asp:Literal runat="server" Text="<%$ Resources:Content,strPBProxyServerAddSendRequest%>" />'>
                                            <i class="material-icons">info</i>
                                        </button>
                                    </div>
                                </div>

                            </div>
                        </div>

                        <div class="row">
                            <div class="col-md-4 col-xs-12">
                                <asp:Button ID="btn_UpdateNumber" CausesValidation="false" runat="server" Text='<%$ Resources:Content,strUpdate %>' class="btn btn-primary waves-effect btnAtion" />
                                <asp:Button ID="btn_Cancel" CausesValidation="false" runat="server" Text='<%$ Resources:Content,Cancel %>' class="btn btn-primary waves-effect" />
                            </div>
                        </div>

                    </div>

                    <div id="DivAssignedNumberList" runat="server">

                        <div class="row Div_OpsRow" id="Div_OpsRow" runat="server">
                            <div class="col-xs-12">
                                <div class="card">
                                    <div class="header">
                                        <h3>
                                            <%= Resources.Content.SMI0423%>                                                                                                                                 
                                        </h3>
                                    </div>
                                    <div class="body">
                                        <div class="clearfix">
                                            <asp:Button ID="Btn_AddUserNumber" class="btn btn-primary waves-effect btnAction" runat="server"
                                                Text='<%$ Resources:Content,strAssignnumberorExtension %>' />
                                            <asp:Button ID="Btn_BulkAssignNumberOrExtension" class="btn btn-primary waves-effect btnAction" runat="server"
                                                Text='<%$ Resources:Content,strBulkAssignNumberOrExtension %>' />
                                            <asp:Button ID="Btn_BulkRemoveNumberorExtension" class="btn btn-primary waves-effect btnAction" runat="server"
                                                Text='<%$ Resources:Content,strBulkRemoveNumberorExtension %>' />
                                            <asp:Button ID="btn_SyncUsers" class="btn btn-primary waves-effect btnAction" runat="server"
                                                Text='<%$ Resources:Content,strSyncUsers %>' />
                                            <asp:CheckBox ID="CB_IgnoreO365" Visible="false" runat="server" Text='<%$ Resources:Content,SkipO365ErrorinUNAssign %>' />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <asp:Panel ID="pnlAccountSearch" runat="server" DefaultButton="Btn_SrchNumber">
                            <div class="row">
                                <div class="panel-group search-panel" id="AS_VPSAccounts" role="tablist" aria-multiselectable="true">
                                    <div class="col-xs-12" role="tab" id="SH_VPSAccounts">
                                        <div class="card">
                                            <div class="header" role="button" data-toggle="collapse" data-parent="#AS_ClientList" href="#<%= CSB_VPSAccounts.ClientID %>" aria-expanded="true" aria-controls="SH_ClientList">
                                                <h3>
                                                    <%= Resources.Content.GN0000395%>
                                                </h3>
                                            </div>
                                            <div id="CSB_VPSAccounts" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_ClientList" aria-expanded="false">
                                                <div class="row">

                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                        <div class="form-group form-float">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_Usersrch" runat="server"></asp:TextBox>
                                                                <asp:Label ID="Label3" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strUser%>" class="form-label"></asp:Label>
                                                            </div>
                                                        </div>
                                                    </div>

                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                        <div class="form-group form-float">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_Phonesrch" runat="server" CssClass="allowonlyintegervalues" MaxLength="19"></asp:TextBox>
                                                                <asp:Label ID="Label8" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strPhoneORExt%>" class="form-label"></asp:Label>
                                                            </div>
                                                        </div>
                                                    </div>


                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                        <%--  <asp:Literal ID="Literal32" runat="server" Text='<%$ Resources:Content,Lync338 %>' EnableViewState="false" />:--%>

                                                        <asp:DropDownList ID="DDL_CallBundleSrch" runat="server"></asp:DropDownList>
                                                    </div>



                                                    <div class="col-xs-12">
                                                        <div class="form-group form-float">
                                                            <asp:Button ID="Btn_SrchNumber" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,GN0000391%>" />
                                                            <asp:Button ID="Btn_Clear" Visible="false" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,String289 %>" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </asp:Panel>

                        <EM:MPGridView ID="GV_AssignedNumbers" CssClass="table table-bordered table-striped table-hover" AllowSorting="false" AllowPaging="true"
                            EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">
                            <Columns>
                                <asp:TemplateField SortExpression="User" HeaderStyle-CssClass="col-xs-3" HeaderText='<%$ Resources:Content, strUser %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_User" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText='<%$ Resources:Content, strNumber %>' SortExpression="Number" HeaderStyle-CssClass="col-xs-3">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_Number" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText='<%$ Resources:Content, Lync338 %>' HeaderStyle-CssClass="col-xs-2">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_Bundle" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText='<%$ Resources:Content, strStatus %>' HeaderStyle-CssClass="col-xs-2">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_Status" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-2">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LB_Release" runat="server" Text="<%$ Resources:Content,strRelease %>"
                                            CssClass="btn btn-primary waves-effect btnAction" CommandName="Release" />
                                        <EM:ConfirmButtonExtender ID="CBE_Release" runat="server" ConfirmText="<%$Resources:Content,strReleaseConfirmation%>"
                                            TargetControlID="LB_Release">
                                        </EM:ConfirmButtonExtender>
                                        <asp:LinkButton ID="LB_Edit" runat="server" Text="<%$ Resources:Content,strEdit %>"
                                            CssClass="btn btn-primary waves-effect" CommandName="EditNumber" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <PagerTemplate>
                                <EM:Pager ID="Pager" runat="server" />
                            </PagerTemplate>
                        </EM:MPGridView>

                    </div>

                    <div id="DivBulkAssignNumber" runat="server" visible="false">
                        <asp:Panel ID="Pnl_Import" runat="server">
                            <%--<div class="col-xs-12">--%>
                            <div class="card">
                                <div class="header col-xs-12" style="padding-top: 0px; padding-bottom: 0px;">
                                    <div class="col-sm-6 col-xs-12 align-left m-t-15">
                                        <h3><%= Resources.Content.strBulkAssignNumberOrExtension%></h3>
                                    </div>
                                    <div class="col-sm-6 col-xs-12 align-right m-t-5">
                                        <asp:LinkButton ID="LB_DownloadSample" runat="server" Text="<%$ Resources:Content,DownloadSampleFile %>" class="btn btn-primary waves-effect"></asp:LinkButton>
                                    </div>
                                </div>

                                <div class="body">
                                    <div class="row">
                                        <div class="col-sm-5 col-xs-12 row-label">
                                            <label>
                                                <asp:Literal ID="Ltl_BrowseFile" runat="server" Text="<%$ Resources:Content,strSelectfiletoAddUpdateAssignment %>"></asp:Literal>:</label>
                                        </div>
                                        <div class="col-sm-5 col-xs-12">
                                            <div class="form-group">
                                                <div class="form-group">
                                                    <div class="fileupload fileupload-new" data-provides="fileupload">
                                                        <span class="btn btn-primary btn-file"><span class="fileupload-new"><%= Resources.Content.strSelectFile%></span>
                                                            <span class="fileupload-exists"><%= Resources.Content.GN0000385%></span>
                                                            <asp:FileUpload ID="FU_BrowseFile" runat="server" />
                                                        </span>
                                                        <span class="fileupload-preview"></span>
                                                        <a href="#" class="close fileupload-exists" data-dismiss="fileupload" style="float: none">×</a>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-sm-2 col-xs-12">
                                            <asp:Button ID="Btn_BulkUserAssigFromFile" runat="server" Text="<%$ Resources:Content,strSave%>" class="btn btn-primary waves-effect" />
                                            <asp:Button ID="Btn_CancelBulkUserAssig" runat="server" Text="<%$ Resources:Content,GN0000572%>" class="btn btn-primary waves-effect" />
                                        </div>


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

                                    </div>
                                </div>
                            </div>
                            <%--</div>--%>
                        </asp:Panel>
                    </div>

                    <div id="DivBulkRemoveNumber" runat="server" visible="false">
                        <asp:Panel ID="Panel3" runat="server">
                            <%--<div class="col-xs-12">--%>
                            <div class="card">
                                <div class="header col-xs-12" style="padding-top: 0px; padding-bottom: 0px;">
                                    <div class="col-sm-6 col-xs-12 align-left m-t-15">
                                        <h3><%= Resources.Content.strBulkRemoveNumberorExtension%></h3>
                                    </div>
                                    <div class="col-sm-6 col-xs-12 align-right m-t-5">
                                        <asp:LinkButton ID="LB_DownloadSampleRemove" runat="server" Text="<%$ Resources:Content,DownloadSampleFile %>" class="btn btn-primary waves-effect"></asp:LinkButton>
                                    </div>
                                </div>

                                <div class="body">
                                    <div class="row">
                                        <div class="col-sm-5 col-xs-12 row-label">
                                            <label>
                                                <asp:Literal ID="Literal40" runat="server" Text="<%$ Resources:Content,strSelectfiletoAddUpdateAssignment %>"></asp:Literal>:</label>
                                        </div>
                                        <div class="col-sm-5 col-xs-12">
                                            <div class="form-group">
                                                <div class="form-group">
                                                    <div class="fileupload fileupload-new" data-provides="fileupload">
                                                        <span class="btn btn-primary btn-file"><span class="fileupload-new"><%= Resources.Content.strSelectFile%></span>
                                                            <span class="fileupload-exists"><%= Resources.Content.GN0000385%></span>
                                                            <asp:FileUpload ID="FU_BrowseFileRemove" runat="server" />
                                                        </span>
                                                        <span class="fileupload-preview"></span>
                                                        <a href="#" class="close fileupload-exists" data-dismiss="fileupload" style="float: none">×</a>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-sm-2 col-xs-12">
                                            <asp:Button ID="Btn_ApplyBulkRemove" runat="server" Text="<%$ Resources:Content,strSave%>" class="btn btn-primary waves-effect" />
                                            <asp:Button ID="btn_CancelBulkRemove" runat="server" Text="<%$ Resources:Content,GN0000572%>" class="btn btn-primary waves-effect" />
                                        </div>


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

                                    </div>
                                </div>
                            </div>
                            <%--</div>--%>
                        </asp:Panel>
                    </div>



                    <%--</div>
                        </div>
                    </div>--%>
                </div>
            </div>
        </div>
        <%-- </div>
        </div>--%>
    </asp:Panel>

    <asp:Panel ID="Pnl_ResourceAssignment" runat="server" Visible="false">
        <%--<div class="panel-group search-panel" runat="server" id="AS_ResourceAccounts" role="tablist" aria-multiselectable="true" visible="false">
            <div class="col-xs-12" role="tab" id="SH_ResourceAccounts">--%>
        <div class="col-xs-12">
            <div class="card">
                <%--<div class="header">
                    <%--role="button" data-toggle="collapse" data-parent="#AS_ResourceAccounts" href="#<%= CSB_ResourceAccounts.ClientID%>" aria-expanded="true" aria-controls="SH_NumberAssignment"
                    <h3>
                        <%= Resources.Content.strResAccountNumberAssig%>                                                                                                                                 
                    </h3>
                </div>--%>
                <%--<div id="CSB_ResourceAccounts" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_ResourceAccounts" aria-expanded="false">
                        <div class="row">
                            <div class="col-xs-12">--%>

                <div class="body">
                    <div runat="server" id="Div_ResourceAddUpdate" visible="false">

                        <div class="row" runat="server">
                            <div class="col-xs-12">
                                <asp:Literal ID="Literal13" runat="server" Text='<%$ Resources:Content,strResourceNumberMsg %>' />
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-md-1 col-xs-12 row-label">
                                <asp:Literal ID="Literal15" runat="server" Text='<%$ Resources:Content,strResource %>' />:
                            </div>
                            <div class="col-md-4 col-xs-12">
                                <asp:DropDownList ID="DDL_Resource" runat="server"></asp:DropDownList>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-xs-6">

                                <div class="col-md-10 col-xs-12 row-label m-l--15">
                                    <asp:RadioButton ID="RDB_UseResNumber" Text='<%$ Resources:Content,UsePhone %>' runat="server" Checked="true" AutoPostBack="true" GroupName="NumberOptionRes" />
                                </div>
                                <div class="col-md-2 col-xs-12">
                                    <div class="form-group">
                                        <button type="button" class="btn btn-info btn-block btn-xs waves-effect"
                                            style="width: 30px;" data-trigger="focus" data-html="true" data-container="body" data-toggle="popover"
                                            data-placement="left"
                                            data-content='<asp:Literal runat="server" Text="<%$ Resources:Content,UsePhone%>" />'>
                                            <i class="material-icons">info</i>
                                        </button>
                                    </div>
                                </div>

                                <div class="col-md-3 col-xs-12 row-label m-l--15">
                                    <asp:Literal ID="Literal17" runat="server" Text='<%$ Resources:Content,strNumber %>' />:
                                </div>
                                <div class="col-md-9 col-xs-12">
                                    <asp:DropDownList ID="DDL_ResourceNumber" runat="server"></asp:DropDownList>
                                </div>
                                <div class="col-md-3 col-xs-12 row-label  m-l--15">
                                    <asp:Literal ID="Literal42" runat="server" Text='<%$ Resources:Content,Lync338 %>' EnableViewState="false" />:
                                </div>
                                <div class="col-md-9 col-xs-12">
                                    <asp:DropDownList ID="DDL_ResourceSIPBundle" runat="server"></asp:DropDownList>
                                </div>


                            </div>
                            <div class="col-xs-6">

                                <div class="col-md-11 col-xs-12  row-label">
                                    <asp:RadioButton ID="RDB_ResExtension" runat="server" Text='<%$ Resources:Content,UseExt %>' Checked="false" GroupName="NumberOptionRes" />
                                </div>
                                <div class="col-md-1 col-xs-12">
                                    <div class="form-group">
                                        <button type="button" class="btn btn-info btn-block btn-xs waves-effect"
                                            style="width: 30px;" data-trigger="focus" data-html="true" data-container="body" data-toggle="popover"
                                            data-placement="left"
                                            data-content='<asp:Literal runat="server" Text="<%$ Resources:Content,strUseaPbxWithExistingUAcc%>" />'>
                                            <i class="material-icons">info</i>
                                        </button>
                                    </div>
                                </div>


                                <div class="col-md-5 col-xs-12 row-label">
                                    *
                                            <asp:Literal ID="Literal27" runat="server" Text='<%$ Resources:Content,strExtensionNumber %>' />:
                                </div>
                                <div class="col-md-6 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="Txt_ResExtensions" runat="server" CssClass="allowonlyintegervalues"></asp:TextBox>
                                        </div>
                                        <asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator1"
                                            Display="Dynamic"
                                            ControlToValidate="Txt_ResExtensions"
                                            ValidationExpression="^[0-9]{3,5}$"
                                            ErrorMessage="Minimum 3 and Maximum 5 integers value is allowed.">
                                        </asp:RegularExpressionValidator>
                                        <asp:RangeValidator ID="RangeValidator1" Type="Integer" ControlToValidate="Txt_ResExtensions" MinimumValue="200" MaximumValue="99999" runat="server"></asp:RangeValidator>
                                    </div>
                                </div>
                                <div class="col-md-1 col-xs-12">
                                    <div class="form-group">
                                        <button type="button" class="btn btn-info btn-block btn-xs waves-effect"
                                            style="width: 30px;" data-trigger="focus" data-html="true" data-container="body" data-toggle="popover"
                                            data-placement="left"
                                            data-content='<asp:Literal runat="server" Text="<%$ Resources:Content,strUseExtNoKnowPBX%>" />'>
                                            <i class="material-icons">info</i>
                                        </button>
                                    </div>
                                </div>


                                <div class="col-md-5 col-xs-12 row-label">
                                    *
                                            <asp:Literal ID="Literal28" runat="server" Text='<%$ Resources:Content,strAccountUsername %>' />:
                                </div>
                                <div class="col-md-6 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="Txt_ResUserName" runat="server"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-1 col-xs-12">
                                    <div class="form-group">
                                        <button type="button" class="btn btn-info btn-block btn-xs waves-effect"
                                            style="width: 30px;" data-trigger="focus" data-html="true" data-container="body" data-toggle="popover"
                                            data-placement="left"
                                            data-content='<asp:Literal runat="server" Text="<%$ Resources:Content,strAccountUsername%>" />'>
                                            <i class="material-icons">info</i>
                                        </button>
                                    </div>
                                </div>


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

                                    <asp:Literal ID="Literal38" runat="server" Text='<%$ Resources:Content,strAuthorizationUserName %>' />:
                                </div>
                                <div class="col-md-6 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="Txt_ResAuthUsername" runat="server"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-1 col-xs-12">
                                    <div class="form-group">
                                        <button type="button" class="btn btn-info btn-block btn-xs waves-effect"
                                            style="width: 30px;" data-trigger="focus" data-html="true" data-container="body" data-toggle="popover"
                                            data-placement="left"
                                            data-content='<asp:Literal runat="server" Text="<%$ Resources:Content,strAccAuthenUserName%>" />'>
                                            <i class="material-icons">info</i>
                                        </button>
                                    </div>
                                </div>


                                <div class="col-md-5 col-xs-12 row-label">
                                    *
                                            <asp:Literal ID="Literal29" runat="server" Text='<%$ Resources:Content,strAccountPassword %>' />:
                                </div>
                                <div class="col-md-6 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="Txt_ResPassword" TextMode="Password" runat="server"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-1 col-xs-12">
                                    <div class="form-group">
                                        <button type="button" class="btn btn-info btn-block btn-xs waves-effect"
                                            style="width: 30px;" data-trigger="focus" data-html="true" data-container="body" data-toggle="popover"
                                            data-placement="left"
                                            data-content='<asp:Literal runat="server" Text="<%$ Resources:Content,strAccountPassword%>" />'>
                                            <i class="material-icons">info</i>
                                        </button>
                                    </div>
                                </div>


                                <div class="col-md-5 col-xs-12 row-label">
                                    *
                                            <asp:Literal ID="Literal30" runat="server" Text='<%$ Resources:Content,strAccountDomain %>' />:                                        
                                </div>
                                <div class="col-md-6 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="Txt_ResDomain" runat="server"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-1 col-xs-12">
                                    <div class="form-group">
                                        <button type="button" class="btn btn-info btn-block btn-xs waves-effect"
                                            style="width: 30px;" data-trigger="focus" data-html="true" data-container="body" data-toggle="popover"
                                            data-placement="left"
                                            data-content='<asp:Literal runat="server" Text="<%$ Resources:Content,strAccountDomain%>" />'>
                                            <i class="material-icons">info</i>
                                        </button>
                                    </div>
                                </div>


                                <div class="col-md-5 col-xs-12 row-label">
                                    <asp:Literal ID="Literal35" runat="server" Text='<%$ Resources:Content,strRealm %>' />:
                                </div>
                                <div class="col-md-6 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="Txt_ResRealm" runat="server"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-1 col-xs-12">
                                    <div class="form-group">
                                        <button type="button" class="btn btn-info btn-block btn-xs waves-effect"
                                            style="width: 30px;" data-trigger="focus" data-html="true" data-container="body" data-toggle="popover"
                                            data-placement="left"
                                            data-content='<asp:Literal runat="server" Text="<%$ Resources:Content,strRealmUserPerformAuth%>" />'>
                                            <i class="material-icons">info</i>
                                        </button>
                                    </div>
                                </div>


                                <div class="col-md-5 col-xs-12 row-label">
                                    <asp:Literal ID="Literal31" runat="server" Text='<%$ Resources:Content,strProxyServer %>' />:
                                </div>
                                <div class="col-md-6 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="Txt_ResProxy" runat="server"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-1 col-xs-12">
                                    <div class="form-group">
                                        <button type="button" class="btn btn-info btn-block btn-xs waves-effect"
                                            style="width: 30px;" data-trigger="focus" data-html="true" data-container="body" data-toggle="popover"
                                            data-placement="left"
                                            data-content='<asp:Literal runat="server" Text="<%$ Resources:Content,strPBProxyServerAddSendRequest%>" />'>
                                            <i class="material-icons">info</i>
                                        </button>
                                    </div>
                                </div>

                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-4 col-xs-12">
                                <asp:Button ID="Btn_AssignResourceNumber" CausesValidation="false" runat="server" Text='<%$ Resources:Content,strAssign %>' class="btn btn-primary waves-effect btnAction" />
                                <asp:Button ID="Btn_CancelResUpdate" CausesValidation="false" runat="server" Text='<%$ Resources:Content,Cancel %>' class="btn btn-primary waves-effect" />
                            </div>
                        </div>
                    </div>

                    <div runat="server" id="Div_ResourceGrid">

                        <div class="row Div_OpsRow" id="Div_OpsRow2" runat="server">
                            <div class="col-xs-12">
                                <div class="card">
                                    <div class="header">
                                        <h3>
                                            <%= Resources.Content.SMI0423%>                                                                                                                                 
                                        </h3>
                                    </div>
                                    <div class="body">
                                        <div class="clearfix">
                                            <asp:Button ID="Btn_AddResource" class="btn btn-primary waves-effect btnAction" runat="server"
                                                Text='<%$ Resources:Content,strAssignnumberorExtension %>' />
                                            <asp:Button ID="Btn_BulkAssignNumberOrExtensionResource" class="btn btn-primary waves-effect btnAction" runat="server"
                                                Text='<%$ Resources:Content,strBulkAssignNumberOrExtension %>' />
                                            <asp:Button ID="Btn_BulkRemoveNumberorExtensionRes" class="btn btn-primary waves-effect btnAction" runat="server"
                                                Text='<%$ Resources:Content,strBulkRemoveNumberorExtension %>' />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <asp:Panel ID="Panel1" runat="server" DefaultButton="Btn_SrchNumber">
                            <div class="row">
                                <div class="panel-group search-panel" id="AS_ResourceSrch" role="tablist" aria-multiselectable="true">
                                    <div class="col-xs-12" role="tab" id="SH_ResourceSrch">
                                        <div class="card">
                                            <div class="header" role="button" data-toggle="collapse" data-parent="#AS_ClientList" href="#<%= CSB_ResourceSrch.ClientID %>" aria-expanded="true" aria-controls="SH_ClientList">
                                                <h3>
                                                    <%= Resources.Content.GN0000395%>
                                                </h3>
                                            </div>
                                            <div id="CSB_ResourceSrch" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_ClientList" aria-expanded="false">
                                                <div class="row">

                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                        <div class="form-group form-float">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_Resource" runat="server"></asp:TextBox>
                                                                <asp:Label ID="Label1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strResource%>" class="form-label"></asp:Label>
                                                            </div>
                                                        </div>
                                                    </div>

                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                        <div class="form-group form-float">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_ResNumberExt" runat="server" CssClass="allowonlyintegervalues" MaxLength="19"></asp:TextBox>
                                                                <asp:Label ID="Label2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strPhoneORExt%>" class="form-label"></asp:Label>
                                                            </div>
                                                        </div>
                                                    </div>


                                                    <div class="col-xs-12">
                                                        <div class="form-group form-float">
                                                            <asp:Button ID="Btn_SrchResNumber" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,GN0000391%>" />
                                                            <asp:Button ID="Btn_ClearRes" Visible="false" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,String289 %>" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </asp:Panel>

                        <EM:MPGridView ID="GV_AssignResource" CssClass="table table-bordered table-striped table-hover" AllowSorting="false" AllowPaging="true"
                            EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">
                            <Columns>
                                <asp:TemplateField SortExpression="User" HeaderStyle-CssClass="col-xs-3" HeaderText='<%$ Resources:Content, strResource %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_Resource" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText='<%$ Resources:Content, strNumber %>' SortExpression="Number" HeaderStyle-CssClass="col-xs-3">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_Number" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText='<%$ Resources:Content, Lync338 %>' HeaderStyle-CssClass="col-xs-2">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_Bundle" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText='<%$ Resources:Content, strStatus %>' HeaderStyle-CssClass="col-xs-2">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_Status" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-3">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LB_Release" runat="server" Text="<%$ Resources:Content,strRelease %>"
                                            CssClass="btn btn-primary waves-effect btnAction" CommandName="ReleaseResourceNumber" />
                                        <EM:ConfirmButtonExtender ID="CBE_Release" runat="server" ConfirmText="<%$Resources:Content,strReleaseConfirmation%>"
                                            TargetControlID="LB_Release">
                                        </EM:ConfirmButtonExtender>
                                        <asp:LinkButton ID="LB_Edit" runat="server" Text="<%$ Resources:Content,strEdit %>"
                                            CssClass="btn btn-primary waves-effect" CommandName="EditResourceNumber" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <PagerTemplate>
                                <EM:Pager ID="Pager" runat="server" />
                            </PagerTemplate>
                        </EM:MPGridView>
                    </div>

                    <div id="DivBulkAssignNumberRes" runat="server" visible="false">
                        <asp:Panel ID="Panel2" runat="server">
                            <%--<div class="col-xs-12">--%>
                            <div class="card">
                                <div class="header col-xs-12" style="padding-top: 0px; padding-bottom: 0px;">
                                    <div class="col-sm-6 col-xs-12 align-left m-t-15">
                                        <h3><%= Resources.Content.strBulkAssignNumberOrExtension%></h3>
                                    </div>
                                    <div class="col-sm-6 col-xs-12 align-right m-t-5">
                                        <asp:LinkButton ID="LB_DownloadSampleResource" runat="server" Text="<%$ Resources:Content,DownloadSampleFile %>" class="btn btn-primary waves-effect"></asp:LinkButton>
                                    </div>
                                </div>

                                <div class="body">
                                    <div class="row">
                                        <div class="col-sm-5 col-xs-12 row-label">
                                            <label>
                                                <asp:Literal ID="Literal39" runat="server" Text="<%$ Resources:Content,strSelectfiletoAddUpdateAssignment %>"></asp:Literal>:</label>
                                        </div>
                                        <div class="col-sm-5 col-xs-12">
                                            <div class="form-group">
                                                <div class="form-group">
                                                    <div class="fileupload fileupload-new" data-provides="fileupload">
                                                        <span class="btn btn-primary btn-file"><span class="fileupload-new"><%= Resources.Content.strSelectFile%></span>
                                                            <span class="fileupload-exists"><%= Resources.Content.GN0000385%></span>
                                                            <asp:FileUpload ID="FU_BrowseFileResource" runat="server" />
                                                        </span>
                                                        <span class="fileupload-preview"></span>
                                                        <a href="#" class="close fileupload-exists" data-dismiss="fileupload" style="float: none">×</a>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-sm-2 col-xs-12">
                                            <asp:Button ID="Btn_ApplyResource" runat="server" Text="<%$ Resources:Content,strSave%>" class="btn btn-primary waves-effect" />
                                            <asp:Button ID="Btn_CancelResource" runat="server" Text="<%$ Resources:Content,GN0000572%>" class="btn btn-primary waves-effect" />
                                        </div>


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

                                    </div>
                                </div>
                            </div>
                            <%--</div>--%>
                        </asp:Panel>
                    </div>

                    <div id="DivBulkRemoveNumberRes" runat="server" visible="false">
                        <asp:Panel ID="Panel4" runat="server">
                            <%--<div class="col-xs-12">--%>
                            <div class="card">
                                <div class="header col-xs-12" style="padding-top: 0px; padding-bottom: 0px;">
                                    <div class="col-sm-6 col-xs-12 align-left m-t-15">
                                        <h3><%= Resources.Content.strBulkRemoveNumberorExtension%></h3>
                                    </div>
                                    <div class="col-sm-6 col-xs-12 align-right m-t-5">
                                        <asp:LinkButton ID="LB_DownloadSampleRemoveRes" runat="server" Text="<%$ Resources:Content,DownloadSampleFile %>" class="btn btn-primary waves-effect"></asp:LinkButton>
                                    </div>
                                </div>

                                <div class="body">
                                    <div class="row">
                                        <div class="col-sm-5 col-xs-12 row-label">
                                            <label>
                                                <asp:Literal ID="Literal41" runat="server" Text="<%$ Resources:Content,strSelectfiletoAddUpdateAssignment %>"></asp:Literal>:</label>
                                        </div>
                                        <div class="col-sm-5 col-xs-12">
                                            <div class="form-group">
                                                <div class="form-group">
                                                    <div class="fileupload fileupload-new" data-provides="fileupload">
                                                        <span class="btn btn-primary btn-file"><span class="fileupload-new"><%= Resources.Content.strSelectFile%></span>
                                                            <span class="fileupload-exists"><%= Resources.Content.GN0000385%></span>
                                                            <asp:FileUpload ID="FU_BrowseFileRemoveRes" runat="server" />
                                                        </span>
                                                        <span class="fileupload-preview"></span>
                                                        <a href="#" class="close fileupload-exists" data-dismiss="fileupload" style="float: none">×</a>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-sm-2 col-xs-12">
                                            <asp:Button ID="Btn_ApplyBulkRemoveRes" runat="server" Text="<%$ Resources:Content,strSave%>" class="btn btn-primary waves-effect" />
                                            <asp:Button ID="btn_CancelBulkRemoveRes" runat="server" Text="<%$ Resources:Content,GN0000572%>" class="btn btn-primary waves-effect" />
                                        </div>


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

                                    </div>
                                </div>
                            </div>
                            <%--</div>--%>
                        </asp:Panel>
                    </div>
                </div>
            </div>
        </div>
        <%--</div>
                    </div>
                </div>--%>
        <%-- </div>
        </div>--%>
    </asp:Panel>

    <script language="javascript" type="text/javascript">



        function oncheckchange(checked) {
            var btn = document.getElementById("<%=btn_ApplyForwardCallHistory.ClientID%>")
            btn.disabled = false;
        }

        function CheckUserIsOnMicrosoft(Msg, IncMsg, PasswordRequried, PMsg) {
            var TxBx = document.getElementById("<%=TxBx_Tenantadminlogin.ClientID%>");
            <%--var TxBxP = document.getElementById("<%=TxBx_Tenantadminpassword.ClientID%>");--%>
            if (!TxBx.value.toLowerCase().includes(".onmicrosoft.")) {
                alert(Msg);
                TxBx.focus();
                return false;
            }

            var emailPat = /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
            var emailid = TxBx.value;
            var matchArray = emailid.match(emailPat);
            if (matchArray == null) {
                alert(IncMsg);
                document.getElementById("<%=TxBx_Tenantadminlogin.ClientID %>").focus();
                return false;
            }

            //if (PasswordRequried == "1") {

            //    if (TxBxP.value.trim() == "") {
            //        alert(PMsg);
            //        TxBxP.focus();
            //        return false;
            //    }

            //}


            return true;
        }


    </script>

    <%-- <script type="text/javascript">
        $(document).ready(function () {
            $("#ChBx_ForwardCallHistory").click(function () {
                if ($(this).is(":checked"))
                    $("#btn_ApplyForwardCallHistory").attr("disabled", true);
                else
                    $("#btn_ApplyForwardCallHistory").attr("disabled", true);
            });
        });
</script>--%>
</asp:Panel>


