home *** CD-ROM | disk | FTP | other *** search
/ Your Business Pak / BusinessPak2.iso / Netscape / CD / as.z / asw.jar / cmprehd.js < prev    next >
Text File  |  1998-10-15  |  1KB  |  39 lines

  1. /* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18. <!--  to hide script contents from old browsers
  19.  
  20. var globals = parent.parent.parent.globals;
  21.  
  22. function loadData()
  23. {
  24.     netscape.security.PrivilegeManager.enablePrivilege( "AccountSetup" );
  25.     
  26.     globals.debug( "removing support window" );
  27.     
  28.     if ( globals.supportWindow && globals.supportWindow != null )
  29.     {
  30.         globals.supportWindow.close();
  31.         globals.supportWindow = null;
  32.     }
  33.  
  34.     if ( parent.parent.controls.generateControls )
  35.         parent.parent.controls.generateControls();
  36. }
  37.  
  38. // end hiding contents from old browers -->
  39.