home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 May / 05_02.iso / software / nis / files / NIS / NIS.MSI / IntroWiz.exe / HTML / IW-ABOUTADBLOCKING.JS < prev    next >
Encoding:
JavaScript  |  2001-12-01  |  1.6 KB  |  73 lines

  1. ////////////////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // PRODUCT: Norton Internet Security/Symantec Desktop Firewall
  4. //
  5. // NAME:    iw-AboutAdBlocking.js (Javascript file for iw-AboutAdBlocking.HTM)
  6. //
  7. // Copyright (c) 2001 by Symantec Corporation. All rights reserved.
  8. //
  9. ////////////////////////////////////////////////////////////////////////////////////////////
  10. function OnTabOver()
  11. {
  12.     // Tab or reverse tab 
  13.     var VK_TAB = 9;
  14.     
  15.     if (window.event.keyCode == VK_TAB && (window.event.shiftKey == false))
  16.         window.parent.frames("bottom",0).focus();
  17.     else if (window.event.keyCode == VK_TAB && (window.event.shiftKey == true))
  18.         window.parent.frames("contents",0).focus();
  19. }    
  20.  
  21. function OnLoad()
  22. {
  23.     var sProductType = WrapNisum.ProductType;
  24.  
  25.     switch (sProductType)
  26.     {
  27.         case "PT_SDF":
  28.         window.NISTitleName.innerText = WrapNisum.ProductName;
  29.         break
  30.         
  31.         case "PT_NPF":
  32.         window.NISTitleName.innerText = WrapNisum.ProductName;
  33.         break
  34.         
  35.         case "PT_NOAD":
  36.         break
  37.         
  38.         case "PT_FE":
  39.         break
  40.         
  41.         case "PT_PE":
  42.         break;
  43.     }    
  44.     
  45.     GoToAdBlockPage.focus();
  46.  
  47. }
  48.  
  49. function GoToAdBlock()
  50. {
  51.  
  52.     event.cancelBubble = true;
  53.     event.returnValue = false;
  54.     
  55.     // New implementation requested to open Integrator to Ad Blocking page
  56.     ConfigInfo.LaunchAdBlock();
  57.     
  58.  
  59. }
  60.  
  61. function OnKeyDownHandler()
  62. {
  63.     // Last Control Tab over to the <back, next, close> button.
  64.     var VK_ESCAPE = 27;
  65.  
  66.     if (window.event.keyCode == VK_ESCAPE)
  67.     {
  68.         // Escape key.. We want to exit out of the wizard..
  69.         parent.window.navigate("res://closeme.xyz");
  70.  
  71.     }
  72.     
  73. }