home *** CD-ROM | disk | FTP | other *** search
/ Your Business Pak / BusinessPak2.iso / Netscape / CD / as.z / asw.jar / error2.js < prev    next >
Text File  |  1998-10-15  |  2KB  |  67 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. function go( msg )
  21. {
  22.     if ( parent.parent.globals.document.vars.editMode.value != "yes" )
  23.     {
  24.         return true;
  25.     }
  26.     else
  27.     {
  28.         if ( msg == parent.parent.globals.document.vars.path.value )
  29.             alert( "Sorry, you cannot connect while in using the Account Setup Editor." );
  30.         return false;
  31.     }
  32. }
  33.  
  34. function showErrorLayer()
  35. {
  36.     if ( document.layers[ "IAS Mode" ] && document.layers[ "NCI Mode" ] )
  37.     {
  38.         if ( parent.parent.globals.document.vars.path.value == "Existing Path" )
  39.         {
  40.             document.layers[ "IAS Mode" ].visibility = "hide";
  41.             document.layers[ "NCI Mode" ].visibility = "show";
  42.         }
  43.         else
  44.         {
  45.             document.layers[ "IAS Mode" ].visibility = "show";
  46.             document.layers[ "NCI Mode" ].visibility = "hide";
  47.         }
  48.     }
  49.     else
  50.         setTimeout( "showErrorLayer()", 1000 );
  51. }
  52.  
  53. function loadData()
  54. {
  55.     setTimeout( "showErrorLayer()", 1000 );
  56.     if ( parent.controls.generateControls )
  57.         parent.controls.generateControls();
  58. }
  59.  
  60. function saveData()
  61. {
  62. }
  63.  
  64.  
  65.  
  66. // end hiding contents from old browsers  -->
  67.