<%@ control language="VB" autoeventwireup="false" inherits="Admin_Clients_CC_SellO365Services, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/ResellerPackageResourcesQuotaChecks.ascx" TagName="ResellerPackageResourcesQuotaChecks"
    TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/CC/SellEasyAddOn.ascx" TagName="SellEasyAddOn" TagPrefix="EM" %>
<%@ Register Assembly="AjaxControls" Namespace="AjaxControls" TagPrefix="EM" %>

<div class="row">
    <div class="col-xs-12 row-label col-red" id="Div_Error" runat="server" visible="false">
    </div>
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3>
                    <asp:Literal ID="Literal10" runat="server" Text="<%$ Resources:Content,strOffice365HostingAccountForm%>"
                        EnableViewState="false"></asp:Literal>
                </h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,GN000141%>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="DDL_Package" runat="server" AutoPostBack="True">
                            </asp:DropDownList>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal37" runat="server" Text='<%$ Resources:Content,Dev336%>' />:
                    </div>
                    <div class="col-sm-9 col-xs-12">
                        <div class="grow">
                            <div runat="server" id="Ltl_PackageComments"></div>
                        </div>
                    </div>
                </div>
                <div class="row" id="Tr_OUs" runat="server" style="display: none">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal13" runat="server" Text="<%$ Resources:Content,String60%>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="DDL_OUs" AutoPostBack="true" runat="server">
                            </asp:DropDownList>
                        </div>
                    </div>
                </div>
                <div class="row" id="Tr_OU" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal11" runat="server" Text="<%$ Resources:Content,DGN1110608%>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_OrgName" runat="server" MaxLength="128"></asp:TextBox>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal9" runat="server" Text="<%$ Resources:Content,GN000148%>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:TextBox ID="TxBx_Comments" runat="server" MaxLength="500" TextMode="MultiLine" Width="100%" Height="150px"></asp:TextBox>
                        </div>
                    </div>
                </div>
                <div class="row" id="TR_NewTenant" runat="server" visible="false">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,strTenant%>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-9 col-xs-12">
                        <div class="form-group">
                            <asp:RadioButton ID="rdbNewTenant" Text="<%$ Resources:Content,strNewTenant%>" runat="server"
                                Checked="true" GroupName="tenant" AutoPostBack="true" /><br />
                            <asp:RadioButton ID="rdbExistingTenant" Text="<%$ Resources:Content,strLinkExistingTenant%>"
                                runat="server" GroupName="tenant" AutoPostBack="true" />
                        </div>
                    </div>
                </div>

                <div class="row" id="trCompanyNameNew" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        * 
            <asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Content,GN00001077%>"
                EnableViewState="false" />:                
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="txtCompanyName" runat="server" MaxLength="100"></asp:TextBox>
                            </div>
                        </div>
                        <asp:RequiredFieldValidator ID="rfvtxtCompanyName" runat="server" ControlToValidate="txtCompanyName"
                            Display="None" SetFocusOnError="True" ValidationGroup="O365Hosting"></asp:RequiredFieldValidator>

                    </div>
                </div>

                <div class="row" id="TR_DomainNameSelect" runat="server" visible="false">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>*<asp:Literal ID="Ltrl_SelectDomainName" runat="server" Text="<%$Resources:Content,DGN1110334 %>"></asp:Literal></label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="DDL_DomainName" runat="server"></asp:DropDownList>
                        </div>
                    </div>
                </div>
                <div class="row" id="TR_DomainName" runat="server" visible="false">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,GN000125%>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_DomainName" runat="server" MaxLength="27"></asp:TextBox>
                               <%-- <asp:RegularExpressionValidator ID="RE_DomTra" runat="server" ErrorMessage='<%$Resources:Content,DGN1110154%>'
                                    SetFocusOnError="True" ControlToValidate="TxBx_DomainName" ValidationGroup="O365Hosting" Enabled="false"
                                    ValidationExpression="<%$ Resources:Content,REV001 %>"
                                    Display="None"></asp:RegularExpressionValidator>--%>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5 col-xs-12 no-padding lbl-serial-num">
                        <asp:Literal ID="Literal14" runat="server" Text="<%$Resources:Content,O365CSPDomainNamOptionNote%>" />
                    </div>
                </div>

                <div class="row" id="trDomainAdminUPN" runat="server" visible="false">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal7" runat="server" Text="<%$ Resources:Content,strTenantAdminUPN%>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="txtAdminDomainUPN" runat="server" MaxLength="100"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="rfvAdminDomainUPN" runat="server" ControlToValidate="txtAdminDomainUPN"
                                    Display="None" SetFocusOnError="True" ValidationGroup="O365Hosting"></asp:RequiredFieldValidator>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="row" id="trDomainAdminPassword" runat="server" visible="false">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal8" runat="server" Text="<%$ Resources:Content,strTenantAdminPassword%>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="txtAdminDomainPassword" TextMode="Password" runat="server" MaxLength="100"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="rfvAdminDomainPassword" runat="server" ControlToValidate="txtAdminDomainPassword"
                                    Display="None" SetFocusOnError="True" ValidationGroup="O365Hosting"></asp:RequiredFieldValidator>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="row" id="TR_txto365Domain" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Ltl_txto365Domain" runat="server" Text="<%$ Resources:Content,strO365Domain%>"
                                EnableViewState="false" />:
                        </label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="txto365Domain" runat="server" MaxLength="27"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="rfvo365Domain" runat="server" ControlToValidate="txto365Domain"
                                    Display="None" SetFocusOnError="True" ValidationGroup="O365Hosting"></asp:RequiredFieldValidator>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5 col-xs-12 no-padding lbl-serial-num">
                        <asp:Literal ID="ltlO365DomainSuffix" runat="server" />
                    </div>
                </div>

                <div class="row" id="TR_TransferTenant" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal12" runat="server" Text="<%$ Resources:Content,strTransferExistingTenant %>"></asp:Literal>
                        </label>
                    </div>
                    <div class="col-sm-1 col-xs-12">
                        <asp:CheckBox ID="CB_TransferExisting" runat="server" Text=" " AutoPostBack="true"></asp:CheckBox>
                    </div>
                    <div class="col-sm-8 col-xs-12">
                        <label>
                            <asp:Literal ID="LtrTransferMsg" runat="server"></asp:Literal><asp:HyperLink ID="hplTechDataAuth" runat="server"></asp:HyperLink>
                        </label>
                    </div>
                </div>

                <div class="row" id="TR_CustomerHasAccepted" runat="server" visible="false">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal28" runat="server" Text="<%$ Resources:Content,strCustomerHasAccepted %>"></asp:Literal>
                        </label>
                    </div>
                    <div class="col-sm-1 col-xs-12">
                        <asp:CheckBox ID="CB_CustomerHasAccepted" runat="server" Text=" " AutoPostBack="true"></asp:CheckBox>
                    </div>
                    <div class="col-sm-8 col-xs-12">
                        <label>
                            <asp:Literal ID="Literal30" runat="server" Text="<%$ Resources:Content,strCustomerAcceptMsg %>"></asp:Literal>
                        </label>
                    </div>
                </div>


                <div id="trNewTenant" runat="server">
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal26" runat="server" Text="<%$ Resources:Content,GN0000882%>"
                                EnableViewState="false" />:                
                        </div>
                        <div class="col-sm-9 col-xs-12">
                            <asp:Label ID="ltlCountry" runat="server" />
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                *<asp:Literal ID="Literal15" runat="server" Text="<%$ Resources:Content,GN0000880%>"
                                    EnableViewState="false" />:
                            </label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="txtCity" runat="server" MaxLength="100"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvCity" runat="server" ControlToValidate="txtCity"
                                        Display="None" SetFocusOnError="True" ValidationGroup="O365Hosting"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row" id="trStateProvince" runat="server">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                *<asp:Literal ID="Literal16" runat="server" Text="<%$ Resources:Content,GN00001313%>"
                                    EnableViewState="false" />:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="txtStateProvince" runat="server" MaxLength="100"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvStateProvince" runat="server" ControlToValidate="txtStateProvince"
                                        Display="None" SetFocusOnError="True" ValidationGroup="O365Hosting"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row" id="trState" runat="server">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                *<asp:Literal ID="Literal27" runat="server" Text="<%$ Resources:Content,DEV1130%>"
                                    EnableViewState="false" />:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:DropDownList ID="ddlState" runat="server"></asp:DropDownList>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                *<asp:Literal ID="Literal17" runat="server" Text="<%$ Resources:Content,GN00001522%>"
                                    EnableViewState="false" />:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="txtZipPostalCode" runat="server" MaxLength="100"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvZipPostalCode" runat="server" ControlToValidate="txtZipPostalCode"
                                        Display="None" SetFocusOnError="True" ValidationGroup="O365Hosting"></asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="revZipPostal" runat="server" ErrorMessage='<%$ Resources:Content,strZipIsNotValid%>'
                                        ControlToValidate="txtZipPostalCode" Display="None" ValidationExpression="" SetFocusOnError="True"
                                        ValidationGroup="O365Hosting"> </asp:RegularExpressionValidator>
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-5 col-xs-12">
                            <asp:Literal ID="ltrZipPostalCodeRegex" runat="server" Visible="false" />
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                *<asp:Literal ID="Literal18" runat="server" Text="<%$ Resources:Content,strAddress1%>"
                                    EnableViewState="false" />:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="txtAddress1" runat="server" MaxLength="100"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvAddress1" runat="server" ControlToValidate="txtAddress1"
                                        Display="None" SetFocusOnError="True" ValidationGroup="O365Hosting"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                <asp:Literal ID="Literal19" runat="server" Text="<%$ Resources:Content,strAddress2%>"
                                    EnableViewState="false" />:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="txtAddress2" runat="server" MaxLength="100"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                <asp:Literal ID="Literal20" runat="server" Text="<%$ Resources:Content,strCompanyRegistrationNumber%>"
                                    EnableViewState="false" />:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="txtCompanyRegistrationNumber" runat="server" MaxLength="50"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                    </div>
                    <br />
                    <div class="header">
                        <asp:Literal ID="Literal21" runat="server" Text="<%$ Resources:Content,GN00001515%>"
                            EnableViewState="false" />:                
                    </div>
                    <br />
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                *<asp:Literal ID="Literal22" runat="server" Text="<%$ Resources:Content,GN00001132%>"
                                    EnableViewState="false" />:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="txtFirstName" runat="server" MaxLength="100"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvFirstName" runat="server" ControlToValidate="txtFirstName"
                                        Display="None" SetFocusOnError="True" ValidationGroup="O365Hosting"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                *<asp:Literal ID="Literal23" runat="server" Text="<%$ Resources:Content,GN00001133%>"
                                    EnableViewState="false" />:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="txtLastName" runat="server" MaxLength="100"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvLastName" runat="server" ControlToValidate="txtLastName"
                                        Display="None" SetFocusOnError="True" ValidationGroup="O365Hosting"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                *<asp:Literal ID="Literal24" runat="server" Text="<%$ Resources:Content,GN0000652%>"
                                    EnableViewState="false" />:
                            </label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="txtEmail" runat="server" MaxLength="100"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvEmail" runat="server" ControlToValidate="txtEmail"
                                        Display="None" SetFocusOnError="True" ValidationGroup="O365Hosting"></asp:RequiredFieldValidator>
                                   <%-- <asp:RegularExpressionValidator ID="REV_AdminEmail" runat="server" ErrorMessage='<%$ Resources:Content,DGN1110038%>'
                                        ControlToValidate="txtEmail" Display="None" SetFocusOnError="True" ValidationExpression="<%$ Resources:MPRegex,EmailAddress %>"
                                        ValidationGroup="O365Hosting">
                                    </asp:RegularExpressionValidator>--%>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                *<asp:Literal ID="Literal25" runat="server" Text="<%$ Resources:Content,OCS003%>"
                                    EnableViewState="false" />:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="txtPhonenumber" runat="server" MaxLength="100"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvPhonenumber" runat="server" ControlToValidate="txtPhonenumber"
                                        Display="None" SetFocusOnError="True" ValidationGroup="O365Hosting"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                        </div>
                    </div>
                    <%-- new tanant table tag close below --%>
                </div>
                <div>
                    <div class="row" id="Div_MicrosoftAgreement" runat="server" visible="false">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                *
                                <asp:Literal ID="Ltrl_MSAgreement" runat="server" Text="<%$ Resources:Content,MicrosoftAgreement %>"></asp:Literal>
                            </label>
                        </div>
                        <div class="col-sm-9 col-xs-12">
                            <asp:CheckBox ID="Cb_AcceptMSAgreement" runat="server" Text="<%$ Resources:Content,AcceptLatest %>"></asp:CheckBox>
                            <asp:HyperLink ID="HL_MSAgreement" runat="server" Text="<%$ Resources:Content,MicrosoftCustomerAgreement %>" NavigateUrl="#" Target="_blank">
                            </asp:HyperLink>
                            <asp:HiddenField ID="HF_AgreementTemplateId" runat="server" />
                        </div>
                    </div>
                </div>
                <asp:Panel ID="Pnl_BillingOFFUI" runat="server">
                    <div id="TD_Cycle" runat="server" class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                *<asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Content,GN00001473%>"
                                    EnableViewState="false" />:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <input id="HTxBx_OPrice" runat="server" type="hidden" />
                            <input id="HTxBx_PGID" runat="server" type="hidden" />
                            <input id="HTxBx_CS" runat="server" type="hidden" />
                            <div class="form-group">
                                <asp:DropDownList ID="DDL_Cycle" runat="server" AutoPostBack="True">
                                </asp:DropDownList>
                            </div>
                        </div>
                    </div>
                    <div class="row" id="TR_DiscountPercent" runat="server">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                <asp:Literal ID="Ltrl_DiscountInPercent" runat="server" Text="<%$ Resources:Content,GN0000203 %>"></asp:Literal>

                                <asp:Literal ID="Ltrl_Percentage" runat="server" Text="<%$ Resources:Content,GN00001017 %>"></asp:Literal>:
                            </label>
                        </div>
                        <script type="text/javascript" lang="javascript">
                            function discountChangeHandler(e, updateOffers) {
                                //var discountVal = $(e.srcElement).val();

                                //if (discountVal == undefined || discountVal == null || discountVal == '')
                                //    discountVal = 0;

                                //discountVal = parseLocalizedNumberString(discountVal);

                                //if (isNaN(discountVal) || isNaN(parseFloat(discountVal)))
                                //    discountVal = 0;

                                //if (discountVal > 100)
                                //    discountVal = 100;

                                //$(e.srcElement).val(discountVal.toString().replace('.', UIDecimalSeparator));

                                ValidDiscount(e.srcElement.id);

                                if (updateOffers)
                                    $('.js-offer-discount').val($(e.srcElement).val());
                            }
                        </script>
                        <div class="col-sm-4 col-xs-12 hide d-none">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="Txbx_DiscountInPercent" runat="server" onchange="discountChangeHandler(event,true);" MaxLength="5" Text="0%"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row" id="Tr_PriceFreeze" runat="server">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                <asp:Literal ID="Literal6" runat="server" Text="<%$ Resources:Content,GN000145%>"
                                    EnableViewState="false" />:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:CheckBox ID="ChBx_PriceFreeze" runat="server" Checked="True" Text=" "></asp:CheckBox>
                            </div>
                        </div>
                    </div>
                </asp:Panel>

                <div id="trOffers" runat="server">
                    <div class="panel-group" id="accordion_O365Category" role="tablist" aria-multiselectable="true">
                        <asp:Repeater ID="rptCategory" runat="server">
                            <ItemTemplate>
                                <div class="panel panel-primary">
                                    <div class="panel-heading" role="tab" id='<%# String.Format("heading_O365Category_{0}", Container.ItemIndex)%>'>
                                        <h2 class="panel-title">
                                            <a role="button" data-toggle="collapse" data-parent="#accordion_O365Category"
                                                href='<%# String.Format("#CSP_O365Category_{0}", Container.ItemIndex)%>' aria-expanded="true"
                                                aria-controls='<%# String.Format("CSP_O365Category_{0}", Container.ItemIndex)%>' class="collapsed">
                                                <asp:Literal ID="ltlCategoryNameDiv" runat="server" EnableViewState="true" />
                                            </a>
                                        </h2>
                                    </div>
                                    <div id='<%# String.Format("CSP_O365Category_{0}", Container.ItemIndex)%>' class="panel-collapse collapse" role="tabpanel"
                                        aria-labelledby='<%# String.Format("heading_O365Category{0}", Container.ItemIndex)%>'>
                                        <div class="panel-body">
                                            <asp:HiddenField ID="hdfCategoryID" runat="server" />
                                            <table class="table table-bordered table-striped table-hover">
                                                <tr>
                                                    <th class="col-sm-5 col-xs-12">
                                                        <asp:Literal ID="Literal21" runat="server" EnableViewState="false" Text='<%$ Resources:Content, strOfferAddons %>' />
                                                    </th>
                                                    <th class="col-sm-2 col-xs-12">
                                                        <asp:Literal ID="Literal20" runat="server" EnableViewState="false" Text='<%$ Resources:Content, String35 %>' />
                                                    </th>
                                                    <th id="thUnitPrice" runat="server" class="col-sm-3 col-xs-12">
                                                        <asp:Literal ID="Literal29" runat="server" EnableViewState="false" Text='<%$ Resources:Content, strUnitPrice %>' />
                                                    </th>
                                                    <th id="thDiscountPercent" runat="server" class="col-sm-2 col-xs-12">
                                                        <asp:Literal ID="Ltrl_DiscountInPercent" runat="server" Text="<%$ Resources:Content,GN0000203 %>"></asp:Literal>

                                                        <asp:Literal ID="Ltrl_Percentage" runat="server" Text="<%$ Resources:Content,GN00001017 %>"></asp:Literal>

                                                    </th>
                                                </tr>
                                                <asp:Repeater ID="rptOffers" runat="server" OnItemDataBound="rptOffers_ItemDataBound">
                                                    <ItemTemplate>

                                                        <tr>
                                                            <td class="col-sm-5 col-xs-12 row-label">
                                                                <asp:HiddenField ID="hdfOfferID" runat="server" />
                                                                <asp:HiddenField ID="hdfMSOfferID" runat="server" />
                                                                <asp:Literal ID="ltlOfferName" runat="server" />
                                                            </td>
                                                            <td class="col-sm-2 col-xs-12">
                                                                <div class="col-sm-3 col-xs-12">
                                                                    <asp:CheckBox ID="chkOffer" runat="server" Text=" " />
                                                                </div>
                                                                <div class="col-sm-9 col-xs-12">
                                                                    <div class="form-group">
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="txtOfferQuantity" runat="server"></asp:TextBox>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </td>
                                                            <td class="col-sm-3 col-xs-12" id="tdUnitPrice" runat="server">
                                                                <asp:Literal ID="ltlOfferUnitPrice" runat="server" />
                                                            </td>
                                                            <td class="col-sm-5 col-xs-12" id="tdDiscountPercent" runat="server">
                                                                <div class="form-group">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_DiscountPercent" runat="server" CssClass="js-offer-discount" MaxLength="5" Text="0" onchange="discountChangeHandler(event,false);"></asp:TextBox>

                                                                    </div>
                                                                </div>
                                                            </td>
                                                        </tr>

                                                        <tr id="trAddons" runat="server" style="display: none">
                                                            <td colspan="4">
                                                                <asp:Repeater ID="rptOfferAddons" runat="server" OnItemDataBound="rptOfferAddons_ItemDataBound">
                                                                    <HeaderTemplate>
                                                                        <table class="table table-bordered table-striped table-hover">
                                                                            <th colspan="4">
                                                                                <asp:Literal ID="Literal21" runat="server" EnableViewState="false" Text='<%$ Resources:Content, Addons %>' />:
                                                                            </th>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <tr>
                                                                            <td class="col-sm-5 col-xs-12 row-label">
                                                                                <asp:HiddenField ID="hdfAddonID" runat="server" />
                                                                                <asp:HiddenField ID="hdfMSAddonID" runat="server" />
                                                                                <asp:Literal ID="ltlAddonName" runat="server" />
                                                                            </td>
                                                                            <td class="col-sm-2 col-xs-12">
                                                                                <div class="col-sm-3 col-xs-12">
                                                                                    <asp:CheckBox ID="chkAddon" runat="server" Text=" " />
                                                                                </div>
                                                                                <div class="col-sm-9 col-xs-12">
                                                                                    <div class="form-group">
                                                                                        <div class="form-line">
                                                                                            <asp:TextBox ID="txtAddonQuantity" runat="server"></asp:TextBox>
                                                                                        </div>
                                                                                    </div>
                                                                                </div>
                                                                            </td>
                                                                            <td class="col-sm-3 col-xs-12" id="tdUnitPrice" runat="server">
                                                                                <asp:Literal ID="ltlAddonUnitPrice" runat="server" />
                                                                            </td>
                                                                            <td class="col-sm-5 col-xs-12" id="tdDiscountPercent" runat="server">
                                                                                <div class="form-group">
                                                                                    <div class="form-line">
                                                                                        <asp:TextBox ID="TxBx_DiscountPercent" runat="server" CssClass="js-offer-discount" MaxLength="5" Text="0" onchange="discountChangeHandler(event,false);"></asp:TextBox>
                                                                                    </div>
                                                                                </div>
                                                                            </td>
                                                                        </tr>

                                                                    </ItemTemplate>
                                                                    <FooterTemplate></table></FooterTemplate>
                                                                </asp:Repeater>
                                                            </td>
                                                        </tr>

                                                    </ItemTemplate>
                                                </asp:Repeater>
                                            </table>
                                        </div>
                                    </div>
                                </div>

                                <%-- rptCategory table close below. --%>
                            </ItemTemplate>
                        </asp:Repeater>

                    </div>
                </div>
                <div class="row" id="DivUsagebased" runat="server" visible="false">
                    <div class="col-xs-12">
                        <div class="card">
                            <div class="header">
                                <h2>
                                    <asp:Literal ID="ltrUsageBasedHeading" runat="server" Text='<%$ Resources:Content, strUsageBased %>'></asp:Literal>
                                </h2>
                            </div>
                            <div class="body">
                                <div class="row">
                                    <div class="col-sm-7 col-xs-12">
                                        <b>
                                            <asp:Label ID="lblAzureOfferName" runat="server"></asp:Label></b>
                                        <asp:HiddenField ID="hdnAzureOfferId" runat="server" />
                                        <asp:HiddenField ID="hdnAzureMSOfferId" runat="server" />
                                    </div>
                                    <div class="col-sm-2 col-xs-12">
                                        &nbsp;&nbsp;
                                        <asp:CheckBox ID="Chbx_AzureOffer" runat="server" Text=" " />
                                    </div>
                                    <div class="col-sm-3 col-xs-12">
                                        <asp:Literal ID="ltlOfferUnitPrice" runat="server" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div id="Tr_CommercialSaaSProducts" runat="server">
                    <div class="panel-group" id="accordion_CommercialSaaSProds" role="tablist" aria-multiselectable="true">
                        <table class="table table-bordered table-striped table-hover">
                            <asp:Repeater ID="Rep_CommercialSaaSProds" runat="server">
                                <HeaderTemplate>
                                    <tr>
                                        <th class="col-xs-7">
                                            <asp:Literal ID="Ltrl_ProdNameHeading" runat="Server"
                                                Text="<%$ Resources:Content,SPT002744%>"></asp:Literal>
                                        </th>
                                        <th class="col-xs-2" id="TH_Discount" runat="server">
                                            <asp:Literal ID="Ltrl_DiscountHeading" runat="Server"
                                                Text="<%$ Resources:Content,GN0000203%>"></asp:Literal>
                                            <asp:Literal ID="Ltrl_Percentage" runat="server"
                                                Text="<%$ Resources:Content,GN00001017 %>"></asp:Literal>
                                        </th>
                                        <th class="col-xs-1">
                                            <asp:Literal ID="Ltrl_QuantityHeading" runat="Server"
                                                Text="<%$ Resources:Content,String35%>"></asp:Literal>
                                        </th>
                                        <th class="col-xs-2">
                                            <asp:Literal ID="Ltrl_BillingHeading"
                                                runat="server" Text="Billing/Term"></asp:Literal>
                                        </th>
                                    </tr>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <tr class="search-js-offer-row">
                                        <asp:HiddenField ID="HF_ProdId" runat="server" />
                                        <asp:HiddenField ID="HF_SkuId" runat="server" />
                                        <asp:HiddenField ID="HF_Id" runat="server" />
                                        <td class="shade">
                                            <div>
                                                <b>
                                                    <asp:Label ID="Lbl_ProdName" runat="server"></asp:Label>
                                                </b>
                                            </div>
                                            <asp:Repeater ID="Rep_ProvVars" runat="server" DataSource='<%# Eval("ProvVars") %>'>
                                                <ItemTemplate>
                                                    <div>
                                                        <asp:Label ID="Lbl_VarName" runat="server" Text='<%# Container.DataItem %>'></asp:Label>:
                                                                                                                <asp:TextBox ID="Txbx_VarVal" runat="server"></asp:TextBox>
                                                    </div>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                        </td>
                                        <td class="col-xs-2" id="TD_Discount" runat="server">
                                            <div class="form-group">
                                                <div class="form-line">
                                                    <asp:TextBox ID="TxBx_Discount" runat="server" MaxLength="5" Text="0%" onchange="discountChangeHandler(event, false);"></asp:TextBox>
                                                </div>
                                            </div>
                                        </td>
                                        <td>
                                            <div id="div_quantitybox" runat="server">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_Quantity" runat="server" Text="0"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <EM:FilteredTextBoxExtender ID="FTE_Quantity" runat="server" FilterType="Numbers"
                                                    TargetControlID="TxBx_Quantity">
                                                </EM:FilteredTextBoxExtender>
                                            </div>
                                            <div id="div_trialselectbox" runat="server" visible="false">
                                                <asp:CheckBox ID="CB_TrialSelected" runat="server" Text=" " />
                                            </div>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="Ddl_BillingDetail" runat="server"></asp:DropDownList>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </table>
                    </div>
                </div>
                <div class="panel-group" id="accordion_O365EasyAddOn" runat="server" role="tablist" aria-multiselectable="true">
                    <div class="panel panel-primary">
                        <div class="panel-heading" role="tab" id="heading_O365EasyAddOn" runat="server">
                            <h2 class="panel-title">
                                <a role="button" id="A_O365EasyAddOn" data-toggle="collapse" data-parent="#<%= accordion_O365EasyAddOn.ClientID %>" href="#<%= CSB_O365EasyAddOn.ClientID%>" aria-expanded="true" aria-controls="<%= CSB_O365EasyAddOn.ClientID%>" class="collapsed">
                                    <%= Resources.Content.GN000139%>
                                </a>
                            </h2>
                        </div>
                        <div id="CSB_O365EasyAddOn" runat="server" class="panel-collapse collapse" role="tabpanel" aria-labelledby="<%= heading_O365EasyAddOn.ClientID %>" aria-expanded="false" style="height: 0px;">
                            <div class="panel-body">
                                <EM:SellEasyAddOn ID="SellEasyAddOn" runat="server" />
                            </div>
                        </div>
                    </div>
                </div>

                <div class="row" id="TR_O365Operations" runat="server">
                    <div class="col-xs-12">
                        <asp:ValidationSummary HeaderText='<%$ Resources:Content,EM000001%>' ID="ValidationSummary1"
                            runat="server" ShowMessageBox="True" ShowSummary="False" ValidationGroup="O365Hosting" />
                        <asp:Button ID="Btn_Add" class="btn btn-primary waves-effect btnAction" ValidationGroup="O365Hosting" runat="server"
                            Text="<%$ Resources:Content,GN000111%>" OnClientClick="adjustmodalpopupforscreen();return true;"/>
                        <asp:Button class="btn btn-primary waves-effect" ID="LB_Close" runat="server" Text="<%$ Resources:Content,GN0000572%>" />
                    </div>
                </div>
            </div>
        </div>
    </div>

</div>

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

    <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Dummy3" Style="display: none" runat="server" />

    <asp:Panel ID="Pnl_OrderDetail" runat="server" Style="display: none" CssClass="width-modal-popup-auto">
        <div class="card">
            <div class="header">
                <h3>
                    <asp:Literal ID="Literal31" runat="server" Text="<%$ Resources:Content,strReviewYourOrder%>"
                        EnableViewState="false"></asp:Literal>
                </h3>
            </div>
            <div class="body">

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

                        <asp:Label ID="Lblpackage" runat="server"></asp:Label>

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

            <div class="col-xs-12" runat="server" id="Div_NotforReseller">

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

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

                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal36" runat="server" Text="<%$ Resources:Content,GN0000882%>"
                            EnableViewState="false" />:                
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <asp:Label ID="LblCountry" runat="server" />
                    </div>
                </div>

                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                         
                            <asp:Literal ID="Literal38" runat="server" Text="<%$ Resources:Content,GN0000880%>"
                                EnableViewState="false" />:
                         
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:Label ID="LblCity" runat="server" />
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                       
                            <asp:Literal ID="Literal39" runat="server" Text="<%$ Resources:Content,GN00001313%>"
                                EnableViewState="false" />: 
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:Label ID="Lbl_StateProvince" runat="server" />
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                         
                            <asp:Literal ID="Literal41" runat="server" Text="<%$ Resources:Content,GN00001522%>"
                                EnableViewState="false" />: 
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:Label ID="LblZip" runat="server" />
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                       
                            <asp:Literal ID="Literal43" runat="server" Text="<%$ Resources:Content,strAddress1%>"
                                EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:Label ID="LblAddress1" runat="server" />
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                       
                            <asp:Literal ID="Literal44" runat="server" Text="<%$ Resources:Content,strAddress2%>"
                                EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:Label ID="LblAddress2" runat="server" />
                        </div>
                    </div>
                </div>

                <div class="header row-label">
                    <asp:Literal ID="Literal45" runat="server" Text="<%$ Resources:Content,GN00001515%>"
                        EnableViewState="false" />                
                </div>

                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                       
                            <asp:Literal ID="Literal46" runat="server" Text="<%$ Resources:Content,GN00001132%>"
                                EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:Label ID="LblFName" runat="server" />
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        
                            <asp:Literal ID="Literal47" runat="server" Text="<%$ Resources:Content,GN00001133%>"
                                EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:Label ID="LName" runat="server" />
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                      
                            <asp:Literal ID="Literal48" runat="server" Text="<%$ Resources:Content,GN0000652%>"
                                EnableViewState="false" />:
                      
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:Label ID="LblEmail" runat="server" />
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                       
                            <asp:Literal ID="Literal49" runat="server" Text="<%$ Resources:Content,OCS003%>"
                                EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:Label ID="LblPhoneNo" runat="server" />
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-xs-12">
                    <table class="table table-bordered table-striped table-hover">
                        <asp:Repeater ID="RptReview" runat="server">
                            <HeaderTemplate>
                                <tr>
                                    <th class="col-xs-6">
                                        <asp:Literal ID="Ltrl_ProdNameHeading" runat="Server"
                                            Text="<%$ Resources:Content,SPT002744%>"></asp:Literal>
                                    </th>
                                    <th class="col-xs-2" id="TH_Discount" runat="server">
                                        <asp:Literal ID="Ltrl_DiscountHeading" runat="Server"
                                            Text="<%$ Resources:Content,GN0000203%>"></asp:Literal>
                                        <asp:Literal ID="Ltrl_Percentage" runat="server"
                                            Text="<%$ Resources:Content,GN00001017 %>"></asp:Literal>
                                    </th>
                                    <th class="col-xs-1">
                                        <asp:Literal ID="Ltrl_QuantityHeading" runat="Server"
                                            Text="<%$ Resources:Content,String35%>"></asp:Literal>
                                    </th>
                                    <th class="col-xs-3">
                                        <asp:Literal ID="Ltrl_BillingHeading"
                                            runat="server" Text="Billing/Term"></asp:Literal>
                                    </th>
                                </tr>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr class="search-js-offer-row">
                                    <asp:HiddenField ID="HF_ProdId" runat="server" />
                                    <asp:HiddenField ID="HF_SkuId" runat="server" />
                                    <asp:HiddenField ID="HF_Id" runat="server" />
                                    <td class="shade">
                                        <div>
                                            <b>
                                                <asp:Label ID="Lbl_ProdName" runat="server"></asp:Label>
                                            </b>
                                        </div>
                                        <%--<asp:Repeater ID="Rep_ProvVars" runat="server" DataSource='<%# Eval("ProvVars") %>'>
                                                <ItemTemplate>
                                                    <div>
                                                        <asp:Label ID="Lbl_VarName" runat="server" Text='<%# Container.DataItem %>'></asp:Label>                                                                                                                
                                                    </div>
                                                </ItemTemplate>
                                            </asp:Repeater>--%>
                                    </td>
                                    <td class="col-xs-2" id="TD_Discount" runat="server">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:Label ID="Lbl_Discount" runat="server" MaxLength="5" Text="0%" onchange="discountChangeHandler(event, false);"></asp:Label>
                                            </div>
                                        </div>
                                    </td>
                                    <td>
                                        <div id="div_quantitybox" runat="server">
                                            <div class="form-group">
                                                <div class="form-line">
                                                    <asp:Label ID="Lbl_Quantity" runat="server" Text="0"></asp:Label>
                                                </div>
                                            </div>

                                        </div>
                                    </td>
                                    <td>
                                        <asp:Label ID="Lbl_BillingDetail" runat="server"></asp:Label>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </table>

                </div>
            </div>


            <div class="row">
                <div class="col-xs-12">
                    <asp:Button ID="Btn_Proceed" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,Proceed%>" />
                    <asp:Button ID="Btn_Cancel" CssClass="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content, GN0000572 %>' />
                </div>
            </div>

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

    <EM:ModalPopupExtender runat="server" ID="MPE_OrderDetail" BackgroundCssClass="modalBackground"
        DropShadow="false" PopupControlID="Pnl_OrderDetail" TargetControlID="Btn_Dummy3">
    </EM:ModalPopupExtender>

