home *** CD-ROM | disk | FTP | other *** search
- ///////////////////////////////////////////////////////////////////////////////////////////
- //
- // PRODUCT: Norton Internet Security/Symantec Desktop Firewall
- //
- // NAME: wizard_help.js (Javascript with a bunch of common routines for Wizards)
- //
- // Copyright (c) 2002 by Symantec Corporation. All rights reserved.
- //
- ////////////////////////////////////////////////////////////////////////////////////////////
-
- // Hot Key to interpret hotkeys from any one of the window panes
- function DoHotKeys()
- {
- // Last Control Tab over to the <back, next, close> button.
- var VK_ESCAPE = 27;
- var VK_BACK_SPACE = 8;
-
- var VK_B = 66;
- var VK_C = 67;
- var VK_F = 70;
- var VK_N = 78;
-
- var MiddleContents = window.parent.frames("main",0);
-
- // Trap the "close" key
- 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)))
- {
- // Escape key.. We want to exit out of the wizard..
- CloseWizard();
- }
-
- var BottomButtons = window.parent.frames("bottom",0);
-
- // Trap the "back" key
- if (window.event.keyCode == VK_B && (window.event.altKey))
- {
- BottomButtons.BackB_OnClick();
- }
-
- // Trap the "next" key
- if (window.event.keyCode == VK_N && (window.event.altKey))
- {
- BottomButtons.NextB_OnClick();
- }
-
- // Trap the "backspace" key
- if (window.event.keyCode == VK_BACK_SPACE)
- {
- window.event.returnValue = false;
- }
- }
-
-
- function CloseWizard()
- {
- parent.window.navigate("res://closeme.xyz");
- }
-
-
- function CallSetWizardButtons()
- {
- var BottomButtons = window.parent.frames("bottom",0);
-
- BottomButtons.SetWizardButtons();
- }
-
-
- function onKeyUp(cell)
- {
- if(cell && event.keyCode == 13 || event.keyCode == 32)
- {
- cell.click();
- }
- }