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

<%--<script type="text/javascript">
    $(document).ready(function () {
        $('[id*=TxBx_MC]').width(400); // id which contains the text 'myTextBox'
    });
</script>
<style>
    .O365Table input[type="text"],textarea {
    width: 45%;
}
    
</style>--%>
<script type="text/javascript">

    function CopyToDisplayName() {
        $get('<%= TxBx_Alias.ClientID%>').value = $get('<%=TxBx_MCPrimarySMTPEmail.ClientID%>').value.replace(' ', '');
        $get('<%= TxBx_Alias.ClientID%>').value = $get('<%=TxBx_Alias.ClientID%>').value.split('@')[0];
    }

</script>

<asp:Panel ID='Pnl_ContactListing' runat="server" Visible='true'>
    <%--Search Option--%>

    <asp:Panel ID="Pnl_Filter" runat="server" DefaultButton="Btn_SearchMC">

        <div class="row">
            <div class="panel-group search-panel" id="AS_SearchFilter" role="tablist" aria-multiselectable="true">
                <div class="col-xs-12" role="tab" id="SH_SearchFilter">
                    <div class="card">
                        <div class="header" role="button" data-toggle="collapse" data-parent="#AS_SearchFilter" href="#<%= CSB_SearchFilter.ClientID%>" aria-expanded="true" aria-controls="SH_SearchFilter">
                            <h3>
                                <%= Resources.Content.GN0000395%>
                            </h3>
                        </div>
                        <div id="CSB_SearchFilter" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_SearchFilter" aria-expanded="false">
                            <div class="row">
                                <div class="col-md-3 col-sm-6 col-xs-12">
                                    <div class="form-group form-float">
                                        <asp:DropDownList ID="DDL_SrchMCSelect" runat="server">
                                            <asp:ListItem Text="<%$ Resources:Content,GN000170%>" Selected="True" Value="name"></asp:ListItem>
                                            <asp:ListItem Text="<%$ Resources:Content,GN0000652%>" Value="email"></asp:ListItem>
                                        </asp:DropDownList>
                                    </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_SearchMCValue" runat="server" MaxLength="200"></asp:TextBox>
                                            <asp:Label ID="Label9" runat="server" class="form-label" EnableViewState="false" Text="<%$ Resources:Content,GN0000387%>"></asp:Label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-md-3 col-sm-6 col-xs-12">
                                    <div class="form-group form-float">
                                        <asp:Button ID="Btn_SearchMC" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,GN0000391%>" />
                                        <asp:Button ID="Btn_ClearSearchMC" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,String289%>"
                                            OnClick="Btn_ClearSearchMC_Click" Visible="false" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>



    </asp:Panel>

    <%--Add Button--%>

    <div class="row">

        <div class="col-xs-12 Div_OpsRow" id="tblOperations" runat="server">
            <div class="card">
                <div class="header">
                    <h3>
                        <%= Resources.Content.GN00001320%>      <%--Operations--%>                                                                                                                             
                    </h3>
                </div>
                <div class="body">
                    <asp:Button ID="Btn_AddNewContact" runat="server" Text="<%$ Resources:Content,DGN1110540%>"
                        class="btn btn-primary waves-effect btnAction" />
                    <asp:Button ID="Btn_AddSyncJob" class="btn btn-primary waves-effect btnAction" runat="server" Text="<%$ Resources:Content,SyncAllContactsWithMicrosoftCSP %>" />
                    <asp:Button ID="Btn_AddBulkContacts" runat="server" Text="<%$ Resources:Content,E0090%>"
                        class="btn btn-primary waves-effect btnAction" Style="display: none" />
                    <asp:Button ID="Btn_RemoveAllContacts" runat="server" Custom1="Custom" Style="display: none" Text="<%$ Resources:Content,GN0000377%>"
                        class="btn btn-primary waves-effect btnAction" />
                    <EM:ConfirmButtonExtender ID="CBE_Btn_RemoveAllContacts" runat="server" ConfirmText="<%$ Resources:Content,GN000200 %>" TargetControlID="Btn_RemoveAllContacts" />
                </div>
            </div>
        </div>

    </div>


    <%--Listing--%>
    <div class="row">
        <div class="col-xs-12">
            <EM:MPGridView CssClass="table table-hover table-bordered table-striped table-responsive" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                ID="GV_MailContacts" AllowPaging="True" AllowSorting="true" runat="server" AutoGenerateColumns="false">

                <Columns>
                    <asp:TemplateField HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                        <HeaderTemplate>
                            <span class="option-menu">
                                <asp:CheckBox ID="ChkBx_All" Text=" " runat="server" onclick="SetCheckedHeader(this.checked, this,'all');" />
                            </span>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <span class="option-menu">
                                <asp:CheckBox ID="ChkBx_All" Text=" " runat="server" onclick="SetCheckedHeader(this.checked, this,'1');" />
                            </span>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN00001113%>" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3" SortExpression="DisplayName">
                        <ItemTemplate>
                            <asp:Image ID="Image10" runat="server" SkinID="MailContact" />&nbsp;
                    <asp:Label ID="LB_ContactDisplayName" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000491%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2" SortExpression="ExternalEmailAddress">
                        <ItemTemplate>
                            <asp:Label ID="LB_Email" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Status" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                        <ItemTemplate>

                            <asp:HyperLink ID="LB_Status" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000360%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                        <ItemTemplate>
                            <asp:LinkButton ID="LB_EditContact" runat="server" CommandName="Edit_Contact" CssClass="btn btn-primary"
                                Text="<%$ Resources:Content,GN0000276%>"></asp:LinkButton>
                            <asp:LinkButton ID="LB_Delete" runat="server" Text="<%$ Resources:Content,GN0000377%>"
                                CommandName="Delete_Contact" CssClass="btn btn-primary btnAction"></asp:LinkButton>
                            <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,CBE001%>"
                                TargetControlID="LB_Delete" runat="server">
                            </EM:ConfirmButtonExtender>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <%--PagerTemplate Start--%>
                <PagerTemplate>
                    <EM:Pager ID="Pager" runat="server" />
                </PagerTemplate>
                <%--PagerTemplate End--%>
            </EM:MPGridView>
        </div>
    </div>
</asp:Panel>

<asp:Panel ID='Pnl_ContactAddEdit' runat="server" Visible='false' DefaultButton="Btn_AddConfirm">

    <div class="row">
        <div class="col-xs-12">
            <div class="card">
                <div class="header">
                    <div class="displayInlineBlock">
                        <h3>
                            <asp:Literal ID="Ltrl_ContactDetailsHeading" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110540%>" />
                            <asp:Label ID="lbl_Contact" runat="server" Visible="false" />
                        </h3>
                    </div>
                    <asp:LinkButton ID="Lbtn_GoBack" runat="server" Text="<%$ Resources:Content,String1018 %>" CausesValidation="false"
                        class="btn btn-primary waves-effect pull-right m-t--4px" />
                </div>
                <div class="body">
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *
                                            <asp:Literal ID="Literal45" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001113%>" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_MCContactName" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RFV_TxBx_ContactName" runat="server" ControlToValidate="TxBx_MCContactName"
                                        ValidationGroup="mcontact" SetFocusOnError="true" Display="None" ErrorMessage="<%$ Resources:Content,EM000001%>"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="row" id="Tr_ContactPrimaryMail" runat="server">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *
                                            <asp:Literal ID="Literal47" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000491%>" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_MCPrimarySMTPEmail" runat="server" onChange="CopyToDisplayName()" />
                                    <asp:RequiredFieldValidator ID="RFV_TxBx_MCPrimarySMTPEmail" runat="server" ControlToValidate="TxBx_MCPrimarySMTPEmail"
                                        ValidationGroup="mcontact" SetFocusOnError="true" Display="None" ErrorMessage="<%$ Resources:Content,EM000001%>"></asp:RequiredFieldValidator>
                                   <%-- <asp:RegularExpressionValidator ID="REV_TxBx_MCPrimarySMTPEmail" runat="server" ErrorMessage='<%$ Resources:Content,SMI00940%>'
                                        ControlToValidate="TxBx_MCPrimarySMTPEmail" Display="None" ValidationExpression="<%$ Resources:MPRegex,EmailAddress%>"
                                        ValidationGroup="mcontact" SetFocusOnError="true"></asp:RegularExpressionValidator>--%>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *
                                        <asp:Literal ID="Literal2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Alias%>" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_Alias" runat="server" onKeyup="this.value = this.value.replace(' ','');" />
                                    <asp:RequiredFieldValidator ID="RFV_TxBx_Alias" runat="server" ControlToValidate="TxBx_Alias"
                                        ValidationGroup="mcontact" SetFocusOnError="true" Display="None" ErrorMessage="<%$ Resources:Content,EM000001%>"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal48" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110527%>" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:CheckBox ID="ChBx_HideFromOtherALs" Text=" " runat="server" />
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-xs-12">
                            <div class="panel-group" id="accordion_1" role="tablist" aria-multiselectable="true">

                                <div class="panel panel-primary">
                                    <div class="panel-heading" role="tab" id="headingOne_1">
                                        <h2 class="panel-title">
                                            <a role="button" data-toggle="collapse" data-parent="#accordion_1" href="#collapseOne_1" aria-expanded="true" aria-controls="collapseOne_1" class="">
                                                <%= Resources.Content.DGN1110535%>
                                            </a>
                                        </h2>
                                    </div>
                                    <div id="collapseOne_1" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne_1" aria-expanded="true">
                                        <div class="panel-body">
                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <asp:Literal ID="Literal51" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110336%>" />:
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <div class="form-group">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_MCInitials" runat="server" MaxLength="6"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <asp:Literal ID="Literal52" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001132%>" />:                                                         
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <div class="form-group">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_MCFirstName" runat="server"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <asp:Literal ID="Literal54" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001133%>" />:                                                          
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <div class="form-group">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_MCLastName" runat="server"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <asp:Literal ID="Literal55" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110530%>" />:                                
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <div class="form-group">
                                                        <asp:TextBox runat="server" ID="TxBx_MCAddress" TextMode="MultiLine" Width="100%" Rows="7"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <asp:Literal ID="Literal56" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000880%>" />:                                                            
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <div class="form-group">
                                                        <div class="form-line">
                                                            <asp:TextBox runat="server" ID="TxBx_MCCity"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <asp:Literal ID="Literal57" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001313%>" />:                               
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <div class="form-group">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_MCState" runat="server"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <asp:Literal ID="Literal58" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001522%>" />:                                                            
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <div class="form-group">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_MCZip" runat="server"></asp:TextBox>
                                                            <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender5" runat="server" TargetControlID="TxBx_MCZip"
                                                                FilterType="Numbers,UppercaseLetters,LowercaseLetters,Custom" ValidChars="-_ ">
                                                            </EM:FilteredTextBoxExtender>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <asp:Literal ID="Literal59" runat="server" EnableViewState="false" Text="<%$ Resources:Content,FAM0058%>" />:                                                           
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <div class="form-group">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_MCCountries" runat="server" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <asp:Literal ID="Literal60" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001524%>" />:                                                          
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <div class="form-group">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_MCMobile" runat="server"></asp:TextBox>
                                                            <asp:RegularExpressionValidator ErrorMessage="<%$ Resources:Content,DGN1110070%>"
                                                                ID="RegularExpressionValidator6" runat="server" ControlToValidate="TxBx_MCMobile"
                                                                Display="None" SetFocusOnError="True" ValidationExpression="^([+]?[\s0-9()-]{5,20})$"
                                                                ValidationGroup="mcontact"></asp:RegularExpressionValidator>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <asp:Literal ID="Literal61" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000886%>" />:
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <div class="form-group">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_MCFax" runat="server"></asp:TextBox>
                                                            <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" runat="server" TargetControlID="TxBx_MCFax"
                                                                FilterType="Numbers,Custom" ValidChars="+-() ">
                                                            </EM:FilteredTextBoxExtender>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <asp:Literal ID="Literal62" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110537%>" />:                                                          
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <div class="form-group">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_MCBusinessPhone" runat="server"></asp:TextBox>
                                                            <asp:RegularExpressionValidator ErrorMessage="<%$ Resources:Content,DGN1110070%>"
                                                                ID="RegularExpressionValidator8" runat="server" ControlToValidate="TxBx_MCBusinessPhone"
                                                                Display="None" SetFocusOnError="True" ValidationExpression="^([+]?[\s0-9()-]{5,20})$"
                                                                ValidationGroup="mcontact"></asp:RegularExpressionValidator>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <asp:Literal ID="Literal63" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110538%>" />:
                                
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <div class="form-group">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_MCHomePhone" runat="server"></asp:TextBox>
                                                            <asp:RegularExpressionValidator ErrorMessage="<%$ Resources:Content,DGN1110070%>"
                                                                ID="RegularExpressionValidator9" runat="server" ControlToValidate="TxBx_MCHomePhone"
                                                                Display="None" SetFocusOnError="True" ValidationExpression="^([+]?[\s0-9()-]{5,20})$"
                                                                ValidationGroup="mcontact"></asp:RegularExpressionValidator>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <asp:Literal ID="Literal64" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001336%>" />:
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <div class="form-group">

                                                        <asp:TextBox ID="TxBx_MCNotes" runat="server" TextMode="MultiLine" Rows="7" Width="100%"></asp:TextBox>

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

                                        </div>


                                    </div>
                                </div>

                                <div class="panel panel-primary">
                                    <div class="panel-heading" role="tab" id="headingOne_5">
                                        <h4 class="panel-title">
                                            <a role="button" data-toggle="collapse" data-parent="#accordion_1" href="#collapseOne_5" aria-expanded="false" aria-controls="collapseOne_5" class="collapsed">
                                                <%= Resources.Content.DGN1110357%>
                                            </a>
                                        </h4>
                                    </div>
                                    <div id="collapseOne_5" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne_5" aria-expanded="false" style="height: 0px;">
                                        <div class="panel-body">
                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <asp:Literal ID="Literal67" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110358%>" />:  
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <div class="form-group">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_MCJobTitle" runat="server"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <asp:Literal ID="Literal68" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001134%>" />:                                                          
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <div class="form-group">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_MCCompany" runat="server"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <asp:Literal ID="Literal69" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000374%>" />:                               
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <div class="form-group">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_MCDepartment" runat="server"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <asp:Literal ID="Literal70" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110359%>" />:                           
                               
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <div class="form-group">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_MCOffice" runat="server"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <asp:Literal ID="Literal1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110360%>" />:                                                          
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <div class="form-group">
                                                        <asp:DropDownList ID="DDL_MCManagedBy" runat="server"></asp:DropDownList>
                                                    </div>
                                                </div>
                                            </div>

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

                                <div class="panel panel-primary">
                                    <div class="panel-heading" role="tab" id="headingTwo_5">
                                        <h4 class="panel-title">
                                            <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion_1" href="#collapseTwo_5" aria-expanded="false" aria-controls="collapseTwo_5">
                                                <%= Resources.Content.FAM0095%>
                                            </a>
                                        </h4>
                                    </div>
                                    <div id="collapseTwo_5" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo_5" aria-expanded="false">
                                        <div class="panel-body">
                                            <div class="row">
                                                <div class="col-xs-12">
                                                    <asp:TextBox ID="TxBx_Mailtip" runat="server" TextMode="MultiLine" Width="100%" Rows="7"></asp:TextBox>
                                                    <%--MaxLength="173" CssClass="allowhtml" Columns="2"--%>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>

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






                    <div class="row">
                        <div class="col-xs-12">
                            <asp:Button ID="Btn_AddConfirm" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,GN0000281%>" ValidationGroup="mcontact" />
                            <asp:Button ID="Btn_AddClose" runat="server" class="btn btn-primary waves-effect" CausesValidation="false" Text="<%$ Resources:Content,GN0000572%>" />
                            <asp:ValidationSummary ID="VS_Domain" runat="server" ValidationGroup="mcontact" ShowMessageBox="true" ShowSummary="false" />
                        </div>
                    </div>

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

<script lang="javascript">
    AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender3.ClientID%>');
    AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender5.ClientID%>');
</script>