home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 May / 05_02.iso / software / nis / files / NIS / NIS.MSI / pcwiz.dll / HTML / WIZ-ACCOUNTMODE.JS < prev    next >
Encoding:
JavaScript  |  2001-12-01  |  1.9 KB  |  91 lines

  1. ////////////////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // PRODUCT: Norton Internet Security/Symantec Desktop Firewall
  4. //
  5. // NAME:    wiz-AccountMode.htm.js (Javascript file for wiz-AccountMode.HTM)
  6. //
  7. // Copyright (c) 2001 by Symantec Corporation. All rights reserved.
  8. //
  9. ////////////////////////////////////////////////////////////////////////////////////////////
  10.  
  11. function OnTabOver()
  12. {
  13.     // Last Control Tab over to the <back, next, close> button.
  14.     var VK_TAB = 9;
  15.     if (window.event.keyCode == VK_TAB)
  16.         window.parent.frames("bottom",0).focus();
  17.  
  18. }
  19.  
  20. function Page_GoNext()
  21. {
  22.     if(AccountModeSel[0].checked)
  23.     {
  24.         // Now switch the User Mode behind the scenes
  25.         if(PCWizHelper.bWinUserOK == true)
  26.         {
  27.             parent.window.SetAccountMode(0);
  28.             
  29.             // To Speed things up we only want to "Switch" the mode if it is
  30.             // if it is currently different                        
  31.             if(PCWizHelper.bWindowsAccount == false)            
  32.                 PCWizHelper.SetWindowsAccount(true);
  33.         }
  34.         else
  35.         {
  36.             PCWizHelper.MultiUserWarning();
  37.             return false;
  38.         }
  39.  
  40.     }
  41.     else
  42.     {
  43.         parent.window.SetAccountMode(1);
  44.         
  45.         // To Speed things up we only want to "Switch" the mode if it is
  46.         // if it is currently different        
  47.         if(PCWizHelper.bWindowsAccount == true)                    
  48.             PCWizHelper.SetWindowsAccount(false);        
  49.                 
  50.     }
  51.         
  52.     
  53.     return true;
  54. }
  55.  
  56. function Page_GoBack()
  57. {
  58.     
  59.     
  60.     return true;
  61. }
  62.  
  63.  
  64. function OnLoad()
  65. {
  66.     if (PCWizHelper.bWinUserOK)
  67.     {
  68.         AccountModeSel[0].checked = true;
  69.         AccountModeSel[1].checked = false;        
  70.     }
  71.     else
  72.     {
  73.         AccountModeSel[0].checked = false;        
  74.         AccountModeSel[1].checked = true;
  75.     }
  76.  
  77. }
  78.  
  79. function OnKeyDownHandler()
  80. {
  81.     // Last Control Tab over to the <back, next, close> button.
  82.     var VK_ESCAPE = 27;
  83.  
  84.     if (window.event.keyCode == VK_ESCAPE)
  85.     {
  86.         // Escape key.. We want to exit out of the wizard..
  87.         parent.window.navigate("res://closeme.xyz");
  88.  
  89.     }
  90.     
  91. }