<%@ page language="VB" masterpagefile="~/Template/FullContentPage.master" autoeventwireup="false" enableeventvalidation="false" inherits="RCC_Network_ServiceDirector_SQ_VPSControl, MachSol.MachPanel.Web" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <script type="text/javascript">
        Sys.Browser.WebKit = {};
        if (navigator.userAgent.indexOf('WebKit/') > -1) {
            Sys.Browser.agent = Sys.Browser.WebKit;
            Sys.Browser.version = parseFloat(navigator.userAgent.match(/WebKit\/(\d+(\.\d+)?)/)[1]);
            Sys.Browser.name = 'WebKit';
        }

        function DiskTypeChanged(control) {
            if ($(control).val() == "1") {
                $(control).parent().prev().prev().find('input').val('');
                $(control).parent().prev().prev().find('input').attr('disabled', 'disabled');
                $(control).parent().next().next().find('select').attr('disabled', '');
            }
            else {
                $(control).parent().prev().prev().find('input').val('127');
                $(control).parent().prev().prev().find('input').attr('disabled', '');
                $(control).parent().next().next().find('select').attr('disabled', 'disabled');
            }
        }

        function ShowMsg() {



            var winH = $(window).height();
            var winW = $(window).width();

            $('#Div_Msg').css({ 'position': 'fixed', 'top': parseInt((winH / 2) - ($('#Div_Msg').height() / 2), 10) });

        }
    </script>

    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3>
                    <%= Resources.Content.strVPSSubscriptionSetup %>
                </h3>
            </div>
            <div class="body">
                <%-- <div class="row">
                    <div class="col-xs-12" id="overDiv"></div>
                </div>--%>
                <%-- <asp:UpdatePanel ID="UP" runat="server" UpdateMode="Always" ChildrenAsTriggers="true">
                    <ContentTemplate>--%>
                <div class="row">
                    <div class="col-xs-12 row-label">
                        <div id="Div_Msg" runat="server" class="vps-error">
                            <asp:Label ID="LBL_Message" runat="server" class="display-inline"></asp:Label>
                            <%--<a href="#" class="vps-error-anchor" onclick="$('#Div_Msg').hide();"><%=Resources.Content.GN000150%></a>--%>
                        </div>
                    </div>
                </div>
                <div class="row" id="pnlResources" runat="server" visible="True">
                    <div class="col-xs-12">
                        <div class="card">
                            <div class="header">
                                <h3>
                                    <asp:Literal ID="Literal3" runat="server" EnableViewState="false" Text='<%$ Resources:Content, HVServer24 %>' /></h3>
                            </div>
                            <div class="body">
                                <div class="row">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        <asp:Literal ID="Literal6" runat="server" EnableViewState="false" Text='<%$ Resources:Content, HVServer09 %>' />:
                                    </div>
                                    <div class="col-sm-10 col-xs-12">
                                        <asp:Label ID="Lbl_MaxVPS" runat="server" Text=""></asp:Label>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        <asp:Literal ID="Literal4" runat="server" EnableViewState="false" Text='<%$ Resources:Content, HVServer10 %>' />:
                                    </div>
                                    <div class="col-sm-10 col-xs-12">
                                        <asp:Label ID="Lbl_CPUCores" runat="server" Text=""></asp:Label>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        <asp:Literal ID="Literal12" runat="server" EnableViewState="false" Text='<%$ Resources:Content, HVServer11 %>' />:
                                    </div>
                                    <div class="col-sm-10 col-xs-12">
                                        <asp:Label ID="Lbl_RAMPerVPS" runat="server" Text=""></asp:Label>
                                    </div>
                                </div>
                                <div class="row" style="display: none">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        <asp:Literal ID="liTotalDisks" runat="server" EnableViewState="false" Text='<%$ Resources:Content, HVServer109 %>' />:
                                    </div>
                                    <div class="col-sm-10 col-xs-12">
                                        <asp:Label ID="Lbl_TotalDisks" runat="server" Text=""></asp:Label>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        <asp:Literal ID="Literal18" runat="server" EnableViewState="false" Text='<%$ Resources:Content, HVServer12 %>' />:
                                    </div>
                                    <div class="col-sm-10 col-xs-12">
                                        <asp:Label ID="Lbl_DiskSpacePerVPS" runat="server" Text=""></asp:Label>
                                    </div>
                                </div>
                                <div class="row" id="Tr_SnapShot" runat="server">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        <asp:Literal ID="Literal19" runat="server" EnableViewState="false" Text='<%$ Resources:Content, HVServer13 %>' />:
                                    </div>
                                    <div class="col-sm-10 col-xs-12">
                                        <asp:Label ID="Lbl_MaxSnapshots" runat="server" Text=""></asp:Label>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        <asp:Literal ID="Literal20" runat="server" EnableViewState="false" Text='<%$ Resources:Content, HVServer14 %>' />:
                                    </div>
                                    <div class="col-sm-10 col-xs-12">
                                        <asp:Label ID="Lbl_MaximumExternalIPAddressPerVPS" runat="server" Text=""></asp:Label>
                                    </div>
                                </div>
                                <div class="row" id="DivPrivateIPs" runat="server">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        <asp:Literal ID="Literal21" runat="server" EnableViewState="false" Text='<%$ Resources:Content, HVServer15 %>' />:
                                    </div>
                                    <div class="col-sm-10 col-xs-12">
                                        <asp:Label ID="Lbl_MaximumInternalIPAddress" runat="server" Text=""></asp:Label>
                                    </div>
                                </div>
                                <div class="row" id="DivSDNEnabled" runat="server" visible="false">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        <asp:Literal ID="Literal27" runat="server" EnableViewState="false" Text='<%$ Resources:Content, SDNEnabled %>' />:
                                    </div>
                                    <div class="col-sm-10 col-xs-12">
                                        <asp:Label ID="lbl_SDNEnabled" runat="server" Text='<%$ Resources:Content, strYes %>'></asp:Label>
                                    </div>
                                </div>
                                <div class="row" id="DivNatedIPs" runat="server">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        <asp:Literal ID="Literal28" runat="server" EnableViewState="false" Text='<%$ Resources:Content, strNoNatedPublicAddresses %>' />:
                                    </div>
                                    <div class="col-sm-10 col-xs-12">
                                        <asp:Label ID="Lbl_NatedIps" runat="server" Text=""></asp:Label>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row" id="pnlServerGroup" runat="server">
                    <div class="col-xs-12">
                        <div class="card">
                            <div class="body">
                                <div class="row" id="trddlservergroup" runat="server">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        <label>
                                            <asp:Literal ID="Literal5" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN0000102 %>' />:</label>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <asp:DropDownList ID="DDL_ServerGroup" runat="server" AutoPostBack="true">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:Button ID="Btn_SelectGroup" class="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content, DGN1110446 %>' />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row" id="pnlIPSetup" runat="server" visible="false">
                    <div class="col-xs-12">
                        <div class="card" id="tblDNS" runat="server">
                            <div class="header">
                                <h3>
                                    <asp:Literal ID="Literal15" runat="server" Text='<%$ Resources: Content, VPS993 %>'></asp:Literal>
                                </h3>
                            </div>
                            <div class="body">
                                <div class="row">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        <label>
                                            <asp:Literal ID="Literal16" runat="server" Text='<%$ Resources: Content, VPS993 %>'></asp:Literal>:</label>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <asp:ListBox ID="LBx_DNS" runat="server" CssClass="ms" SelectionMode="Multiple" Rows="5" AppendDataBoundItems="true"></asp:ListBox>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <br />
                        <div class="card" id="Tbl_PublicIP" runat="server">
                            <div class="header">
                                <h3>
                                    <asp:Literal ID="Literal10" runat="server" Text=''></asp:Literal>
                                </h3>
                            </div>
                            <div class="body">
                                <div class="row">
                                    <div class="col-xs-12 row-label">
                                        <asp:Literal ID="ltrNoOfPublicIPs" runat="server" Text='<%$ Resources: Content, strNoOfSelectedPublicIPsCheckMessage %>'></asp:Literal>
                                    </div>
                                </div>
                                <div class="row" id="Tr_PublicIP" visible="false" runat="server">
                                    <div class="col-xs-12">
                                        <asp:GridView ID="GV_PublicIPs" runat="server" CssClass="table table-bordered table-striped table-hover" AutoGenerateColumns="false"
                                            AllowPaging="false">

                                            <Columns>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content,GN000189%>' HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                    <ItemTemplate>

                                                        <asp:Literal ID="LB_Subnet" runat="server"></asp:Literal>
                                                    </ItemTemplate>
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000854%>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                    <ItemTemplate>

                                                        <asp:Literal ID="LB_Gateway" runat="server"></asp:Literal>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content,HVServer32%>' HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                    <ItemTemplate>

                                                        <asp:Literal ID="LB_VLan" runat="server"></asp:Literal>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content,GN0001275%>' HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                    <ItemTemplate>

                                                        <asp:Literal ID="LB_IPs" runat="server"></asp:Literal>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000275%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="LB_Delete" Text='<%$ Resources:Content,GN0000377%>' class="btn btn-primary waves-effect btnAction"
                                                            CommandName="DeleteRow" runat="server" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        <label>
                                            <asp:Literal ID="Literal7" runat="server" Text='<%$ Resources: Content, GN0000890 %>'></asp:Literal>:</label>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <asp:DropDownList ID="DDL_PublicSubnetGateway" AutoPostBack="true" runat="server">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="col-sm-6 col-xs-12">
                                        <asp:Label ID="Lbl_NoPublicIP" Visible="false" Text="" runat="server" class="vps-error"></asp:Label>
                                    </div>
                                </div>
                                <div class="row" id="Tr_PublicSubNetGateway" runat="server" visible="false">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        <label>
                                            <asp:Literal ID="Literal1" runat="server" Text='<%$ Resources: Content, DGN1110260 %>'></asp:Literal>:</label>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <asp:ListBox ID="LBX_PublicIP" runat="server" SelectionMode="Multiple" Rows="10" CssClass="ms"></asp:ListBox>
                                        </div>
                                    </div>
                                    <div class="col-sm-6 col-xs-12">
                                        <asp:Label ID="Label1" Visible="false" Text="" runat="server" class="vps-error"></asp:Label>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:Button ID="Btn_PublicIPAdd" runat="server" Text="<%$ Resources: Content, SPT002369 %>" class="btn btn-primary waves-effect" CausesValidation="false" />
                                    </div>
                                </div>
                            </div>
                        </div>
                        <br />
                        <div class="card" id="Tbl_PrivateIP" runat="server">
                            <div class="header">
                                <h3>
                                    <asp:Literal ID="Literal11" runat="server" Text=''></asp:Literal>
                                </h3>
                            </div>
                            <div class="body" id="Div_PrivateIPPools" runat="server">
                                <div class="row">
                                    <div class="col-xs-12 row-label">
                                        <asp:Literal ID="ltrNoOfPrivateIPs" runat="server" Text='<%$ Resources: Content, strNoOfSelectedPrivateIPsCheckMessage %>'></asp:Literal>
                                    </div>
                                </div>
                                <div class="row" id="Tr_PrivateIP" visible="false" runat="server">
                                    <div class="col-xs-12">
                                        <asp:GridView ID="GV_PrivateIPs" runat="server" CssClass="table table-bordered table-striped table-hover"
                                            AutoGenerateColumns="false" AllowPaging="false">

                                            <Columns>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content,GN000189%>' HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                    <ItemTemplate>
                                                        <asp:Literal ID="LB_Subnet" runat="server"></asp:Literal>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000854%>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                    <ItemTemplate>
                                                        <asp:Literal ID="LB_Gateway" runat="server"></asp:Literal>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content,HVServer32%>' HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                    <ItemTemplate>
                                                        <asp:Literal ID="LB_VLan" runat="server"></asp:Literal>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content,GN0001275%>' HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                    <ItemTemplate>
                                                        <asp:Literal ID="LB_IPs" runat="server"></asp:Literal>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000275%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="LB_Delete" Text='<%$ Resources:Content,GN0000377%>' class="btn btn-primary waves-effect btnAction"
                                                            CommandName="DeleteRow" runat="server" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>

                                        </asp:GridView>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        <label>
                                            <asp:Literal ID="Literal13" runat="server" Text='<%$ Resources: Content, GN0000890 %>'></asp:Literal>:</label>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <asp:DropDownList ID="DDL_PrivateSubnetGateway" AutoPostBack="true" runat="server">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="col-sm-6 col-xs-12">
                                        <asp:Label ID="Lbl_NoPrivateIP" Visible="false" Text="" runat="server" class="vps-error"></asp:Label>
                                    </div>
                                </div>
                                <div class="row" id="Tr_PrivateSubNetGateway" runat="server" visible="false">
                                    <div class=" col-sm-2 col-xs-12 row-label">
                                        <label>
                                            <asp:Literal ID="Literal14" runat="server" Text='<%$ Resources: Content, DGN1110260 %>'></asp:Literal>:</label>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <asp:ListBox ID="LBX_PrivateIP" runat="server" CssClass="ms" SelectionMode="Multiple" Rows="10"></asp:ListBox>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:Button ID="Btn_PrivateIPAdd" runat="server" Text="<%$ Resources: Content, SPT002369 %>"
                                            class="btn btn-primary waves-effect" />
                                    </div>
                                </div>
                            </div>
                            <div class="body" id="Div_HVNPrivateIP" runat="server">
                                <div class="row">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        *<asp:Literal ID="Literal2" runat="server" Text='<%$ Resources:Content,strAddressHostOrNetwork %>' EnableViewState="false"></asp:Literal>: 
                                    </div>
                                    <div class="col-sm-3 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_IP" runat="server"></asp:TextBox>
                                            </div>
                                        </div>
                                        <%--<asp:Label ID="lblIPSubNet" runat="server" Text="X.X.X.0"></asp:Label>--%>
                                        <asp:RequiredFieldValidator ID="RFVIP" runat="server" ControlToValidate="TxBx_IP"
                                            Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="TxBx_IP"
                                            Display="None" SetFocusOnError="true" ErrorMessage="<%$ Resources:Content,String176 %>"
                                            ValidationExpression="<%$ Resources:Content,ValidateIP%>" />
                                    </div>
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        *<asp:Literal ID="Literal8" runat="server" Text='<%$ Resources:Content,strPrefixLength %>' EnableViewState="false"></asp:Literal>: 
                                    </div>
                                    <div class="col-sm-3 col-xs-12">
                                        <asp:DropDownList ID="ddl_PrefixLength" runat="server"></asp:DropDownList>
                                    </div>
                                    <div class="col-sm-2 col-xs-12">
                                        <asp:Button ID="btnCalculate" runat="server" class="btn btn-primary waves-effect" Text="Calculate" CausesValidation="false" />
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        *<asp:Literal ID="Literal17" runat="server" Text='<%$ Resources:Content,strSubnetNetworkAddress %>' EnableViewState="false"></asp:Literal>: 
                                    </div>
                                    <div class="col-sm-3 col-xs-12">
                                        <asp:Label ID="lbl_Network" runat="server"></asp:Label>
                                    </div>
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        <asp:Literal ID="Literal22" runat="server" Text='<%$ Resources:Content,strHostRange %>' EnableViewState="false"></asp:Literal>: 
                                    </div>
                                    <div class="col-sm-3 col-xs-12">
                                        <asp:Label ID="lbl_HostRange" runat="server"></asp:Label>
                                    </div>

                                </div>

                                <div class="row">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        *<asp:Literal ID="Literal23" runat="server" Text='<%$ Resources:Content,strNetMask %>' EnableViewState="false"></asp:Literal>: 
                                    </div>
                                    <div class="col-sm-3 col-xs-12">
                                        <asp:Label ID="lbl_Netmast" runat="server"></asp:Label>
                                    </div>
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        <asp:Literal ID="Literal24" runat="server" Text='<%$ Resources:Content,strNumberOfHost %>' EnableViewState="false"></asp:Literal>: 
                                    </div>
                                    <div class="col-sm-3 col-xs-12">
                                        <asp:Label ID="lbl_NumberofHost" runat="server"></asp:Label>
                                    </div>

                                </div>

                                <div class="row">

                                    <div class="col-sm-2 col-xs-12 row-label">
                                        *<asp:Literal ID="Literal25" runat="server" Text='<%$ Resources:Content,strStartIP %>' EnableViewState="false"></asp:Literal>: 
                                    </div>
                                    <div class="col-sm-3 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_StartIP" runat="server"></asp:TextBox>
                                            </div>
                                        </div>
                                        <asp:RequiredFieldValidator ID="RFVStartIP" runat="server" ControlToValidate="TxBx_StartIP"
                                            Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="REVStartIP" runat="server" ControlToValidate="TxBx_StartIP"
                                            Display="None" SetFocusOnError="true" ErrorMessage="<%$ Resources:Content,String176 %>"
                                            ValidationExpression="<%$ Resources:Content,ValidateIP%>" />
                                    </div>
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        *<asp:Literal ID="Literal26" runat="server" Text='<%$ Resources:Content,strEndIP %>' EnableViewState="false"></asp:Literal>: 
                                    </div>
                                    <div class="col-sm-3 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_EndIP" runat="server"></asp:TextBox>
                                            </div>
                                        </div>
                                        <asp:RequiredFieldValidator ID="RFVEndIP" runat="server" ControlToValidate="TxBx_EndIP"
                                            Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="REVEndIP" runat="server" ControlToValidate="TxBx_EndIP"
                                            Display="None" SetFocusOnError="true" ErrorMessage="<%$ Resources:Content,String176 %>"
                                            ValidationExpression="<%$ Resources:Content,ValidateIP%>" />
                                    </div>

                                </div>


                                <div class="row">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        *<asp:Literal ID="Literal9" runat="server" Text='<%$ Resources:Content,GN0000854 %>' EnableViewState="false"></asp:Literal>: 
                                    </div>
                                    <div class="col-sm-3 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_Gateway" runat="server"></asp:TextBox>
                                            </div>
                                        </div>
                                        <asp:RequiredFieldValidator ID="RFVGateway" runat="server" SetFocusOnError="true"
                                            Display="None" ControlToValidate="TxBx_Gateway" ValidationGroup="addip"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TxBx_Gateway"
                                            Display="None" SetFocusOnError="true" ValidationGroup="addip" ValidationExpression="<%$ Resources:Content,ValidateIP%>"
                                            ErrorMessage="<%$ Resources:Content,VPS257 %>"></asp:RegularExpressionValidator>
                                    </div>
                                </div>

                            </div>
                            <div class="row" id="Div_HVNPrivateIPForAddon" runat="server" visible="false">
                                <div class="col-xs-12">
                                    <asp:Label ID="lblHVNPrivateIPForAddonMsg" runat="server" Text='<%$ Resources:Content,strHVNPrivateIPForAddonMsg %>' EnableViewState="false"></asp:Label>
                                </div>
                            </div>
                        </div>
                        <br />
                        <div class="row">
                            <div class="col-xs-12">
                                <span id="processing" style="display: none;">Loading...</span>
                                <asp:Button ID="Btn_Back" CausesValidation="false" runat="server" class="btn btn-primary waves-effect" Text='<%$ Resources:Content,String1018 %>' />
                                <asp:Button ID="Btn_ProvisionVPS" runat="server" class="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content,String265 %>' CausesValidation="false" />
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <asp:Button ID="Btn_Close" runat="server" Text='<%$ Resources:Content,GN000150%>' class="btn btn-primary waves-effect" CausesValidation="false" />
                    </div>
                </div>
                <%--</ContentTemplate>
                </asp:UpdatePanel>--%>
            </div>
        </div>
    </div>

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

        Sys.UI.Point = function Sys$UI$Point(x, y) {
            x = Math.round(x);
            y = Math.round(y);

            var e = Function._validateParams(arguments, [
                { name: "x", type: Number, integer: true },
                { name: "y", type: Number, integer: true }
            ]);
            if (e) throw e;
            this.x = x;
            this.y = y;
        }

        Sys.WebForms.PageRequestManager.prototype['_onFormElementActive'] = function Sys$WebForms$PageRequestManager$_onFormElementActive(element, offsetX, offsetY) {
            if (element.disabled) {
                return;
            }
            this._postBackSettings = this._getPostBackSettings(element, element.name);
            if (element.name) {
                var tagName = element.tagName.toUpperCase();
                if (tagName === 'INPUT') {
                    var type = element.type;
                    if (type === 'submit') {
                        this._additionalInput = encodeURIComponent(element.name) + '=' + encodeURIComponent(element.value);
                    }
                    else if (type === 'image') {
                        offsetX = Math.round(offsetX);
                        offsetY = Math.round(offsetY);
                        this._additionalInput = encodeURIComponent(element.name) + '.x=' + offsetX + '&' + encodeURIComponent(element.name) + '.y=' + offsetY;
                    }
                }
                else if ((tagName === 'BUTTON') && (element.name.length !== 0) && (element.type === 'submit')) {
                    this._additionalInput = encodeURIComponent(element.name) + '=' + encodeURIComponent(element.value);
                }
            }
        }

        $(document).ready(function () {

            hideProgressBar();

            document.forms[0].onsubmit = function () {
                HandleInputHtmlTags();
                if ((typeof Page_IsValid == 'undefined') ||      // asp page has no validator
                    (Page_IsValid != null && Page_IsValid)) {
                    showProgressBar();
                }

            }

            jQuery("input[type=text], textarea").keyup(function (event) {
                //skip freetextbox htmleditor control
                var str = $(this)[0].className;
                if (!(str.match(/_HtmlBox/g) || str.match(/allowhtml/g))) {
                    txtValue = $(this).val();
                    txtValue = txtValue.replace(/[\<\>]+/g, '');
                    if (txtValue != $(this).val()) {
                        $(this).val(txtValue);
                    }
                }

            });

            Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(beginRequestHandler);
            Sys.WebForms.PageRequestManager.getInstance().add_endRequest(endRequestHandler);

        });

        function beginRequestHandler(sender, args) {
            HandleInputHtmlTags();
            showProgressBar();
        }

        function endRequestHandler(sender, args) {

            setRtlAlignment($("html").attr("dir"));
            if (args.get_error() == undefined) {
                hideProgressBar();

                // Your normal code goes here
                jQuery("input[type=text], textarea").keyup(function (event) {
                    //skip freetextbox htmleditor control
                    var str = $(this)[0].className;
                    if (!(str.match(/_HtmlBox/g) || str.match(/allowhtml/g))) {
                        txtValue = $(this).val();
                        txtValue = txtValue.replace(/[\<\>]+/g, '');
                        if (txtValue != $(this).val()) {
                            $(this).val(txtValue);
                        }
                    }

                });
            }
            else {
                alert(args.get_error()); // Do something
                args.set_errorHandled(true);
                hideProgressBar();
            }
        }

        var oldPostBack;
        var myForm = document.forms['aspnetForm'];
        if (!myForm) {
            myForm = document.aspnetForm;
        }
        if (!myForm) {
            myForm = document.forms[0];
        }


        oldPostBack = __doPostBack;
        __doPostBack = customPostBackHandler;

        function customPostBackHandler(eventTarget, eventArgument) {
            showProgressBar();
            if (myForm && (!myForm.onsubmit || (myForm.onsubmit() != false))) {
                HandleInputHtmlTags();
                return oldPostBack(eventTarget, eventArgument);
            }
            else
                return oldPostBack(eventTarget, eventArgument);
        }

        function hideProgressBar() {  //hide onload
            //var dialog = document.getElementById("WaitDialog");
            //dialog.style.display = 'none';
            $('.page-loader-wrapper').show();
        }

        function showProgressBar() { //show on submit
            //if (LocalPostBackLoader == false) {
            //var dialog = document.getElementById("WaitDialog");
            //dialog.style.display = 'block';
            //}
            //else
            //    LocalPostBackLoader = false;
            $('.page-loader-wrapper').hide();
        }

        function setCookie(cName, value, exdays) {
            var exdate = new Date();
            exdate.setDate(exdate.getDate() + exdays);
            var c_value = escape(value) + ((exdays == null) ? "" : "; expires=" + exdate.toUTCString());
            document.cookie = cName + "=" + c_value + ';path=/';
        }

        function getCookie(cName) {
            var i, x, y, ARRcookies = document.cookie.split(";");
            for (i = 0; i < ARRcookies.length; i++) {
                x = ARRcookies[i].substr(0, ARRcookies[i].indexOf("="));
                y = ARRcookies[i].substr(ARRcookies[i].indexOf("=") + 1);
                x = x.replace(/^\s+|\s+$/g, "");
                if (x == cName) {
                    return unescape(y);
                }
            }
        }

        function isEmpty(str) {
            return (!str || 0 === str.length);
        }

        function HandleInputHtmlTags() {
            try {
                jQuery('.allowhtml, .ctl00_CPH_Content_TC_ExchangeAccounts_Pnl_Disclaimer_Disclaimer1_FTB_AppendedDisclaimer_HtmlBox').each(function () {
                    var currentElement = $(this);
                    var value = currentElement.val();
                    value = value.replace(new RegExp("<", "g"), "&lt;");
                    value = value.replace(new RegExp(">", "g"), "&gt;");
                    currentElement.val(value);
                });
            }
            catch (err) { }
        }


    </script>
</asp:Content>

