home *** CD-ROM | disk | FTP | other *** search
/ Your Business Pak / BusinessPak2.iso / Netscape / CD / as.z / asw.jar / needs2.js < prev    next >
Text File  |  1998-10-15  |  2KB  |  73 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.  
  21.  
  22. function go(msg)
  23. {
  24.     if (parent.parent.globals.document.vars.editMode.value == "yes")
  25.         return true;
  26.     else
  27.         return(checkData());
  28. }
  29.  
  30.  
  31.  
  32. function checkData()
  33. {
  34.     return(true);
  35. }
  36.  
  37.  
  38.  
  39. function loadData()
  40. {
  41.     if (parent.controls.generateControls)   parent.controls.generateControls();
  42. }
  43.  
  44.  
  45.  
  46. function saveData()
  47. {
  48. }
  49.  
  50.  
  51.  
  52. function displaySupportNumber()
  53. {
  54.     netscape.security.PrivilegeManager.enablePrivilege("AccountSetup");
  55.  
  56.     if (parent.parent.globals.document.vars.providername.value != "" && parent.parent.globals.document.vars.providerFilename.value != "")   {
  57.         var pathName = parent.parent.globals.getConfigFolder(self);
  58.         providerFilename = parent.parent.globals.document.vars.providerFilename.value;
  59.         if (providerFilename != "") {
  60.             var ispName=parent.parent.globals.document.setupPlugin.GetNameValuePair(providerFilename,"Dial-In Configuration","SiteName");
  61.             var supportNumber = parent.parent.globals.GetNameValuePair(providerFilename,"Dial-In Configuration","SupportPhone");
  62.             if (supportNumber != null && supportNumber != "")   {
  63.                 document.writeln("<P ID='buttontext'><B>" + ispName + " Technical Support: " + supportNumber + "</B></P>");
  64.                 }
  65.             }
  66.         }
  67. }
  68.  
  69.  
  70.  
  71. // end hiding contents from old browsers  -->
  72.  
  73.