<%@ Control Language="VB" AutoEventWireup="false" CodeFile="HighSpeedSecurity.ascx.vb"
    Inherits="Controls_HighSpeedSecurity" %>
<%@ Register Src="CustomContent.ascx" TagName="CustomContent" TagPrefix="uc" %>
<asp:Panel ID="pnlCanShowSecurityKeys" runat="server" Visible="false">
    <!-- begin content area -->
    <!-- ################################# -->

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

                                var isClicked=false;

                                function ValidateSubmit()
                                {
                                   var f=document.frmsecurity;
                                   if(!isClicked)
                                   {
                                      isClicked=true;
                                      document.cookie='ACTION=UPDATE';
                                      f.submit();
                                   }
                                   else
                                   {
                                      alert('Key activation in progress. Please wait.');
                                      return;
                                   }
                                }

                                function goDownload()
                                {
                                   var f=document.frmdownload;
                                   var url=f.URI.value + "?FORM_NAME=" + f.FORM_NAME.value;
                                   window.open(url,"","status=no,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes");
                                }

                                var serverid='3528733';
                                var thisKey='';
                                function opendownload(key)
                                {
                                  thisKey = key;
                                  var dnDiv=document.all.dlink;
                                  if(typeof dnDiv=='object')
                                  {
                                    dnDiv.style.visibility='visible';
                                  }
                                  var dnTitle=document.all.dTitle;
                                  if(typeof dnTitle=='object')
                                  {
                                    dnTitle.innerHTML=key;
                                  }
                                }

                                function closedownload()
                                {
                                  var dnDiv=document.all.dlink;
                                  if(typeof dnDiv=='object')
                                  {
                                    dnDiv.style.visibility='hidden';
                                  }
                                  var dnTitle=document.all.dTitle;
                                  if(typeof dnTitle=='object')
                                  {
                                    dnTitle.innerHTML='';
                                  }
                                }  
                                function writecookie()
                                {
                                  var hours=72;
                                  var expires=(new Date((new Date()).getTime()+ hours*3600000)).toGMTString();
                                  var namevalue = "FSCPEXKeycode="+serverid + ',' + thisKey;
                                  document.cookie= namevalue+"; expires="+expires+"; path=/;secure;";
                                  window.status='Cookie installed';
                                  closedownload();
                                }
    </script>

    <!-- RECENT ACTIVITY -->
    <uc:CustomContent ID="CustomContent1" ContentKey="myaccount:securitySuite:IntroText"
        runat="server" />
    <table>
        <tr valign="top">
            <td colspan="2" style="padding: 5px">
                <a href="http://www.charter.com/GETBINARY.xbin?ID=1224" target="_blank">Detailed Installation
                    Instructions</a></td>
            <td rowspan="4" style="padding: 5px">
                <asp:Panel ID="pnlLicenseKeys" runat="server" Visible="false" Wrap="False">
                    Your active license keys:<br />
                    <asp:TextBox runat="server" ID="txtprovID" Visible="false"></asp:TextBox>
                    <asp:Label ID="lblKey1" runat="server"></asp:Label>
                    <br />
                    Each additional license key will be sent to:
                    <br />
                    <a href="mailto:xxx@here.com"></a>
                    <asp:Label ID="lblPreferredEmail" runat="server"></asp:Label>
                    <br />
                    <asp:Label ID="lblKeyMessage" runat="server" ForeColor="red"></asp:Label>
                    <br />
                    <font color="red">
                        <uc:CustomContent ID="CustomContent2" ContentKey="Myaccount:CharterSecuritySuite:Step3Text"
                            runat="server" />
                    </font>
                </asp:Panel>
            </td>
        </tr>
        <asp:Panel ID="pnlActivateKey" runat="server" Visible="true">
            <tr>
                <td style="padding: 5px" nowrap>
                    <font style="color: #FF6600; font-weight: bold;">Step&nbsp;1.</font></td>
                <td style="padding: 5px" nowrap>
                    <a href="../Account/NewKeyActivated.aspx?index=<%= strIndex %>">Activate</a> software
                    license key.</td>
            </tr>
        </asp:Panel>
        <tr>
            <td style="padding: 5px">
                <font style="color: #FF6600; font-weight: bold;">Step&nbsp;2.</font>
            </td>
                <!-- issue 21702 upgrade security suite-->
            <td style="padding: 5px">
                <a href="http://download.sp.f-secure.com/SE/Charter/latest/installer/CharterNetworkInstaller.exe">
                    Download</a> anti-virus/firewall software package.
           </td>
        </tr>
        <tr>
            <td style="padding: 5px">
                <font style="color: #FF6600; font-weight: bold;">Step&nbsp;3.</font></td>
            <td style="padding: 5px">
                Install package. Repeat for any PC you wish to protect.</td>
        </tr>
    </table>
    <!-- END RECENT ACTIVITY -->
</asp:Panel>
<asp:Panel ID="pnlMSPackageDropDown" runat="server" Visible="true">
    <p>
        <b>Use the dropdown to select a package to manage.</b><br />
        <br />
        <asp:DropDownList ID="ddlMSPackage" runat="server" Width="208px" AutoPostBack="true">
        </asp:DropDownList>
        <br />
        <br />
        <br />
    </p>
</asp:Panel>
<asp:Panel ID="pnlCannotShowSecurityKeys" runat="server" Visible="false">
    <p>
        <b>High-Speed Security Suite is not provisioned on this package.</b>
        <br />
        <br />
        Try Charter's anti-virus and firewall solution for 30 days, absolutely risk free!
        It is important to close all other programs and uninstall any previously loaded
        security software (Anti-Virus and Firewall) before you load our software.
        <br />
        <br />
        <a href="javascript:var popup=window.open('../Visitors/DownloadPopUp.aspx','DownloadPopUp','menu=no,toolbar=no,width=500,height=310')">
            Download</a> anti-virus/firewall software package
    </p>
</asp:Panel>
<div style="width: 500; position: absolute; top: 410px; visibility: hidden" id="dlink">
    <table bgcolor="gray" border="1">
        <tr>
            <td>
                <table bgcolor="white">
                    <tr>
                        <td width="90%" align="center">
                            <b>
                                <p id="dTitle">
                                </p>
                            </b>
                        </td>
                        <td align="right">
                            <a title="Close" href="javascript:closedownload();">Close</a></td>
                    </tr>
                    <tr>
                        <td colspan="2" valign="top">
                            <p>
                                <br />
                                Clicking on the link below will install a cookie with the above Key on your hard
                                drive. The Security Software you have downloaded will be able to read and use this
                                key automatically.<br />
                                <br />
                                <a href="javascript:writecookie();">Click to install cookie</a>
                                <br />
                            </p>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</div>
<!-- ################################# -->
<!-- end content area -->
<!-- end PanelSubpanelBlue template -->