<%@ control language="VB" autoeventwireup="false" inherits="RCC_Voice_CC_Company, MachSol.MachPanel.Web" %>

<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility" TagPrefix="EM" %>

<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Assembly="AjaxControls" Namespace="AjaxControls" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="UC" %>

<script type="text/javascript">
    function CopyToHouseNumber(IsCompany) {

        if (IsCompany == 1) {
            if ($get('<%= TxBx_Company_HouseNumber.ClientID%>').value != '')
                return;

            var addr = $get('<%=TxBx_Company_Street.ClientID%>').value;
            var res = addr.split(" ");
            var i;

            for (i = res.length; i >= 0; i--) {
                if (!isNaN(res[i])) {
                    $get('<%= TxBx_Company_HouseNumber.ClientID%>').value = res[i];
                    $get('<%=TxBx_Company_Street.ClientID%>').value = $get('<%=TxBx_Company_Street.ClientID%>').value.replace(res[i], "").replace("  ", " ");
                    return;
                }
            }

            $($get('<%= TxBx_Company_HouseNumber.ClientID%>')).trigger('change');
        }
        else {
            if ($get('<%= TxBx_ContactPerson_HouseNumber.ClientID%>').value != '')
                return;

            var addr = $get('<%=TxBx_ContactPerson_Street.ClientID%>').value;
            var res = addr.split(" ");
            var i;

            for (i = res.length; i >= 0; i--) {
                if (!isNaN(res[i])) {
                    $get('<%= TxBx_ContactPerson_HouseNumber.ClientID%>').value = res[i];
                    $get('<%=TxBx_ContactPerson_Street.ClientID%>').value = $get('<%=TxBx_ContactPerson_Street.ClientID%>').value.replace(res[i], "").replace("  ", " ");
                    return;
                }
            }

            $($get('<%= TxBx_ContactPerson_HouseNumber.ClientID%>')).trigger('change');
        }
    }
</script>

<asp:Panel ID="Pnl_Options" runat="server" Visible="false">
    <div class="row">
        <div class="col-xs-12">
            <div class="card">
                <div class="header">
                    <h3>
                        <%= Resources.Content.GN0000360%>                                                                                                                                 
                    </h3>
                </div>
                <div class="body">
                    <div class="row">
                        <div class="col-xs-12">
                            <asp:RadioButtonList ID="RBL_Options" runat="server" RepeatDirection="Horizontal" AutoPostBack="true">
                                <asp:ListItem Selected="True" Text="<%$ Resources:Content,CreateNew %>" Value="0"></asp:ListItem>
                                <asp:ListItem Selected="false" Text="<%$ Resources:Content,ImportExistingCompany %>" Value="1"></asp:ListItem>
                            </asp:RadioButtonList>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Panel>

<asp:Panel ID="Pnl_NewCompany" runat="server" Visible="true">
    <div class="row">
        <div class="col-xs-12">
            <div class="card">
                <div class="header">
                    <h3>
                        <%= Resources.Content.GN00001134%>                                                                                                                                 
                    </h3>
                </div>
                <div class="body">
                    <div id="Div_ForAdd" runat="server">
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                *
                            <asp:Literal ID="Div6" runat="server" Text='<%$ Resources:Content,CompanyName %>' />:
                            </div>

                            <div class="col-sm-4 col-xs-12" id="Div_Company_CompanyName" runat="server">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_Company_CompanyName" runat="server" MaxLength="200"></asp:TextBox>
                                    </div>
                                </div>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TxBx_Company_CompanyName"
                                    Display="None" ValidationGroup="AddCompany" SetFocusOnError="True"></asp:RequiredFieldValidator>
                            </div>
                            <div class="col-sm-4 col-xs-12" style="display: none">
                                <div class="form-group">
                                    <asp:DropDownList ID="DDL_Companies_Company" runat="server"></asp:DropDownList>
                                </div>
                            </div>
                        </div>
                        <%--<div class="row" id="Div_DomainName_ForAdd" runat="server">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *
                            <asp:Literal ID="Literal1" runat="server" Text='<%$ Resources:Content,GN000125 %>' />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_Company_DomainName" runat="server" MaxLength="255"></asp:TextBox>
                                </div>
                            </div>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxBx_Company_DomainName"
                                Display="None" ValidationGroup="AddCompany" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </div>
                    </div>--%>
                    </div>
                    <div id="Div_ForEdit" runat="server" visible="false">
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Literal25" runat="server" Text='<%$ Resources:Content,CompanyName %>' />:
                            </div>
                            <div class="col-xs-9">
                                <div class="form-group">
                                    <asp:Label ID="Lbl_Company_CompanyName" runat="server"></asp:Label>
                                </div>
                            </div>
                        </div>
                        <div class="row" id="Div_ExternalRef" runat="server">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Literal22" runat="server" Text='<%$ Resources:Content,strExternalRef %>' />:
                            </div>
                            <div class="col-xs-4">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_ExternalRef" runat="server" MaxLength="50"></asp:TextBox>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row" id="Div_NodeId" runat="server" visible="false">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Literal32" runat="server" Text='<%$ Resources:Content,NodeId %>' />:
                            </div>
                            <div class="col-xs-9">
                                <div class="form-group">
                                    <asp:Label ID="Lbl_NodeId" runat="server"></asp:Label>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal3" runat="server" Text='<%$ Resources:Content,ChamberOfCommerceNumber %>' EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_Company_ChamberOfCommerceNumber" runat="server" MaxLength="16"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal2" runat="server" Text='<%$ Resources:Content,VatNumber %>' EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_Company_VatNumber" runat="server" MaxLength="16"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal4" runat="server" Text='<%$ Resources:Content,BankAccountNumberIBAN %>' EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_Company_BankAccountNumberIBAN" runat="server" MaxLength="32"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal5" runat="server" Text='<%$ Resources:Content,BankIdentifierCodeBIC %>' EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_Company_BankIdentifierCodeBIC" runat="server" MaxLength="16"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal6" runat="server" Text='<%$ Resources:Content,GN00008222 %>' EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_Company_Website" runat="server" MaxLength="255"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *
                            <asp:Literal ID="Literal7" runat="server" Text='<%$ Resources:Content,GN0000882 %>' EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:DropDownList ID="Ddl_Company_Country" runat="server"></asp:DropDownList>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *
                            <asp:Literal ID="Literal8" runat="server" Text='<%$ Resources:Content,PostalCodeOrZip %>' EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_Company_PostalCodeOrZip" runat="server" MaxLength="16"></asp:TextBox>
                                </div>
                            </div>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="TxBx_Company_PostalCodeOrZip"
                                Display="None" ValidationGroup="AddCompany" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *
                            <asp:Literal ID="Literal9" runat="server" Text='<%$ Resources:Content,DGN1110530 %>' EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_Company_Street" runat="server" MaxLength="128" onchange="CopyToHouseNumber(1);"></asp:TextBox>
                                </div>
                            </div>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="TxBx_Company_Street"
                                Display="None" ValidationGroup="AddCompany" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *
                            <asp:Literal ID="Literal10" runat="server" Text='<%$ Resources:Content,HouseNumber %>' EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_Company_HouseNumber" runat="server" MaxLength="7" CssClass="allowonlyintegervalues"></asp:TextBox>
                                </div>
                            </div>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
                                ControlToValidate="TxBx_Company_HouseNumber" ErrorMessage='<%# Resources.Content.OnlyIntegerValues %>'
                                ValidationExpression="^[0-9]*$" ValidationGroup="AddCompany" SetFocusOnError="true">
                            </asp:RegularExpressionValidator>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="TxBx_Company_HouseNumber"
                                Display="None" ValidationGroup="AddCompany" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal11" runat="server" Text='<%$ Resources:Content,HouseNumberAddition %>' EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_Company_HouseNumberAddition" runat="server" MaxLength="4"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *
                            <asp:Literal ID="Literal12" runat="server" Text='<%$ Resources:Content,GN0000880 %>' EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_Company_City" runat="server" MaxLength="128"></asp:TextBox>
                                </div>
                            </div>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="TxBx_Company_City"
                                Display="None" ValidationGroup="AddCompany" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *
                            <asp:Literal ID="Literal13" runat="server" Text='<%$ Resources:Content,GN00001313 %>' EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_Company_Province" runat="server" MaxLength="128"></asp:TextBox>
                                </div>
                            </div>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ControlToValidate="TxBx_Company_Province"
                                Display="None" ValidationGroup="AddCompany" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal14" runat="server" Text='<%$ Resources:Content,Note %>' EnableViewState="false" />:
                        </div>
                        <div class="col-sm-8 col-xs-12">
                            <div class="form-group">
                                <asp:TextBox ID="TxBx_Company_Note" runat="server" Columns="5" Rows="5" TextMode="MultiLine" MaxLength="2048"></asp:TextBox>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-xs-12" runat="server" id="divAccount">
            <div class="card">
                <div class="header">

                    <h3>
                        <%= Resources.Content.GN0000836%>                                       
                    </h3>
                </div>
                <div class="body">
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *
                            <asp:Literal ID="Literal33" runat="server" Text='<%$ Resources:Content,USM0061 %>' />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_Account_UserName" runat="server" MaxLength="100"></asp:TextBox>
                                </div>
                            </div>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TxBx_Account_UserName"
                                Display="None" ValidationGroup="AddCompany" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *<asp:Literal ID="Literal34" runat="server" Text='<%$ Resources:Content,GN0000652 %>' EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_Account_Email" runat="server" MaxLength="128"></asp:TextBox>
                                </div>
                            </div>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TxBx_Account_Email"
                                Display="None" ValidationGroup="AddCompany" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *
                            <asp:Literal ID="Literal45" runat="server" Text='<%$ Resources:Content,GN0000569 %>' />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_Account_Password" runat="server" TextMode="Password" MaxLength="500"></asp:TextBox>
                                </div>
                            </div>
                            <div id="Div_PasswordTextForEditCase" runat="server" visible="false">
                                <asp:Label ID="Label3" runat="server" Text="<%$ Resources:Content,GN00001530 %>" CssClass="xs"></asp:Label>
                            </div>
                            <asp:CheckBox ID="CB_Show" runat="server" Text="<%$ Resources:Content,FAM0049 %>" />
                            <asp:RequiredFieldValidator ID="RFV_Account_Password" runat="server" ControlToValidate="TxBx_Account_Password"
                                Display="None" ValidationGroup="AddCompany" SetFocusOnError="True"></asp:RequiredFieldValidator>
                            <asp:CompareValidator ID="CompareValidator1" ErrorMessage='<%$ Resources:Content,DGN1110005 %>'
                                runat="server" ControlToCompare="TxBx_Account_ConfirmPassword" ControlToValidate="TxBx_Account_Password"
                                ValidationGroup="AddCompany" Display="None"></asp:CompareValidator>
                            <%-- <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server"
                            ControlToValidate="TxBx_Account_Password"
                            ErrorMessage="<%$ Resources:Content,MinimumPasswordLengthIs12 %>"
                            ValidationExpression=".{12}.*"
                            ValidationGroup="AddCompany"
                            SetFocusOnError="true"
                            Display="None" />--%>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <asp:LinkButton CssClass="btn btn-primary waves-effect" ID="lb_Generate" runat="server" Text="<%$ Resources:Content,SMI0195%>" CausesValidation="false"
                                TabIndex="-1"></asp:LinkButton>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *
                            <asp:Literal ID="Literal35" runat="server" Text='<%$ Resources:Content,ConfirmPassword %>' />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_Account_ConfirmPassword" runat="server" TextMode="Password" MaxLength="500"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                        <asp:RequiredFieldValidator ID="RFV_Account_ConfirmPassword" runat="server" ControlToValidate="TxBx_Account_ConfirmPassword"
                            Display="None" ValidationGroup="AddCompany" SetFocusOnError="True"></asp:RequiredFieldValidator>
                    </div>
                </div>
            </div>
        </div>

        <div class="col-xs-12">
            <div class="card">
                <div class="header">

                    <h3>
                        <%= Resources.Content.ContactPerson%>                                                                                                                                 
                    </h3>
                </div>
                <div class="body">
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *
                            <asp:Literal ID="Literal15" runat="server" 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_ContactPerson_FirstName" runat="server" MaxLength="64"></asp:TextBox>
                                </div>
                            </div>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="TxBx_ContactPerson_FirstName"
                                Display="None" ValidationGroup="AddCompany" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal30" runat="server" Text='<%$ Resources:Content,DGN1110529 %>' />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_ContactPerson_MiddleName" runat="server" MaxLength="24"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *
                            <asp:Literal ID="Literal16" runat="server" 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_ContactPerson_LastName" runat="server" MaxLength="112"></asp:TextBox>
                                </div>
                            </div>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="TxBx_ContactPerson_LastName"
                                Display="None" ValidationGroup="AddCompany" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal17" runat="server" Text='<%$ Resources:Content,GN0000280 %>' EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_ContactPerson_Title" runat="server" MaxLength="16"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal18" runat="server" Text='<%$ Resources:Content,Gender %>' EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:RadioButtonList ID="Rbl_ContactPerson_Gender" runat="server" RepeatDirection="Horizontal">
                                    <asp:ListItem Text='<%$ Resources: Content,Male %>' Value="M"></asp:ListItem>
                                    <asp:ListItem Text='<%$ Resources: Content,Female %>' Value="F"></asp:ListItem>
                                    <asp:ListItem Text='<%$ Resources: Content,Undeclared %>' Value="U" Selected="True"></asp:ListItem>
                                </asp:RadioButtonList>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *
                              <asp:Literal ID="Literal19" runat="server" Text='<%$ Resources:Content,GN0000652 %>' EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_ContactPerson_Email" runat="server" MaxLength="255"></asp:TextBox>
                                </div>
                            </div>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" ControlToValidate="TxBx_ContactPerson_Email"
                                Display="None" ValidationGroup="AddCompany" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *
                                                        <asp:Literal ID="Literal20" runat="server" Text='<%$ Resources:Content,OCS003 %>' EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_ContactPerson_PhoneNumber" runat="server" MaxLength="20"></asp:TextBox>
                                </div>
                            </div>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server"
                                ControlToValidate="TxBx_ContactPerson_PhoneNumber" ErrorMessage='<%# Resources.Content.OnlyIntegerValues %>'
                                ValidationExpression="^[0-9]*$" ValidationGroup="AddCompany">
                            </asp:RegularExpressionValidator>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator17" runat="server" ControlToValidate="TxBx_ContactPerson_PhoneNumber"
                                Display="None" ValidationGroup="AddCompany" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *
                            <asp:Literal ID="Literal21" runat="server" Text='<%$ Resources:Content,GN0000882 %>' EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:DropDownList ID="DDL_ContactPerson_Country" runat="server"></asp:DropDownList>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *
                                                        <asp:Literal ID="Literal31" runat="server" Text='<%$ Resources:Content,PostalCodeOrZip %>' EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_ContactPerson_PostalCode" runat="server" MaxLength="16"></asp:TextBox>
                                </div>
                            </div>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" ControlToValidate="TxBx_ContactPerson_PostalCode"
                                Display="None" ValidationGroup="AddCompany" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *
                            <asp:Literal ID="Literal23" runat="server" Text='<%$ Resources:Content,DGN1110530 %>' EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_ContactPerson_Street" runat="server" MaxLength="128" onchange="CopyToHouseNumber(0);"></asp:TextBox>
                                </div>
                            </div>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator19" runat="server" ControlToValidate="TxBx_ContactPerson_Street"
                                Display="None" ValidationGroup="AddCompany" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *
                            <asp:Literal ID="Literal24" runat="server" Text='<%$ Resources:Content,HouseNumber %>' EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_ContactPerson_HouseNumber" runat="server" MaxLength="7" CssClass="allowonlyintegervalues"></asp:TextBox>
                                </div>
                            </div>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server"
                                ControlToValidate="TxBx_ContactPerson_HouseNumber" ErrorMessage='<%# Resources.Content.OnlyIntegerValues %>'
                                ValidationExpression="^[0-9]*$" ValidationGroup="AddCompany">
                            </asp:RegularExpressionValidator>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator20" runat="server" ControlToValidate="TxBx_ContactPerson_HouseNumber"
                                Display="None" ValidationGroup="AddCompany" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal26" runat="server" Text='<%$ Resources:Content,HouseNumberAddition %>' EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_ContactPerson_HouseNumberAddition" runat="server" MaxLength="4"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *
                            <asp:Literal ID="Literal27" runat="server" Text='<%$ Resources:Content,GN0000880 %>' EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_ContactPerson_City" runat="server" MaxLength="128"></asp:TextBox>
                                </div>
                            </div>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator22" runat="server" ControlToValidate="TxBx_ContactPerson_City"
                                Display="None" ValidationGroup="AddCompany" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *
                            <asp:Literal ID="Literal28" runat="server" Text='<%$ Resources:Content,GN00001313 %>' EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_ContactPerson_Province" runat="server" MaxLength="128"></asp:TextBox>
                                </div>
                            </div>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator23" runat="server" ControlToValidate="TxBx_ContactPerson_Province"
                                Display="None" ValidationGroup="AddCompany" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal29" runat="server" Text='<%$ Resources:Content,Note %>' EnableViewState="false" />:
                        </div>
                        <div class="col-sm-8 col-xs-12">
                            <div class="form-group">
                                <asp:TextBox ID="TxBx_ContactPerson_Note" runat="server" Columns="5" Rows="5" TextMode="MultiLine" MaxLength="2048"></asp:TextBox>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="col-xs-12" id="Div_CreditLimit" runat="server">
            <div class="card">
                <div class="header">

                    <h3>
                        <%= Resources.Content.strCreditLimit%>                                       
                    </h3>
                </div>
                <div class="body">
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="ltrMonthlycreditlimit" runat="server" Text='<%$ Resources:Content,strMonthlycreditlimit %>' />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="txtMonthlycreditlimit" runat="server" CssClass="js-input-price"></asp:TextBox>
                                </div>
                            </div>

                        </div>
                        <div id="Div_ResellerLimitDetails" runat="server" class="col-sm-4 col-xs-12">
                            &nbsp;+&nbsp;
                                    <b>
                                        <asp:Literal ID="Ltrl_ResellerLimitBreakDownDetails" runat="server">
                                        </asp:Literal>
                                        &nbsp;
                                        <asp:Literal ID="Ltrl_VoiceResellerCompanyLimitBreakDownFormula" runat="server" Text="<%$ Resources:Content,VoiceResellerCompanyLimitBreakDownFormula %>"></asp:Literal>

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

                            <asp:Literal ID="ltrMonthlycreditlimitUsed" runat="server" Text='<%$ Resources:Content,strMonthlyCreditLimitUsed %>' />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:Label ID="lblMonthlyCreditLimitUsed" runat="server"></asp:Label>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <%--  <div class="col-xs-12" id="Div_TeamConfig" runat="server">
            <div class="card">
                <div class="header">

                    <h3>
                        <%= Resources.Content.strForTeamConfiguration%>                                       
                    </h3>
                </div>
                <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"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal56" runat="server" Text='<%$ Resources:Content,strTenantadminpass %>' />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_Tenantadminpassword" runat="server" TextMode="Password"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>--%>


        <div class="col-xs-12">
            <div class="row">
                <div class="col-xs-12">
                    <asp:HiddenField ID="H_PGID" Value="" runat="server" />
                    <asp:HiddenField ID="HF_CompanyId" Value="0" runat="server" />
                    <asp:ValidationSummary ID="VS" runat="server" ShowMessageBox="true" ShowSummary="false"
                        ValidationGroup="AddCompany" HeaderText="<%$ Resources:Content,EM000001%>" />
                    <asp:Button ID="Btn_SaveCompany" class="btn btn-primary waves-effect btnAction" ValidationGroup="AddCompany" CausesValidation="true" runat="server" Text='<%$ Resources:Content,GN0000281 %>' />
                </div>
            </div>
        </div>
    </div>

</asp:Panel>

<asp:Panel ID="Pnl_ImportCompany" runat="server" Visible="false">
    <div class="row">
        <div class="col-xs-12">
            <div class="card">
                <div class="header">
                    <h3>
                        <%= Resources.Content.GN00001134%>                                                                                                                                 
                    </h3>
                </div>
                <div class="body">
                    <div class="row">
                        <div class="col-sm-2 col-xs-12 row-label">
                            *
                            <asp:Literal ID="Literal1" runat="server" Text='<%$ Resources:Content,NodeId %>' EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_NodeId" runat="server" CssClass="allowonlyintegervalues"></asp:TextBox>
                                </div>
                            </div>
                            <asp:RequiredFieldValidator ID="RF_TxBx_NodeId" runat="server"
                                SetFocusOnError="true" ValidationGroup="ImportCompany" ControlToValidate="TxBx_NodeId"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <asp:ValidationSummary ID="VS_ImportCompany" runat="server" ShowMessageBox="true" ShowSummary="false"
                                ValidationGroup="ImportCompany" HeaderText="<%$ Resources:Content,EM000001%>" />
                            <asp:Button ID="Btn_ImportCompany" class="btn btn-primary waves-effect btnAction" ValidationGroup="ImportCompany"
                                CausesValidation="true" runat="server" Text='<%$ Resources:Content,GN0000281 %>' />
                            <asp:Button ID="Btn_Cancel_ImportCompany" class="btn btn-primary waves-effect" ValidationGroup="ImportCompany"
                                CausesValidation="false" runat="server" Text='<%$ Resources:Content,Cancel %>' />
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Panel>
