home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 January / 01_03.iso / software / snpf / NPF / NPF.MSI / IntroWiz.exe / 1033 / HTML / WIZARD_HELP.JS < prev   
Encoding:
JavaScript  |  2002-09-21  |  1.8 KB  |  74 lines

  1. ///////////////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // PRODUCT: Norton Internet Security/Symantec Desktop Firewall
  4. //
  5. // NAME:    wizard_help.js (Javascript with a bunch of common routines for Wizards)
  6. //
  7. // Copyright (c) 2002 by Symantec Corporation. All rights reserved.
  8. //
  9. ////////////////////////////////////////////////////////////////////////////////////////////
  10.  
  11. // Hot Key to interpret hotkeys from any one of the window panes
  12. function DoHotKeys()
  13. {
  14.     // Last Control Tab over to the <back, next, close> button.
  15.     var VK_ESCAPE = 27;
  16.     var VK_BACK_SPACE = 8;
  17.     
  18.     var VK_B = 66;
  19.     var VK_C = 67;
  20.     var VK_F = 70;
  21.     var VK_N = 78;    
  22.     
  23.     var MiddleContents = window.parent.frames("main",0);
  24.     
  25.     // Trap the "close" key
  26.     if ((window.event.keyCode == VK_ESCAPE) || (window.event.keyCode == VK_C && (window.event.altKey)) || (window.event.keyCode == VK_F && (window.event.altKey) && ("Finished" == MiddleContents.document.title)))
  27.     {
  28.         // Escape key.. We want to exit out of the wizard..
  29.         CloseWizard();
  30.     }
  31.  
  32.     var BottomButtons = window.parent.frames("bottom",0);
  33.  
  34.     // Trap the "back" key
  35.     if (window.event.keyCode == VK_B && (window.event.altKey))    
  36.     {    
  37.         BottomButtons.BackB_OnClick();
  38.     }
  39.     
  40.     // Trap the "next" key    
  41.     if (window.event.keyCode == VK_N && (window.event.altKey))    
  42.     {    
  43.         BottomButtons.NextB_OnClick();
  44.     }
  45.  
  46.     // Trap the "backspace" key    
  47.     if (window.event.keyCode == VK_BACK_SPACE)    
  48.     {    
  49.         window.event.returnValue = false;
  50.     }
  51. }
  52.  
  53.  
  54. function CloseWizard()
  55. {
  56.     parent.window.navigate("res://closeme.xyz");
  57. }
  58.  
  59.  
  60. function CallSetWizardButtons()
  61. {
  62.     var BottomButtons = window.parent.frames("bottom",0);
  63.  
  64.     BottomButtons.SetWizardButtons();
  65. }
  66.  
  67.  
  68. function onKeyUp(cell)
  69. {
  70.     if(cell && event.keyCode == 13 || event.keyCode == 32)
  71.     {
  72.         cell.click();
  73.     }
  74. }