home *** CD-ROM | disk | FTP | other *** search
/ Online Praxis 1998 March / Image.iso / CD-ROM / NETSCAPE / CCK / INSTBLDR.Z / asw.jar / needs2.js < prev    next >
Encoding:
Text File  |  1998-02-27  |  1.3 KB  |  56 lines

  1. <!--  to hide script contents from old browsers
  2.  
  3.  
  4.  
  5. function go(msg)
  6. {
  7.     if (parent.parent.globals.document.vars.editMode.value == "yes")
  8.         return true;
  9.     else
  10.         return(checkData());
  11. }
  12.  
  13.  
  14.  
  15. function checkData()
  16. {
  17.     return(true);
  18. }
  19.  
  20.  
  21.  
  22. function loadData()
  23. {
  24.     if (parent.controls.generateControls)    parent.controls.generateControls();
  25. }
  26.  
  27.  
  28.  
  29. function saveData()
  30. {
  31. }
  32.  
  33.  
  34.  
  35. function displaySupportNumber()
  36. {
  37.     netscape.security.PrivilegeManager.enablePrivilege("AccountSetup");
  38.  
  39.     if (parent.parent.globals.document.vars.providername.value != "" && parent.parent.globals.document.vars.providerFilename.value != "")    {
  40.         var pathName = parent.parent.globals.getConfigFolder(self);
  41.         providerFilename = parent.parent.globals.document.vars.providerFilename.value;
  42.         if (providerFilename != "")    {
  43.             var ispName=parent.parent.globals.document.setupPlugin.GetNameValuePair(providerFilename,"Dial-In Configuration","SiteName");
  44.             var supportNumber = parent.parent.globals.GetNameValuePair(providerFilename,"Dial-In Configuration","SupportPhone");
  45.             if (supportNumber != null && supportNumber != "")    {
  46.                 document.writeln("<P ID='buttontext'><B>" + ispName + " Technical Support: " + supportNumber + "</B></P>");
  47.                 }
  48.             }
  49.         }
  50. }
  51.  
  52.  
  53.  
  54. // end hiding contents from old browsers  -->
  55.  
  56.