<%@ page language="VB" masterpagefile="~/Template/StoreMaster.master" autoeventwireup="false" inherits="Store_SignIn, MachSol.MachPanel.Web" title="Sign-in or Register" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Store/Cart.ascx" TagName="Cart" TagPrefix="EM" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CPH_Order" runat="Server">
    <style type="text/css">
        #duo_iframe {
            width: 100%;
            min-width: 304px;
            max-width: 557px;
            height: 330px;
            border: none;
        }
    </style>
    <%--begin store breadcrumb--%>
    <div class="container" id="div_bread_crumb" runat="server">
        <div class="col-xs-12 p-l-r-0 breadcrumb-main-div">
            <div class="col-xs-12 col-sm-3 p-r-0">
                <div class="breadcrumb-number grey-circle">1</div>
                <div class="store-breadcrumb-line common"></div>
            </div>
            <div class="col-xs-12 col-sm-3 p-l-r-0">
                <div class="breadcrumb-number grey-circle">2</div>
                <div class="store-breadcrumb-line common"></div>
            </div>
            <div class="col-xs-12 col-sm-3 p-l-r-0">
                <div class="breadcrumb-number red-circle">3</div>
                <div class="store-breadcrumb-line selected"></div>
            </div>
            <div class="col-xs-12 col-sm-3 p-l-r-0">
                <div class="breadcrumb-number grey-circle">4</div>
                <div class="store-breadcrumb-line common"></div>
            </div>

        </div>
    </div>
    <%--end store breadcrumb--%>
    <div class="p-t-15">
        <ajax:UpdatePanel ID="UP_OrderDetail" runat="server" UpdateMode="Always" ChildrenAsTriggers="true">
            <ContentTemplate>
                <style>
                    .CustomZIndex {
                        z-index: 99999 !important;
                    }
                </style>
                <asp:Panel ID="Pnl_SignIn" runat="server" DefaultButton="Btn_Login">
                    <div class="row">
                        <div class="col-md-2 col-sm-3 hidden-xs" id="Div_Margin" runat="server" visible="false">
                        </div>

                        <div class="col-md-8 col-xs-12">
                            <div id="Div_SignIn" runat="server">
                                <div class="row">
                                    <%--Sign-In for returning customers--%>
                                    <div class="col-xs-12 col-sm-6 signin-form">
                                        <div class="card" id="leftDiv">
                                            <div class="header">
                                                <h3>
                                                    <asp:Literal ID="Literal8" runat="server" EnableViewState="false" Text="<%$Resources:Content,GN00008004%>"></asp:Literal></h3>
                                            </div>
                                            <div class="body">
                                                <div runat="server" id="Tbl_Step1">
                                                    <div class="row">
                                                        <div class="col-md-3 col-sm-4 col-xs-12 row-label">
                                                            <asp:Literal ID="Literal9" runat="server" EnableViewState="false" Text="<%$Resources:Content,GN0000652%>"></asp:Literal>:
                                                        </div>
                                                        <div class="col-md-7 col-sm-8 col-xs-12">
                                                            <div class="form-group">
                                                                <div class="form-line">
                                                                    <asp:TextBox ID="TxBx_StoreLogin" runat="server" CssClass="form-control" />
                                                                    <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="Login" ID="RFV_Email"
                                                                        ControlToValidate="TxBx_StoreLogin" runat="server" ErrorMessage='<%$Resources:Content,GN00008027%>'
                                                                        Display="None"></asp:RequiredFieldValidator>
                                                                    <%-- <asp:RegularExpressionValidator ID="RE_Email" runat="server" ErrorMessage='<%$Resources:Content,GN00001259%>'
                                                                        ControlToValidate="TxBx_StoreLogin" Display="None" SetFocusOnError="True" ValidationExpression="<%$ Resources:MPRegex,EmailAddress %>"
                                                                        ValidationGroup="Login"></asp:RegularExpressionValidator>--%>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-md-3 col-sm-4 col-xs-12 row-label">
                                                            <asp:Literal ID="Literal1430" runat="server" EnableViewState="false" Text="<%$Resources:Content,GN0000569%>"></asp:Literal>:
                                                        </div>
                                                        <div class="col-md-7 col-sm-8 col-xs-12">
                                                            <div class="form-group">
                                                                <div class="form-line">
                                                                    <asp:TextBox TextMode="Password" CssClass="form-control" ID="TxBx_StorePwd" runat="server" />
                                                                    <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="Login" ID="RFV_Password"
                                                                        ControlToValidate="TxBx_StorePwd" runat="server" ErrorMessage='<%$Resources:Content,GN00008028%>'
                                                                        Display="None"></asp:RequiredFieldValidator>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-md-2 col-sm-3 col-xs-12">
                                                            <asp:Button ID="Btn_Login" CssClass="btn btn-primary waves-effect" ValidationGroup="Login" runat="server" Text='<%$Resources:Content,GN0001248%>' />
                                                            <asp:ValidationSummary ID="VS_Login" ValidationGroup="Login" DisplayMode="BulletList"
                                                                ShowMessageBox="true" ShowSummary="false" runat="server" />
                                                        </div>
                                                        <div class="col-md-8 col-sm-9 col-xs-12 p-t-10 hide">
                                                            <asp:LinkButton ID="LB_ForgetPassword" runat="server" data-toggle="modal" data-target="#myModal">
                                                                <asp:Literal ID="Literal76" runat="server" Text="<%$Resources:Content,GN00008005%>"></asp:Literal>?
                                                            </asp:LinkButton>
                                                        </div>
                                                    </div>


                                                    <!-- Trigger the modal with a button -->
                                                    <!-- Modal -->
                                                    <asp:Panel ID="Pnl_PasswordRest" runat="server" DefaultButton="Btn_Pop_OK">
                                                        <div class="modal fade" id="myModal" role="dialog">
                                                            <div class="modal-dialog">

                                                                <!-- Modal content-->
                                                                <div class="modal-content">
                                                                    <div class="modal-header">
                                                                        <button type="button" class="close" data-dismiss="modal">&times;</button>

                                                                        <div class="PopupHeading">Forget Password</div>

                                                                    </div>
                                                                    <div class="modal-body">
                                                                        <%--Forget password--%>
                                                                        <div class="row">
                                                                            <div class="col-xs-12">
                                                                                <asp:Label ID="Lbl_Caption" runat="server" Text="<%$Resources:Content,L00157%>"></asp:Label>
                                                                            </div>

                                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                                <asp:Literal ID="Literal11" runat="server" EnableViewState="false" Text="<%$Resources:Content,GN0000491%>"></asp:Literal>:
                                                                            </div>
                                                                            <div class="col-sm-8 col-xs-12">
                                                                                <div class="form-group">
                                                                                    <div class="form-line">
                                                                                        <asp:TextBox ID="TxBx_EmailAddress" runat="server" CssClass="form-control" />
                                                                                        <asp:RequiredFieldValidator ID="RFV_ForgotEmail" runat="server" ControlToValidate="TxBx_EmailAddress"
                                                                                            Display="None" ErrorMessage='<%$Resources:Content,GN00008027%>' SetFocusOnError="True"
                                                                                            ValidationGroup="Forgot"></asp:RequiredFieldValidator>
                                                                                        <%-- <asp:RegularExpressionValidator ID="RE_Forgot" runat="server" ControlToValidate="TxBx_EmailAddress"
                                                                                            Display="None" ErrorMessage='<%$Resources:Content,GN00001259%>' SetFocusOnError="True"
                                                                                            ValidationExpression="<%$ Resources:MPRegex,EmailAddress %>" ValidationGroup="Forgot"></asp:RegularExpressionValidator>--%>
                                                                                    </div>
                                                                                </div>


                                                                            </div>
                                                                            <div class="col-xs-12">
                                                                                <asp:Button ID="Btn_Pop_OK" runat="server" Text='<%$Resources:Content,GN00008050%>'
                                                                                    ValidationGroup="Forgot" class="btn btn-primary waves-effect" />
                                                                                &nbsp;&nbsp;&nbsp; &nbsp;
                                                            <asp:Button ID="Btn_Pop_Cancel" runat="server" Text='<%$Resources:Content,GN0000572%>' class="btn btn-primary waves-effect" data-dismiss="modal" />
                                                                                <asp:ValidationSummary ID="VS_Forgot" runat="server" ShowMessageBox="True" ShowSummary="False"
                                                                                    ValidationGroup="Forgot" />
                                                                            </div>

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


                                                </div>
                                                <div id="Tbl_Step2" runat="server" visible="false">
                                                    <asp:Panel ID="Panel1" runat="server" DefaultButton="Btn_SubmitPIN">

                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <asp:Literal ID="Ltr_PINSent" runat="server" Text="<%$ Resources:Content,PINSentInEmail%>" />
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-4 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal18" runat="server" Text="<%$ Resources:Content,PINCode%>" />:
                                                            </div>
                                                            <div class="col-sm-8 col-xs-12">
                                                                <div class="form-group">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_PINCode" runat="server" CssClass="form-control" />
                                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" SetFocusOnError="true" Display="None"
                                                                            runat="server" ErrorMessage="<%$Resources:Content,USM0067%>" ControlToValidate="TxBx_PINCode" ValidationGroup="PIN"></asp:RequiredFieldValidator>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <div class="form-group ">
                                                                    <asp:LinkButton ID="Lb_ResendCode" runat="server" Text="<%$ Resources:Content,ResendPINCode%>"
                                                                        CausesValidation="False" Visible="false"></asp:LinkButton>
                                                                    <asp:HiddenField ID="HiddenTimer" runat="server" />
                                                                    <asp:Label ID="TimerLabel" runat="server" />
                                                                </div>

                                                            </div>
                                                        </div>

                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <div class="form-group">
                                                                    <asp:CheckBox ID="ChBx_RememberDevice" runat="server" Text="<%$ Resources:Content,RememberDeviceText%>" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <span class="pull-left p-l-5">
                                                                    <asp:LinkButton ID="Lb_ResetGoogleAuthenticator" runat="server" Visible="false">
                                                                        <asp:Literal ID="Literal34" runat="server" Text="<%$Resources:Content,ResetGoogleAuthenticator%>"></asp:Literal>?
                                                                    </asp:LinkButton>
                                                                </span>
                                                                <span class="pull-right p-l-5 m-t-22">
                                                                    <asp:Button ID="Btn_SubmitPIN" runat="server" CssClass="btn btn-primary waves-effect"
                                                                        Text="<%$ Resources:Content,GN0000710 %>" ValidationGroup="PIN" />
                                                                    <asp:Button ID="Btn_Cancel" runat="server" CssClass="btn btn-primary waves-effect"
                                                                        Text="<%$ Resources:Content,GN0000572 %>" CausesValidation="false" />
                                                                </span>
                                                            </div>
                                                        </div>
                                                    </asp:Panel>
                                                </div>

                                                <div id="Div_Step2_ResetGA" visible="false" runat="server">
                                                    <asp:Panel ID="Pnl_Step2_ResetGA" runat="server" DefaultButton="Btn_Submit_ResetGA">
                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <div class="form-group p-l-10 p-r-10">
                                                                    <h4>
                                                                        <asp:Literal ID="Literal30" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SPT002021%>"></asp:Literal>
                                                                    </h4>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div style="display: none" id="Div_Error" runat="server" class="row">
                                                            <div class="col-xs-12">
                                                                <div class="form-group p-l-10 p-r-10">
                                                                    <span class="text-danger">
                                                                        <asp:Literal ID="Literal31" EnableViewState="false" runat="server" Text="<%$ Resources:Content,SPT002015%>"></asp:Literal>
                                                                        <asp:Literal ID="Ltl_Reason" runat="server"></asp:Literal>
                                                                    </span>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <div class="form-group p-l-10 p-r-10">
                                                                    <asp:Literal ID="Literal32" runat="server" EnableViewState="false" Text="<%$ Resources:Content,String580%>"></asp:Literal>
                                                                    <div class="clearfix"></div>
                                                                    <asp:Literal ID="Literal33" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SPT002023%>"></asp:Literal>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <div class="form-group form-float p-l-10 p-r-10">
                                                                    <div class="form-line" id="Div_TxBx_Secret">
                                                                        <asp:Label ID="Label4" runat="server" Text="<%$ Resources:Content,SPT002024%>" CssClass="form-select-label"></asp:Label>
                                                                        <asp:TextBox ID="TxBx_Secret" runat="server" CssClass="form-control"></asp:TextBox>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <div class="form-group p-l-10 p-r-10">
                                                                    <asp:Button ID="Btn_Submit_ResetGA" runat="server" CssClass="btn btn-primary" Text="<%$ Resources:Content,ResetGoogleAuthenticator%>" />&nbsp;&nbsp;
                                                            <asp:Button ID="Btn_Cancel_ResetGA" runat="server" CssClass="btn btn-primary" Text="<%$ Resources:Content,GN0000572%>" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </asp:Panel>
                                                </div>

                                                <asp:Panel ID="Pnl_ResetGA" runat="server" DefaultButton="Btn_GA_Pop_OK" Visible="false">

                                                    <div class="row">
                                                        <div class="col-xs-12">
                                                            <div class="form-group p-l-10 p-r-10">
                                                                <h4>
                                                                    <asp:Literal ID="Literal28" runat="server" Text="<%$ Resources:Content,SPT002018%>"
                                                                        EnableViewState="false"></asp:Literal>
                                                                </h4>
                                                                <asp:Literal ID="Literal29" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SPT002019%>"></asp:Literal>
                                                                <br />
                                                                <br />
                                                            </div>
                                                        </div>
                                                        <div class="p-l-10 p-r-10">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal24" runat="server" EnableViewState="false" Text="<%$Resources:Content,GN0000491%>"></asp:Literal>:
                                                            </div>
                                                            <div class="col-sm-8 col-xs-12">
                                                                <div class="form-group">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_EmailAddress_ResetGA" runat="server" CssClass="form-control" />
                                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TxBx_EmailAddress_ResetGA"
                                                                            Display="None" ErrorMessage='<%$Resources:Content,GN00008027%>' SetFocusOnError="True"
                                                                            ValidationGroup="ResetGA"></asp:RequiredFieldValidator>
                                                                        <%--<asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="TxBx_EmailAddress_ResetGA"
                                                                            Display="None" ErrorMessage='<%$Resources:Content,GN00001259%>' SetFocusOnError="True"
                                                                            ValidationExpression="<%$ Resources:MPRegex,EmailAddress %>" ValidationGroup="ResetGA"></asp:RegularExpressionValidator>--%>
                                                                    </div>
                                                                </div>


                                                            </div>
                                                            <div class="col-xs-12">
                                                                <asp:Button ID="Btn_GA_Pop_OK" runat="server" Text='<%$Resources:Content,ResetGoogleAuthenticator%>'
                                                                    ValidationGroup="ResetGA" class="btn btn-primary waves-effect" />
                                                                <asp:Button ID="Btn_GA_Pop_Cancel" runat="server" Text='<%$Resources:Content,GN0000572%>'
                                                                    class="btn btn-primary waves-effect" data-dismiss="modal" />
                                                                <asp:ValidationSummary ID="ValidationSummary2" runat="server" ShowMessageBox="True" ShowSummary="False"
                                                                    ValidationGroup="ResetGA" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                </asp:Panel>

                                                <div id="Div_DuoAuthentication" runat="server" visible="false">
                                                    <iframe id="duo_iframe"></iframe>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <%--new user--%>
                                    <div class="col-xs-12 p-t-10 hidden-sm hidden-md hidden-lg"></div>
                                    <div class="col-xs-12 col-sm-6 signin-form">
                                        <div class="card" id="rightDiv">
                                            <div class="header">
                                                <h3>
                                                    <asp:Label ID="Literal12" runat="server" EnableViewState="false" Text="<%$Resources:Content,FAM0003%>"></asp:Label></h3>
                                            </div>
                                            <div class="body" style="/*min-height: 165px; */">
                                                <div class="row">
                                                    <div class="col-xs-12">
                                                        <asp:Literal ID="Literal16" runat="server" EnableViewState="false" Text="<%$Resources:Content,FAM0004%>"></asp:Literal>
                                                    </div>
                                                    <div class="col-xs-12">
                                                        <asp:Button ID="Btn_Register" CssClass="btn btn-primary" CausesValidation="false" runat="server" Text='<%$Resources:Content,FAM0005%>' />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                </div>
                            </div>

                            <!--new customer profile form-->
                            <asp:Panel ID="Pnl_NewCustomer" runat="server" DefaultButton="Btn_Create">
                                <div class="card" id="Div_CustomerInfo" runat="server">
                                    <div class="header">
                                        <h4>
                                            <asp:Label ID="Label3" runat="server" EnableViewState="false" Text="<%$Resources:Content,FAM0006%>"></asp:Label></h4>
                                    </div>
                                    <div class="body">
                                        <div class="row" id="Div_GDPR" runat="server" visible="false">
                                            <div class="col-xs-12">
                                                <asp:Literal ID="Literal38" runat="server" EnableViewState="false" Text="<%$Resources:Content,GDPRText%>"></asp:Literal>
                                            </div>
                                        </div>

                                        <div class="col-xs-12 PopupHeading">
                                            <asp:Literal ID="Literal13" runat="server" EnableViewState="false" Text="<%$Resources:Content,CompanyInfo%>"></asp:Literal>
                                        </div>



                                        <div class="col-xs-12 col-sm-6 m-t-22">
                                            <div class="form-group form-float">
                                                <div class="form-line">
                                                    <asp:TextBox CssClass="form-control" ID="TxBx_CompanyName" runat="server" />
                                                    <asp:Label ID="Ltl_CName" runat="server" CssClass="form-select-label" Text="<%$ Resources:Content,GN00001077 %>"></asp:Label>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="clearfix"></div>
                                        <div class="col-xs-12 col-sm-6 m-t-22">
                                            <div class="form-group form-float">
                                                <div class="form-line">
                                                    <asp:TextBox CssClass="form-control" ID="TxBx_VATNumber" runat="server" />
                                                    <asp:Label ID="Lbl_VATNumber" runat="server" CssClass="form-select-label" Text="<%$ Resources:Content,strVATNumber %>"></asp:Label>
                                                </div>
                                            </div>
                                        </div>
                                        <!-- i don't have VAT -->
                                        <div class="col-xs-12 col-sm-6 m-t-22" id="Div_DontHaveVAT" runat="server">
                                            <div class="form-group form-float">
                                                <asp:CheckBox ID="Cb_DontHaveVAT" AutoPostBack="true" runat="server" Text="<%$Resources:Content,DontHaveVAT%>" /><br />
                                                &nbsp;
                                            </div>
                                        </div>
                                        <div class="col-xs-12 col-sm-6  m-t-22">
                                            <div class="form-group form-float">
                                                <div class="form-line">
                                                    <asp:TextBox CssClass="form-control" ID="TxBx_Address" runat="server" />
                                                    <asp:Label ID="Ltl_Address" runat="server" EnableViewState="false" CssClass="form-select-label"><%= "*" & Resources.Content.GN0000878 %></asp:Label>
                                                </div>
                                            </div>
                                        </div>
                                        <%--display: none;--%>
                                        <div class="col-xs-12 col-sm-6  m-t-22" style="display: none;">
                                            <div class="form-group form-float">
                                                <div class="form-line">
                                                    <asp:TextBox CssClass="form-control" ID="TxBx_TaxExemptionID" runat="server" />
                                                    <asp:Label ID="Literal27" runat="server" EnableViewState="false" CssClass="form-select-label"><%= "*" & Resources.Content.strTaxExemptionID %></asp:Label>
                                                </div>
                                            </div>
                                        </div>
                                        <div runat="server" id="Div_HouseNumber" visible="false">
                                            <div class="col-xs-12 col-sm-6  m-t-22">
                                                <div class="form-group form-float">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_HouseNumber" runat="server" MaxLength="7" CssClass="allowonlyintegervalues"></asp:TextBox>
                                                        <asp:Label ID="Literal36" runat="server" CssClass="form-select-label" EnableViewState="false"><%= "*" & Resources.Content.HouseNumber %></asp:Label>
                                                    </div>
                                                </div>
                                            </div>



                                            <!-- house number addition -->
                                            <div class="col-xs-12 col-sm-6  m-t-22" id="Div_HouseNumberAddition" runat="server">
                                                <div class="form-group form-float">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_HouseNumberAddition" runat="server" MaxLength="4"></asp:TextBox>
                                                        <asp:Label ID="Literal89" runat="server" CssClass="form-select-label" Text="<%$Resources:Content,HouseNumberAddition%>" EnableViewState="false"></asp:Label>
                                                    </div>
                                                </div>
                                            </div>


                                        </div>


                                        <div runat="server" id="Div_Address2" class="col-xs-12 col-sm-6 m-t-22">
                                            <div class="form-group form-float">
                                                <div class="form-line">
                                                    <asp:TextBox CssClass="form-control" ID="TxBx_Address2" runat="server" />
                                                    <asp:Label ID="Ltl_Address2" runat="server" EnableViewState="false" CssClass="form-select-label"><%= "*" & Resources.Content.GN00001136 %></asp:Label>
                                                </div>
                                                <span class="col-red">
                                                    <asp:Literal ID="Ltrl_Address2" runat="server" EnableViewState="false" Text="*" Visible="false"></asp:Literal></span>
                                            </div>
                                        </div>
                                        <div class="col-xs-12 col-sm-6 m-t-22">
                                            <div class="form-group form-float">
                                                <div class="form-line">
                                                    <asp:TextBox CssClass="form-control" ID="TxBx_City" runat="server" />
                                                    <asp:Label ID="Literal19" runat="server" CssClass="form-select-label" EnableViewState="false"><%= "*" & Resources.Content.GN0000880 %></asp:Label>
                                                </div>
                                            </div>
                                        </div>


                                        <div id="TR_State" runat="server" class="col-xs-12 col-sm-6 m-t-22">

                                            <asp:Label ID="Label19" CssClass="form-select-label" runat="server" EnableViewState="false"><%= "*" & Resources.Content.DEV1130 %></asp:Label>
                                            <asp:DropDownList ID="DDL_State" CssClass="form-control" runat="server" />

                                        </div>
                                        <div class="col-xs-12 col-sm-6 m-t-22" id="TR_Province" runat="server">
                                            <div class="form-group form-float">
                                                <div class="form-line">
                                                    <asp:TextBox CssClass="form-control" ID="TxBx_Province" runat="server" />
                                                    <asp:Label ID="Lbl_Province" runat="server" EnableViewState="false" CssClass="form-select-label"><%= "*" & Resources.Content.GN00001313 %></asp:Label>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="col-xs-12 col-sm-6  m-t-22">
                                            <div class="form-group form-float">
                                                <div class="form-line">
                                                    <asp:TextBox CssClass="form-control" ID="TxBx_Zip" runat="server" />
                                                    <asp:Label ID="Label1" runat="server" EnableViewState="false" CssClass="form-select-label"><%= "*" & Resources.Content.GN00001522 %></asp:Label>
                                                </div>
                                            </div>

                                        </div>

                                        <div class="col-xs-12 col-sm-6 m-t-22 min-height-40">
                                            <asp:Label ID="Label14" CssClass="form-select-label" runat="server" EnableViewState="false"><%= "*" & Resources.Content.Country %></asp:Label>
                                            <asp:DropDownList ID="DDL_Country" CssClass="form-control" runat="server" AutoPostBack="True" CausesValidation="false" />
                                        </div>

                                        <div id="Div_ChamberOfCommerce" runat="server" visible="false" class="col-xs-12 col-sm-6  m-t-22">
                                            <div class="form-group">
                                                <div class="form-line">
                                                    <asp:TextBox ID="TxBx_ChamberOfCommerce" CssClass="form-control" runat="server" MaxLength="16"></asp:TextBox>
                                                    <asp:Label ID="Label5" runat="server" Text='<%$ Resources:Content,ChamberOfCommerceNumber %>' EnableViewState="false" CssClass="form-select-label"></asp:Label>
                                                </div>
                                            </div>
                                        </div>

                                        <div id="Tr_Language" runat="server" class="col-xs-12 col-sm-6 m-t-25">
                                            <asp:Label ID="Label17" CssClass="form-select-label" runat="server" EnableViewState="false"><%= "*" & Resources.Content.Language %></asp:Label>
                                            <asp:DropDownList CssClass="form-control" ID="DDL_Language" runat="server"></asp:DropDownList>
                                        </div>

                                        <%--display: none fields--%>
                                        <div class="row m-t-22" style="display: none;">
                                            <div class="col-sm-6 col-xs-12">
                                                <div class="form-group">
                                                    <asp:DropDownList ID="Ddl_CustomerPaymentGroups" CssClass="form-control" runat="server" />
                                                </div>
                                            </div>
                                            <div class="col-md-2 col-sm-6 col-xs-12 row-label">
                                                <asp:Literal ID="Literal69" runat="server" Text="<%$Resources:Content,GN00001526%>"
                                                    EnableViewState="false"></asp:Literal>:
                                            </div>
                                            <div class="col-md-4 col-sm-6 col-xs-12">
                                                <div class="form-group">
                                                    <asp:TextBox ID="TxBx_SEmail" runat="server" TextMode="MultiLine" Width="100%" Height="150px" />
                                                    <b class="small">
                                                        <asp:Literal ID="Lbl_EnterCommaSeperatedEmailAddresses" runat="server" Text="<%$ Resources:Content,MultipleCanBeSpecifiedSeperatedByComma %>"></asp:Literal></b>
                                                </div>
                                            </div>
                                        </div>

                                        <div id="Tr_Locale" runat="server" class="col-xs-12 col-sm-6  m-t-25">
                                            <asp:Label ID="Label18" CssClass="form-select-label" runat="server" EnableViewState="false"><%= "*" & Resources.Content.GN00001527 %></asp:Label>
                                            <asp:DropDownList ID="DDL_Locale" CssClass="form-control" runat="server" />
                                        </div>

                                        <div id="Tr_TimeZone" runat="server" class="col-xs-12 col-sm-6 m-t-25">
                                            <asp:Label ID="Label183" CssClass="form-select-label" runat="server" EnableViewState="false"><%= "*" & Resources.Content.Lync179 %></asp:Label>
                                            <asp:DropDownList ID="DDL_TimeZone" CssClass="form-control" runat="server">
                                            </asp:DropDownList>
                                        </div>

                                        <div class="clearfix"></div>
                                        <div id="Div_MailingLists" runat="server">
                                            <div class="col-sm-3 col-xs-12 row-label m-t-10">
                                                <asp:Literal ID="Literal22" runat="server" Text="<%$ Resources:Content,String610%>"
                                                    EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12  m-t-15">
                                                <asp:Repeater ID="Rep_MailChimpList" runat="server">
                                                    <ItemTemplate>
                                                        <div style="margin-bottom: 4px;">
                                                            <asp:HiddenField ID="HF_ListId" runat="server" />
                                                            &nbsp;&nbsp;<asp:CheckBox ID="CB_ListOption" runat="server" />
                                                        </div>
                                                    </ItemTemplate>
                                                </asp:Repeater>
                                            </div>
                                        </div>

                                        <%--display: none fileds--%>
                                        <div class="row" style="display: none;">
                                            <div class="col-md-2 col-sm-6 col-xs-12 row-label  m-t-22">
                                                <asp:Literal ID="Literal72" runat="server" Text="<%$Resources:Content,GN00001524%>"
                                                    EnableViewState="false"></asp:Literal>:
                                            </div>
                                            <div class="col-md-4 col-sm-6 col-xs-12  m-t-22">

                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox CssClass="form-control" ID="TxBx_Mobile" runat="server" />
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="col-md-2 col-sm-6 col-xs-12  m-t-22 row-label">
                                                <asp:Literal ID="Literal71" runat="server" Text="<%$Resources:Content,GN0000886%>"
                                                    EnableViewState="false"></asp:Literal>:
                                            </div>
                                            <div class="col-md-4 col-sm-6  m-t-22 col-xs-12">

                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox CssClass="form-control" ID="TxBx_Fax" runat="server" />
                                                        <asp:RegularExpressionValidator ID="REV_Fax" runat="server" ValidationExpression="^[0-9+\-\(\)]*$" ControlToValidate="TxBx_Fax" ValidationGroup="Create" ForeColor="#e61d26"
                                                            Display="Dynamic" SetFocusOnError="true"></asp:RegularExpressionValidator>
                                                    </div>

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

                                        <div id="Tbl_HideShow" runat="server" visible="false">
                                            <%--CNJP and Nome Fantasia--%>
                                            <div class="row m-t-22">
                                                <div class="col-sm-6 col-xs-12">
                                                    <div class="form-group form-float">
                                                        <div class="form-line">
                                                            <asp:TextBox CssClass="form-control" ID="TxBx_CNPJ" runat="server" />
                                                            <asp:Label ID="Label9" runat="server" CssClass="form-select-label"><%= "*" & Resources.Content.CR004 %></asp:Label>
                                                        </div>
                                                    </div>
                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ValidationExpression="^[0-9\-./]*$" ControlToValidate="TxBx_CNPJ" ValidationGroup="Create" ForeColor="#e61d26"
                                                        Display="None" SetFocusOnError="true"></asp:RegularExpressionValidator>
                                                    <asp:RequiredFieldValidator ID="RFV_TxBx_CNPJ" runat="server" ControlToValidate="TxBx_CNPJ"
                                                        ErrorMessage='<%$Resources:Content,CR014%>' ValidationGroup="Create" SetFocusOnError="true" Display="none"></asp:RequiredFieldValidator>
                                                </div>


                                                <div class="col-sm-6 col-xs-12">
                                                    <div class="form-group form-float">
                                                        <div class="form-line">
                                                            <asp:TextBox CssClass="form-control" ID="TxBx_FantasyName" runat="server" />
                                                            <asp:Label ID="Label10" runat="server" CssClass="form-select-label"><%= "*" & Resources.Content.CR005 %></asp:Label>
                                                        </div>
                                                    </div>
                                                    <asp:RequiredFieldValidator ID="RFV_TxBx_FantasyName" runat="server" ControlToValidate="TxBx_FantasyName"
                                                        ErrorMessage='<%$Resources:Content,CR015%>' ValidationGroup="Create" SetFocusOnError="true" Display="none"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                            <%--Inscrição Estadual and Inscrição Municipal--%>
                                            <div class="row m-t-22">
                                                <div class="col-sm-6 col-xs-12">
                                                    <div class="form-group form-float">
                                                        <div class="form-line">
                                                            <asp:TextBox CssClass="form-control" ID="TxBx_StateRegistration" runat="server" />
                                                            <asp:Label ID="Label11" runat="server" CssClass="form-select-label"><%= "*" & Resources.Content.CR006 %></asp:Label>
                                                        </div>
                                                    </div>
                                                    <asp:RegularExpressionValidator ID="REV_TxBx_StateRegistration" runat="server" ValidationExpression="^[0-9]*$" ControlToValidate="TxBx_StateRegistration" ValidationGroup="Create" ForeColor="#e61d26"
                                                        Display="None" SetFocusOnError="true"></asp:RegularExpressionValidator>
                                                </div>

                                                <div class="col-sm-6 col-xs-12">
                                                    <div class="form-group form-float">
                                                        <div class="form-line">
                                                            <asp:TextBox CssClass="form-control" ID="TxBx_DescMunicipal" runat="server" />
                                                            <asp:Label ID="Label12" runat="server" CssClass="form-select-label"><%= "*" & Resources.Content.CR007 %></asp:Label>
                                                        </div>
                                                    </div>
                                                    <asp:RegularExpressionValidator ID="REV_TxBx_DescMunicipal" runat="server" ValidationExpression="^[0-9]*$" ControlToValidate="TxBx_DescMunicipal" ValidationGroup="Create" ForeColor="#e61d26"
                                                        Display="None" SetFocusOnError="true"></asp:RegularExpressionValidator>
                                                </div>
                                            </div>
                                            <%--Bairro and Classificação--%>
                                            <div class="row m-t-22">
                                                <div class="col-sm-6 col-xs-12">
                                                    <div class="form-group form-float">
                                                        <div class="form-line">
                                                            <asp:TextBox CssClass="form-control" ID="TxBx_Neighbours" runat="server" />
                                                            <asp:Label ID="Label13" runat="server" CssClass="form-select-label"><%= "*" & Resources.Content.CR008 %></asp:Label>
                                                        </div>
                                                    </div>
                                                    <asp:RequiredFieldValidator ID="RFV_TxBx_Neighbours" runat="server" ControlToValidate="TxBx_Neighbours"
                                                        ErrorMessage='<%$Resources:Content,CR016%>' ValidationGroup="Create" SetFocusOnError="true" Display="none"></asp:RequiredFieldValidator>
                                                </div>
                                                <div class="col-sm-6 col-xs-12">
                                                    <div class="form-group">
                                                        <asp:DropDownList ID='DDL_Classification' runat="server" CssClass="form-control">
                                                            <asp:ListItem Value="Prof. Liberal" Text="<%$ Resources:Content,SMI0013%>" />
                                                            <asp:ListItem Value="Peq." Text="<%$ Resources:Content,SMI0014%>" />
                                                            <asp:ListItem Value="Médio" Text="<%$ Resources:Content,SMI0015%>" />
                                                            <asp:ListItem Value="Grande" Text="<%$ Resources:Content,SMI0016%>" />
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="row m-t-22">
                                                <div class="col-sm-6 col-xs-12">
                                                    <div class="form-group">
                                                        <asp:DropDownList ID="DDL_TypeOfAddress" runat="server" CssClass="form-control">
                                                            <asp:ListItem Value="A" Text="A" />
                                                            <asp:ListItem Value="Ac" Text="Ac" />
                                                            <asp:ListItem Value="Acamp" Text="Acamp" />
                                                            <asp:ListItem Value="Ad" Text="Ad" />
                                                            <asp:ListItem Value="Ae" Text="Ae" />
                                                            <asp:ListItem Value="Aer" Text="Aer" />
                                                            <asp:ListItem Value="Al" Text="Al" />
                                                            <asp:ListItem Value="Anl" Text="Anl" />
                                                            <asp:ListItem Value="Art" Text="Art" />
                                                            <asp:ListItem Value="At" Text="At" />
                                                            <asp:ListItem Value="Atl" Text="Atl" />
                                                            <asp:ListItem Value="Av" Text="Av" />
                                                            <asp:ListItem Value="Av Cont" Text="Av Cont" />
                                                            <asp:ListItem Value="Bal" Text="Bal" />
                                                            <asp:ListItem Value="Bc" Text="Bc" />
                                                            <asp:ListItem Value="Bco" Text="Bco" />
                                                            <asp:ListItem Value="Belv" Text="Belv" />
                                                            <asp:ListItem Value="Bl" Text="Bl" />
                                                            <asp:ListItem Value="Blo" Text="Blo" />
                                                            <asp:ListItem Value="Bsq" Text="Bsq" />
                                                            <asp:ListItem Value="Bvd" Text="Bvd" />
                                                            <asp:ListItem Value="Bx" Text="Bx" />
                                                            <asp:ListItem Value="C" Text="C" />
                                                            <asp:ListItem Value="Calc" Text="Calc" />
                                                            <asp:ListItem Value="Cam" Text="Cam" />
                                                            <asp:ListItem Value="Can" Text="Can" />
                                                            <asp:ListItem Value="Ch" Text="Ch" />
                                                            <asp:ListItem Value="Chap" Text="Chap" />
                                                            <asp:ListItem Value="Circ" Text="Circ" />
                                                            <asp:ListItem Value="Cj" Text="Cj" />
                                                            <asp:ListItem Value="Cmp Vr" Text="Cmp Vr" />
                                                            <asp:ListItem Value="Col" Text="Col" />
                                                            <asp:ListItem Value="Cond" Text="Cond" />
                                                            <asp:ListItem Value="Cor" Text="Cor" />
                                                            <asp:ListItem Value="Cpo" Text="Cpo" />
                                                            <asp:ListItem Value="Crg" Text="Crg" />
                                                            <asp:ListItem Value="Cx" Text="Cx" />
                                                            <asp:ListItem Value="Dsc" Text="Dsc" />
                                                            <asp:ListItem Value="Dsv" Text="Dsv" />
                                                            <asp:ListItem Value="Dt" Text="Dt" />
                                                            <asp:ListItem Value="Ent Part" Text="Ent Part" />
                                                            <asp:ListItem Value="Eq" Text="Eq" />
                                                            <asp:ListItem Value="Esc" Text="Esc" />
                                                            <asp:ListItem Value="Esp" Text="Esp" />
                                                            <asp:ListItem Value="Est" Text="Est" />
                                                            <asp:ListItem Value="Estc" Text="Estc" />
                                                            <asp:ListItem Value="Est Mun" Text="Est Mun" />
                                                            <asp:ListItem Value="Etc" Text="Etc" />
                                                            <asp:ListItem Value="Etd" Text="Etd" />
                                                            <asp:ListItem Value="Etn" Text="Etn" />
                                                            <asp:ListItem Value="Evd" Text="Evd" />
                                                            <asp:ListItem Value="Fav" Text="Fav" />
                                                            <asp:ListItem Value="Faz" Text="Faz" />
                                                            <asp:ListItem Value="Fer" Text="Fer" />
                                                            <asp:ListItem Value="Fnt" Text="Fnt" />
                                                            <asp:ListItem Value="Fra" Text="Fra" />
                                                            <asp:ListItem Value="Fte" Text="Fte" />
                                                            <asp:ListItem Value="Gal" Text="Gal" />
                                                            <asp:ListItem Value="Gja" Text="Gja" />
                                                            <asp:ListItem Value="Hab" Text="Hab" />
                                                            <asp:ListItem Value="Ia" Text="Ia" />
                                                            <asp:ListItem Value="Jd" Text="Jd" />
                                                            <asp:ListItem Value="Jde" Text="Jde" />
                                                            <asp:ListItem Value="Ld" Text="Ld" />
                                                            <asp:ListItem Value="Lg" Text="Lg" />
                                                            <asp:ListItem Value="Lga" Text="Lga" />
                                                            <asp:ListItem Value="Loc" Text="Loc" />
                                                            <asp:ListItem Value="Lot" Text="Lot" />
                                                            <asp:ListItem Value="Lrg" Text="Lrg" />
                                                            <asp:ListItem Value="Mna" Text="Mna" />
                                                            <asp:ListItem Value="Mod" Text="Mod" />
                                                            <asp:ListItem Value="Mro" Text="Mro" />
                                                            <asp:ListItem Value="Mte" Text="Mte" />
                                                            <asp:ListItem Value="Nuc" Text="Nuc" />
                                                            <asp:ListItem Value="Par" Text="Par" />
                                                            <asp:ListItem Value="Pas" Text="Pas" />
                                                            <asp:ListItem Value="Pat" Text="Pat" />
                                                            <asp:ListItem Value="Pç" Text="Pç" />
                                                            <asp:ListItem Value="Pç-Esp" Text="Pç-Esp" />
                                                            <asp:ListItem Value="Pda" Text="Pda" />
                                                            <asp:ListItem Value="Pdo" Text="Pdo" />
                                                            <asp:ListItem Value="Pnt" Text="Pnt" />
                                                            <asp:ListItem Value="Pr" Text="Pr" />
                                                            <asp:ListItem Value="Prl" Text="Prl" />
                                                            <asp:ListItem Value="Prq" Text="Prq" />
                                                            <asp:ListItem Value="Psa" Text="Psa" />
                                                            <asp:ListItem Value="Psg" Text="Psg" />
                                                            <asp:ListItem Value="Psg-Sub" Text="Psg-Sub" />
                                                            <asp:ListItem Value="Pte" Text="Pte" />
                                                            <asp:ListItem Value="Pto" Text="Pto" />
                                                            <asp:ListItem Value="Q" Text="Q" />
                                                            <asp:ListItem Value="Qta" Text="Qta" />
                                                            <asp:ListItem Value="Qtas" Text="Qtas" />
                                                            <asp:ListItem Value="R" Text="R" />
                                                            <asp:ListItem Value="Ram" Text="Ram" />
                                                            <asp:ListItem Value="Rec" Text="Rec" />
                                                            <asp:ListItem Value="Rer" Text="Rer" />
                                                            <asp:ListItem Value="Res" Text="Res" />
                                                            <asp:ListItem Value="Ret" Text="Ret" />
                                                            <asp:ListItem Value="R Lig" Text="R Lig" />
                                                            <asp:ListItem Value="Rmp" Text="Rmp" />
                                                            <asp:ListItem Value="Rod" Text="Rod" />
                                                            <asp:ListItem Value="Rod-An" Text="Rod-An" />
                                                            <asp:ListItem Value="Rot" Text="Rot" />
                                                            <asp:ListItem Value="R-Ped" Text="R-Ped" />
                                                            <asp:ListItem Value="Rtn" Text="Rtn" />
                                                            <asp:ListItem Value="Rtt" Text="Rtt" />
                                                            <asp:ListItem Value="Sit" Text="Sit" />
                                                            <asp:ListItem Value="Srv" Text="Srv" />
                                                            <asp:ListItem Value="St" Text="St" />
                                                            <asp:ListItem Value="Sub" Text="Sub" />
                                                            <asp:ListItem Value="Tch" Text="Tch" />
                                                            <asp:ListItem Value="Ter" Text="Ter" />
                                                            <asp:ListItem Value="Tr" Text="Tr" />
                                                            <asp:ListItem Value="Trv" Text="Trv" />
                                                            <asp:ListItem Value="Tun" Text="Tun" />
                                                            <asp:ListItem Value="Tv" Text="Tv" />
                                                            <asp:ListItem Value="Tv-Part" Text="Tv-Part" />
                                                            <asp:ListItem Value="Unid" Text="Unid" />
                                                            <asp:ListItem Value="V" Text="V" />
                                                            <asp:ListItem Value="V-Ac" Text="V-Ac" />
                                                            <asp:ListItem Value="Val" Text="Val" />
                                                            <asp:ListItem Value="Vd" Text="Vd" />
                                                            <asp:ListItem Value="Ver" Text="Ver" />
                                                            <asp:ListItem Value="V-Evd" Text="V-Evd" />
                                                            <asp:ListItem Value="V-Exp" Text="V-Exp" />
                                                            <asp:ListItem Value="Vl" Text="Vl" />
                                                            <asp:ListItem Value="Vla" Text="Vla" />
                                                            <asp:ListItem Value="Vle" Text="Vle" />
                                                            <asp:ListItem Value="V-Ped" Text="V-Ped" />
                                                            <asp:ListItem Value="Vrte" Text="Vrte" />
                                                            <asp:ListItem Value="Zig-Zag" Text="Zig-Zag" />
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>

                                                <div class="col-sm-6 col-xs-12">
                                                    <div class="form-group">
                                                        <asp:DropDownList ID="DDL_Sector" runat="server" CssClass="form-control">
                                                            <asp:ListItem Value="Advocacia" Text="Advocacia" />
                                                            <asp:ListItem Value="Agricultura" Text="Agricultura" />
                                                            <asp:ListItem Value="Alimentos e bebidas" Text="Alimentos e bebidas" />
                                                            <asp:ListItem Value="Associação de Classe" Text="Associação de Classe" />
                                                            <asp:ListItem Value="Automobilistica" Text="Automobilistica" />
                                                            <asp:ListItem Value="Biotecnologia" Text="Biotecnologia" />
                                                            <asp:ListItem Value="Comunicações" Text="Comunicações" />
                                                            <asp:ListItem Value="Construção civil" Text="Construção civil" />
                                                            <asp:ListItem Value="Consultoria" Text="Consultoria" />
                                                            <asp:ListItem Value="Cosméticos" Text="Cosméticos" />
                                                            <asp:ListItem Value="Educação" Text="Educação" />
                                                            <asp:ListItem Value="Eletrônica" Text="Eletrônica" />
                                                            <asp:ListItem Value="Energia" Text="Energia" />
                                                            <asp:ListItem Value="Engenharia" Text="Engenharia" />
                                                            <asp:ListItem Value="Entretenimento" Text="Entretenimento" />
                                                            <asp:ListItem Value="Equipamentos" Text="Equipamentos" />
                                                            <asp:ListItem Value="Expedição" Text="Expedição" />
                                                            <asp:ListItem Value="Farmacêutica" Text="Farmacêutica" />
                                                            <asp:ListItem Value="Finanças" Text="Finanças" />
                                                            <asp:ListItem Value="Governo" Text="Governo" />
                                                            <asp:ListItem Value="Higiene" Text="Higiene" />
                                                            <asp:ListItem Value="Hotelaria" Text="Hotelaria" />
                                                            <asp:ListItem Value="Logistica" Text="Logistica" />
                                                            <asp:ListItem Value="Manufatura" Text="Manufatura" />
                                                            <asp:ListItem Value="Mecânica" Text="Mecânica" />
                                                            <asp:ListItem Value="Meio ambiente" Text="Meio ambiente" />
                                                            <asp:ListItem Value="Metalurgica" Text="Metalurgica" />
                                                            <asp:ListItem Value="Mídia" Text="Mídia" />
                                                            <asp:ListItem Value="Mineração" Text="Mineração" />
                                                            <asp:ListItem Value="Outros" Text="Outros" />
                                                            <asp:ListItem Value="Papel e Celulose" Text="Papel e Celulose" />
                                                            <asp:ListItem Value="Petroleo" Text="Petroleo" />
                                                            <asp:ListItem Value="Plástico" Text="Plástico" />
                                                            <asp:ListItem Value="Produtos Hospitalares" Text="Produtos Hospitalares" />
                                                            <asp:ListItem Value="Produtos Químicos" Text="Produtos Químicos" />
                                                            <asp:ListItem Value="Recreação" Text="Recreação" />
                                                            <asp:ListItem Value="Recursos Humanos" Text="Recursos Humanos" />
                                                            <asp:ListItem Value="Saúde" Text="Saúde" />
                                                            <asp:ListItem Value="Seguros" Text="Seguros" />
                                                            <asp:ListItem Value="Sem fins lucrativos" Text="Sem fins lucrativos" />
                                                            <asp:ListItem Value="Serviços bancários" Text="Serviços bancários" />
                                                            <asp:ListItem Value="Serviços públicos" Text="Serviços públicos" />
                                                            <asp:ListItem Value="Tecnologia" Text="Tecnologia" />
                                                            <asp:ListItem Value="Telecomunicações" Text="Telecomunicações" />
                                                            <asp:ListItem Value="Transportes" Text="Transportes" />
                                                            <asp:ListItem Value="Varejo" Text="Varejo" />
                                                            <asp:ListItem Value="Vestuário" Text="Vestuário" />
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="row m-l-r-0">
                                            <div class="col-xs-12 PopupHeading">
                                                <asp:Literal ID="Literal67" runat="server" Text="<%$Resources:Content,CreateYourLogin%>"
                                                    EnableViewState="false"></asp:Literal>
                                            </div>

                                        </div>
                                        <ajax:UpdatePanel ID="UP_CheckLogin" runat="server" UpdateMode="Conditional">
                                            <ContentTemplate>
                                                <div class="row m-t-22 m-l-r-0">
                                                    <div class="col-xs-12 col-sm-6 m-t-22">
                                                        <div class="form-group form-float">
                                                            <div class="form-line">
                                                                <asp:Label ID="lbl_firstname" runat="server" EnableViewState="false" CssClass="form-select-label"><%= "*" & Resources.Content.GN00001132 %></asp:Label>
                                                                <asp:TextBox CssClass="form-control" ID="TxBx_FirstName" runat="server" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-12 col-sm-6 m-t-22">
                                                        <div class="form-group form-float">
                                                            <div class="form-line">
                                                                <asp:TextBox CssClass="form-control" ID="TxBx_LastName" runat="server" />
                                                                <asp:Label ID="Literal15" runat="server" EnableViewState="false" CssClass="form-select-label"><%= "*" & Resources.Content.GN00001133 %></asp:Label>
                                                            </div>
                                                        </div>
                                                    </div>


                                                    <div class="col-xs-6 col-sm-3 m-t-22">
                                                        <div class="form-group form-float">
                                                            <div class="form-line">
                                                                <asp:Label ID="Label15" CssClass="form-select-label" runat="server" EnableViewState="false"><%= "*" & Resources.Content.CountryPhoneCode %></asp:Label>
                                                                <asp:TextBox CssClass="form-control" ID="TxBx_CountryCode" runat="server" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-6 col-sm-3 m-t-22">
                                                        <div class="form-group form-float">
                                                            <div class="form-line">
                                                                <asp:Label ID="Label16" CssClass="form-select-label" runat="server" EnableViewState="false"><%= "*" & Resources.Content.OCS003 %></asp:Label>
                                                                <asp:TextBox CssClass="form-control" ID="TxBx_Phone" runat="server" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="clearfix"></div>
                                                    <%-- Email--%>
                                                    <div class="col-sm-6 col-xs-12 m-t-22">
                                                        <div class="form-group form-float">
                                                            <div class="form-line">
                                                                <asp:TextBox CssClass="form-control" ID="TxBx_LoginEmail" runat="server" />
                                                                <asp:Label ID="Label6" runat="server" EnableViewState="false" CssClass="form-select-label"><%= "*" & Resources.Content.GN0000652 %></asp:Label>
                                                            </div>
                                                        </div>
                                                        <asp:RequiredFieldValidator ValidationGroup="CheckAvl" SetFocusOnError="true" ID="RFV_CheckAvalability"
                                                            ControlToValidate="TxBx_LoginEmail" Display="None" runat="server" ErrorMessage='<%$Resources:Content,GN00008027%>'></asp:RequiredFieldValidator>
                                                        <%-- <asp:RegularExpressionValidator ValidationExpression="<%$ Resources:MPRegex,EmailAddress %>"
                                                            ValidationGroup="CheckAvl" ID="RegularExpressionValidator1" runat="server" ControlToValidate="TxBx_LoginEmail"
                                                            SetFocusOnError="true" Display="None" ErrorMessage='<%$Resources:Content,GN00001259%>'></asp:RegularExpressionValidator>--%>
                                                    </div>
                                                    <%--Button--%>
                                                    <div class="col-sm-6 col-xs-12 m-t-22">
                                                        <asp:LinkButton ValidationGroup="CheckAvl" ID="Btn_Check" CssClass="btn btn-primary waves-effect" runat="server" Text='<%$Resources:Content,GN00008053%>' />

                                                        <asp:ValidationSummary ID="VS_CheckAvl" ValidationGroup="CheckAvl" ShowMessageBox="true"
                                                            ShowSummary="false" runat="server" />
                                                        <%-- <div id="Div_CheckEmail" runat="server" enableviewstate="false" style="display: none">
                                               
                                            </div>--%>
                                                    </div>
                                                </div>
                                            </ContentTemplate>
                                            <Triggers>
                                                <ajax:AsyncPostBackTrigger ControlID="Btn_Check" />
                                            </Triggers>
                                        </ajax:UpdatePanel>
                                        <div class="row m-l-r-0 m-t-20">
                                            <%--Password and confirm Password--%>
                                            <div class="col-sm-6 col-xs-12 m-t-22">
                                                <div class="form-group form-float">
                                                    <div class="form-line">
                                                        <asp:TextBox TextMode="Password" ID="TxBx_LoginPassword" runat="server" />
                                                        <asp:Label ID="Label7" runat="server" EnableViewState="false" CssClass="form-select-label"><%= "*" & Resources.Content.GN0000569 %></asp:Label>
                                                    </div>

                                                </div>

                                            </div>

                                            <div class="col-sm-6 col-xs-12 m-t-22">
                                                <asp:Label ID="Label8" runat="server" EnableViewState="false" CssClass="form-select-label"><%= "*" & Resources.Content.VerifyPassword %></asp:Label>
                                                <div class="input-group">
                                                    <div class="form-line">
                                                        <asp:TextBox CssClass="form-control" TextMode="Password" ID="TxBx_ConfirmPassword" runat="server" />

                                                    </div>

                                                    <span class="input-group-addon">
                                                        <a runat="server" href="#" id="ltrZipPostalCodeRegex" data-toggle="tooltip" data-placement="top">
                                                            <span class="glyphicon glyphicon-info-sign glyphicons-style"></span>
                                                        </a>
                                                    </span>
                                                </div>

                                            </div>

                                        </div>
                                        <div class="row m-t-22 m-l-r-0">
                                            <%--display: none;--%>
                                            <div class="row m-t-22" style="display: none;">
                                                <div class="col-md-2 col-sm-6 col-xs-12 row-label" style="display: none;">
                                                    <asp:Literal ID="Literal63" runat="server" Text="<%$Resources:Content,GN00008009%>"
                                                        EnableViewState="false"></asp:Literal>:<span class="col-red">*</span>
                                                </div>
                                                <div class="col-md-4 col-sm-6 col-xs-12" style="display: none;">
                                                    <div class="form-group">
                                                        <asp:DropDownList ID="DDL_Referal" runat="server">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                            </div>

                                            <%--Captcha and Password Policy--%>

                                            <div class="col-sm-6 col-xs-12">
                                                <asp:Label ID="Label22" runat="server" EnableViewState="false" CssClass="form-select-label"><%= "*" & Resources.Content.EnterVerificationNo %></asp:Label>
                                                <div class="input-group">
                                                    <span class="input-group-addon">
                                                        <asp:Image ID="Image_captcha" CssClass="Captcha-img" runat="server" Width="90px" Height="35" BorderWidth="1px" /></span>
                                                    <span class="input-group-addon">
                                                        <asp:ImageButton ID="ImageButton1" ImageAlign="Baseline" ImageUrl="~/App_Themes/Store/images/icons/reload.png" runat="server" OnClick="ImageButton1_Click" /></span>
                                                    <div class="form-line">
                                                        <asp:TextBox CssClass="form-control" ID="txtCaptcha" runat="server" />

                                                    </div>

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

                                                <%--<div id="Div_PasswordPolicy" runat="server" class="help-text sm"></div>--%>
                                            </div>

                                            <!-- TERMS  -->
                                            <div class="col-xs-12">
                                                <div class="form-group form-float">
                                                    <asp:CheckBox ID="CB_Agree" runat="server" CausesValidation="false" Text="&nbsp;" /><asp:Label ID="Lbl_TermsHeader" runat="server"></asp:Label>
                                                </div>


                                                <asp:Repeater ID="Rep_Terms" runat="server">
                                                    <HeaderTemplate>
                                                        <div class="col-xs-12">
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <div class="terms-links">
                                                            <asp:LinkButton ID="LB_Terms" runat="server" />
                                                        </div>
                                                    </ItemTemplate>
                                                    <FooterTemplate>
                                                        </div>
                                                    </FooterTemplate>
                                                </asp:Repeater>

                                            </div>

                                            <div class="col-xs-12">
                                                <asp:Button ID="Btn_Create" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$Resources:Content,GN00008051%>" ValidationGroup="Create" />
                                                <asp:Button ID="Btn_Cancel_Reg" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$Resources:Content,GN0000572%>" CausesValidation="false" />

                                            </div>
                                        </div>
                                        <asp:RequiredFieldValidator ID="RFV_FirstName" runat="server" ControlToValidate="TxBx_FirstName" Display="None" ErrorMessage="<%$Resources:Content,GN00008064%>" SetFocusOnError="True" ValidationGroup="Create"></asp:RequiredFieldValidator>

                                        <asp:RequiredFieldValidator ID="RFV_LastName" runat="server" ControlToValidate="TxBx_LastName" Display="None" ErrorMessage="<%$Resources:Content,GN00008069%>" SetFocusOnError="True" ValidationGroup="Create"></asp:RequiredFieldValidator>

                                        <asp:RegularExpressionValidator ID="REV_HouseNumber" runat="server"
                                            ControlToValidate="TxBx_HouseNumber" ErrorMessage='<%$ Resources : Content, OnlyIntegerValues %>'
                                            ValidationExpression="^[0-9]*$" ValidationGroup="Create">
                                        </asp:RegularExpressionValidator>
                                        <asp:RequiredFieldValidator ID="RFV_HouseNumber" runat="server" ControlToValidate="TxBx_HouseNumber"
                                            Display="None" ValidationGroup="Create" SetFocusOnError="True" ErrorMessage="<%$ Resources : Content, HouseNumberR %>"></asp:RequiredFieldValidator>
                                        <asp:RequiredFieldValidator ID="RFV_TxBx_CompanyName" runat="server" ControlToValidate="TxBx_CompanyName" Display="None" ErrorMessage='<%$Resources:Content,strCompanyNameRequired%>' SetFocusOnError="True" ValidationGroup="Create"></asp:RequiredFieldValidator>

                                        <asp:RequiredFieldValidator ID="RFV_Address1" runat="server" ControlToValidate="TxBx_Address" Display="None" ErrorMessage="<%$Resources:Content,GN00008063%>" SetFocusOnError="True" ValidationGroup="Create"></asp:RequiredFieldValidator>
                                        <asp:RequiredFieldValidator ID="RFV_City" runat="server" ControlToValidate="TxBx_City" Display="None" ErrorMessage="<%$Resources:Content,GN00008062%>" SetFocusOnError="True" ValidationGroup="Create"></asp:RequiredFieldValidator>
                                        <asp:RequiredFieldValidator ID="RFV_Zip" runat="server" ControlToValidate="TxBx_Zip" Display="None" ErrorMessage="<%$Resources:Content,GN00008061%>" SetFocusOnError="True" ValidationGroup="Create"></asp:RequiredFieldValidator>
                                        <asp:RequiredFieldValidator ID="RFV_Province" runat="server" ControlToValidate="TxBx_Province" Display="None" ErrorMessage="<%$Resources:Content,GN00008060%>" SetFocusOnError="True" ValidationGroup="Create"></asp:RequiredFieldValidator>
                                        <asp:RequiredFieldValidator ID="RFV_CountryCode" runat="server" ControlToValidate="TxBx_CountryCode" Display="None" ErrorMessage="<%$Resources:Content,GN00008059%>" SetFocusOnError="True" ValidationGroup="Create"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="REV_CountryCode" runat="server" ControlToValidate="TxBx_CountryCode" Display="None" ErrorMessage="<%$Resources:Content,DGN1110069%>" SetFocusOnError="true" ValidationExpression="^([+]?([0-9]{1,3}))$" ValidationGroup="Create"> </asp:RegularExpressionValidator>
                                        <asp:RequiredFieldValidator ID="RFV_Phone" runat="server" ControlToValidate="TxBx_Phone" Display="None" ErrorMessage="<%$Resources:Content,GN00008058%>" SetFocusOnError="True" ValidationGroup="Create"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TxBx_Phone" Display="None" ErrorMessage="<%$ Resources:Content,DGN1110070%>" SetFocusOnError="True" ValidationExpression="^[\s0-9()-]{5,20}$" ValidationGroup="Create"></asp:RegularExpressionValidator>
                                        <asp:RequiredFieldValidator ID="RFV_TxBx_VATNumber" runat="server" ControlToValidate="TxBx_VATNumber"
                                            Display="None" ErrorMessage='<%$Resources:Content,strVATNumberRequired%>' SetFocusOnError="True"
                                            ValidationGroup="Create"></asp:RequiredFieldValidator>
                                        <asp:RequiredFieldValidator ID="RFV_TxBx_Address2" runat="server" ControlToValidate="TxBx_Address2"
                                            Display="None" ErrorMessage='<%$Resources:Content,CR013%>' SetFocusOnError="True"
                                            ValidationGroup="Create" Enabled="false"></asp:RequiredFieldValidator>
                                        <%--     <asp:ImageButton ID="ImageButton1" ImageUrl="~/refresh.png" runat="server" CausesValidation="false" />
                                        --%>
                                        <asp:ValidationSummary ID="VS_Create" runat="server" ShowMessageBox="True" ShowSummary="False" ValidationGroup="Create" />
                                        <asp:RequiredFieldValidator ID="RFV_LoginPassword" runat="server" ControlToValidate="TxBx_LoginPassword" Display="None" ErrorMessage="<%$Resources:Content,GN00008056%>" SetFocusOnError="True" ValidationGroup="Create"></asp:RequiredFieldValidator>
                                        <asp:CompareValidator ID="CV_Password" runat="server" ControlToCompare="TxBx_LoginPassword" ControlToValidate="TxBx_ConfirmPassword" Display="None" ErrorMessage="<%$Resources:Content,DGN1110005%>" SetFocusOnError="True" ValidationGroup="Create"></asp:CompareValidator>
                                        <asp:RequiredFieldValidator ID="RFV_ConfirmPassword" runat="server" ControlToValidate="TxBx_ConfirmPassword" Display="None" ErrorMessage="<%$Resources:Content,GN0001196%>" SetFocusOnError="True" ValidationGroup="Create"></asp:RequiredFieldValidator>
                                        <asp:RequiredFieldValidator ID="RFV_LoginEmail" runat="server" ControlToValidate="TxBx_LoginEmail" Display="None" ErrorMessage="<%$Resources:Content,GN00008055%>" SetFocusOnError="True" ValidationGroup="Create"></asp:RequiredFieldValidator>
                                        <%--      <asp:RegularExpressionValidator ID="RE_PEmail" runat="server" ControlToValidate="TxBx_PEmail"
                                    Display="None" ErrorMessage='<%$Resources:Content,DGN1110036%>' SetFocusOnError="True"
                                    ValidationExpression="<%$ Resources:MPRegex,EmailAddress %>" ValidationGroup="Create"></asp:RegularExpressionValidator>--%>
                                        <%-- <asp:RegularExpressionValidator ID="RE_LoginEmail" runat="server" ControlToValidate="TxBx_LoginEmail" Display="None" ErrorMessage="<%$Resources:Content,GN00008054%>" SetFocusOnError="True" ValidationExpression="<%$ Resources:MPRegex,EmailAddress %>" ValidationGroup="Create"></asp:RegularExpressionValidator>--%>
                                        <%--<asp:RequiredFieldValidator ID="RFV_Referral" runat="server" ControlToValidate="DDL_Referal" Display="None" ErrorMessage="<%$Resources:Content,GN00008065%>" InitialValue="0" SetFocusOnError="True" ValidationGroup="Create"></asp:RequiredFieldValidator>--%>
                                    </div>
                                </div>
                            </asp:Panel>
                            <!--end new customer profile form-->

                            <div class="row" id="Div_VerificationCode" runat="server" visible="false">
                                <div class="card">
                                    <div class="header">
                                        <h3>
                                            <asp:Label ID="Label20" runat="server" EnableViewState="false" Text="<%$Resources:Content,VerificationCode%>"></asp:Label></h3>
                                    </div>
                                    <div class="body">
                                        <div class="row">
                                            <div class="col-xs-12 m-t-22 row-label">
                                                <asp:Label ID="Lbl_InputValidationCodeNotice" runat="server" EnableViewState="false" Text="<%$Resources:Content,InputValidationCodeNotice%>" />
                                            </div>
                                            <div class="col-xs-12 col-sm-6 m-t-22">
                                                <div class="form-group form-float">
                                                    <div class="form-line">
                                                        <asp:Label ID="Label21" runat="server" EnableViewState="false" CssClass="form-select-label"><%= "*" & Resources.Content.VerificationCode %></asp:Label>
                                                        <asp:TextBox CssClass="form-control" ID="TxBx_VerificationCode" runat="server" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:Button ID="Btn_Verify" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$Resources:Content,strVerify%>" ValidationGroup="Verify" />
                                                <asp:RequiredFieldValidator ID="RFV_TxBx_VerificationCode" runat="server" ControlToValidate="TxBx_VerificationCode" Display="None" ErrorMessage="<%$Resources:Content,VerificationCodeRequired%>" SetFocusOnError="True" ValidationGroup="Verify"></asp:RequiredFieldValidator>
                                                <asp:ValidationSummary ID="VS_Verify" runat="server" ShowMessageBox="True" ShowSummary="False" ValidationGroup="Verify" />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div id="Div_Cart" runat="server" class="col-md-4 col-xs-12">
                            <EM:Cart ID="Cart1" runat="server"></EM:Cart>
                        </div>
                    </div>



                    <asp:Button ID="Btn_Dummy2" Style="display: none" runat="server" />
                    <asp:Panel ID="Pnl_SavePhone" runat="server" Style="display: none" CssClass="width-modal-popup-auto">
                        <div class="col-xs-12">
                            <div class="card">
                                <div class="header container-fluid">
                                    <h3 class="pull-left"><%= Resources.Content.EnterMobile%></h3>
                                    <span>
                                        <button type="button" class="close" onclick="$find('<%=MPE_Phone.ClientID%>').hide();">&times;</button>
                                    </span>
                                </div>
                                <div class="body">
                                    <div class="row">
                                        <div class="col-sm-2 col-xs-12 row-label">
                                            <asp:Literal ID="Literal23" runat="server" Text="<%$ Resources:Content,MobileNumber %>"
                                                EnableViewState="false" />:
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group">
                                                <div class="form-line">
                                                    <asp:TextBox ID="TxBx_PhoneNumber" runat="server" CssClass="form-control" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:Button ID="Btn_Pop_OK2" runat="server" ValidationGroup="SavePhoneNumber" CssClass="btn btn-primary" Text="<%$ Resources:Content,SendPIN %>" />&nbsp;&nbsp;
                            <asp:Button ID="Btn_Pop_Cancel2" runat="server" CausesValidation="false" CssClass="btn btn-primary" Text="<%$ Resources:Content,GN0000572 %>" />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </asp:Panel>
                    <EM:ModalPopupExtender runat="server" ID="MPE_Phone" OkControlID="Btn_Pop_OK2"
                        CancelControlID="Btn_Pop_Cancel2" OnOkScript="onOk()" OnCancelScript="onCancel()" BackgroundCssClass="modalBackground" DropShadow="false"
                        PopupControlID="Pnl_SavePhone" TargetControlID="Btn_Dummy2">
                    </EM:ModalPopupExtender>

                    <%--Note: we have assigned a class CustomZIndex to popup in order to set its z-index, so that an error message can appear on top of popup--%>
                    <asp:Button ID="Btn_Dummy3" Style="display: none" runat="server" />
                    <asp:Panel ID="Pnl_SaveQRCode" CssClass="width-modal-popup-auto CustomZIndex" runat="server" Style="display: none;" DefaultButton="Btn_SaveQRCode">
                        <div class="col-xs-12">
                            <div class="card">
                                <div class="header container-fluid">
                                    <h3 class="pull-left"><%= Resources.Content.QRCode%></h3>
                                    <span>
                                        <button type="button" class="close" onclick="$find('<%=MPE_GA.ClientID%>').hide();">&times;</button>
                                    </span>
                                </div>
                                <div class="body">
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:Image ID="Image_QRCode" runat="server" />
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <asp:Literal ID="Literal26" runat="server" Text="<%$ Resources:Content,ScanQRCodeOrUseTheKey %>"
                                                EnableViewState="false" />:
                                        </div>
                                        <div class="col-sm-9 col-xs-12">
                                            <asp:Label ID="Lbl_SecretCode" runat="server"></asp:Label>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:Literal ID="Literal35" runat="server" Text="<%$ Resources:Content,GAuthHelp %>"
                                                EnableViewState="false" />
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <label>
                                                <asp:Label ID="Label2" runat="server" Text="<%$ Resources:Content,EnterCode %>"
                                                    EnableViewState="false" />:</label>
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group">
                                                <div class="form-line">
                                                    <asp:TextBox ID="TxBx_GACode" CssClass="form-control" MaxLength="6" runat="server"></asp:TextBox>
                                                </div>
                                            </div>
                                            <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="SaveQRCode" ID="RequiredFieldValidator1"
                                                ControlToValidate="TxBx_GACode" runat="server" ErrorMessage='<%$Resources:Content,QRCodeRequired%>'
                                                Display="None"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:ValidationSummary ID="ValidationSummary1" ValidationGroup="SaveQRCode" ShowMessageBox="true"
                                                ShowSummary="false" runat="server" />
                                            <asp:Button ID="Btn_SaveQRCode" ValidationGroup="SaveQRCode" CssClass="btn btn-primary btnAction" runat="server" Text="<%$ Resources:Content,Save %>" />
                                            <asp:Button ID="Btn_CancelQRCode" CausesValidation="false" CssClass="btn btn-primary" runat="server" Text="<%$ Resources:Content,GN0000572 %>" />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </asp:Panel>
                    <EM:ModalPopupExtender runat="server" ID="MPE_GA"
                        CancelControlID="Btn_CancelQRCode" OnOkScript="onOkGA()" OnCancelScript="onCancelGA()" BackgroundCssClass="modalBackground" DropShadow="false"
                        PopupControlID="Pnl_SaveQRCode" TargetControlID="Btn_Dummy3">
                    </EM:ModalPopupExtender>


                </asp:Panel>
            </ContentTemplate>
        </ajax:UpdatePanel>
    </div>


    <script type="text/javascript">
        function onOk() {
            if (document.getElementById('ctl00_CPH_Order_TxBx_PhoneNumber').value != '') {
                __doPostBack('ctl00$CPH_Order$Btn_Pop_OK2', '');
            }
            else {
                alert("Please enter phone number.");
                $find('ctl00_CPH_Order_MPE_Phone').show();
            }

        }
        function onCancel() {
            __doPostBack('ctl00$CPH_Order$Btn_Pop_Cancel2', '');
        }

        function onOkGA() {
            if (document.getElementById('TxBx_GACode').value != '') {
                __doPostBack('Btn_SaveQRCode', '');
            }
            else {
                alert("Please enter code.");
                $find('MPE_GA').show();
            }

        }

        function onCancelGA() {
            __doPostBack('ctl00$CPH_Order$Btn_CancelQRCode', '');
        }

        function IntializeDuo(DuoHostName, DuoSigRequest, CId, CName, CEmail) {
            Duo.init({
                'host': DuoHostName,
                'sig_request': DuoSigRequest,
                'post_action': 'SignIn.aspx?Action=DuoAuthenticationSuccess&CId=' + CId + '&CName=' + CName + '&CEmail=' + CEmail
            });
        }



        $(document).ready(function (event) {
            //alert('inside');
            var right = $('#rightDiv').height();
            var left = $('#leftDiv').height();

            //alert(left + ' : ' + right)
            if (left > right) {
                $('#rightDiv').height(left);
            }
            else {
                $('#leftDiv').height(right);
            }
        });

        function initTimer() {
            const resendButton = document.getElementById("<%= Lb_ResendCode.ClientID %>");
            const timerLabel = document.getElementById("<%= TimerLabel.ClientID %>");
            const hiddenTimer = document.getElementById("<%= HiddenTimer.ClientID %>");

            if (!hiddenTimer || !resendButton || !timerLabel) return; // safeguard

            function updateTimer() {
                const endTime = new Date(hiddenTimer.value);
                const interval = setInterval(() => {
                    const currentTime = new Date();
                    const remaining = Math.floor((endTime - currentTime) / 1000);

                    if (remaining > 0) {
                        resendButton.style.display = 'none';
                        timerLabel.style.display = '';
                        timerLabel.textContent = `You can resend the code in ${remaining} seconds.`;
                    } else {
                        clearInterval(interval);
                        resendButton.style.display = '';
                        timerLabel.style.display = 'none';
                    }
                }, 1000);
            }

            updateTimer();
        }

        // Run once on full page load
        document.addEventListener("DOMContentLoaded", initTimer);

        // Run again after every UpdatePanel refresh
        var prm = Sys.WebForms.PageRequestManager.getInstance();
        prm.add_endRequest(function () {
            initTimer();
        });

    </script>
</asp:Content>
