home *** CD-ROM | disk | FTP | other *** search
/ Your Business Pak / BusinessPak2.iso / Netscape / CD / as.z / asw.jar / mreinfhd.js < prev    next >
Text File  |  1998-10-15  |  2KB  |  60 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. var plugin = globals.document.setupPlugin;
  22. var controls = parent.parent.controls;
  23.  
  24. function loadData()
  25. {
  26.     netscape.security.PrivilegeManager.enablePrivilege( "AccountSetup" );
  27.  
  28.     //globals.debug( "generating more info page" );
  29.     
  30.     result = plugin.GenerateMoreInfoPage( globals.selectedISP );
  31.  
  32.     if ( result == true )
  33.         parent.moreinfo.location.replace( "ispplans.htm" );
  34.     else
  35.     {
  36.         alert( "Internal error generating listing of ISP plans." );
  37.         return;
  38.     }
  39.     
  40.     //globals.debug( "removing support window" );
  41.  
  42. //    if ( globals.supportWindow && globals.supportWindow != null )
  43. //    {
  44. //        globals.supportWindow.close();
  45. //        globals.supportWindow = null;
  46. //    }
  47.     
  48.     if ( controls.generateControls )
  49.         controls.generateControls();
  50. }
  51.  
  52. function generateHeader()
  53. {
  54. //    globals.debug( "ispDisplayName" + ispDisplayName );
  55.  
  56.     document.writeln( "More Information about " + globals.getSelectedISPName() );
  57. }
  58.  
  59. // end hiding contents from old browers -->
  60.