home *** CD-ROM | disk | FTP | other *** search
/ Online Praxis 1998 March / Image.iso / CD-ROM / NETSCAPE / CCK / INSTBLDR.Z / asw.jar / error.js < prev    next >
Encoding:
Text File  |  1998-02-27  |  1.2 KB  |  66 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.         {
  9.         if (msg == parent.parent.globals.document.vars.path.value)    {
  10.             parent.parent.globals.document.vars.tryAgain.value = "yes";
  11.             return(checkData());
  12.             }
  13.         return(false);
  14.         }
  15.     else    {
  16.         if (msg == parent.parent.globals.document.vars.path.value)
  17.             alert("Sorry, you cannot connect while in using the Account Setup Editor.");
  18.         return(false);
  19.         }
  20.  
  21. }
  22.  
  23.  
  24.  
  25. function checkData()
  26. {
  27.     return(true);
  28. }
  29.  
  30.  
  31.  
  32. function showErrorLayer()
  33. {
  34.     if (document.layers["IAS Mode"] && document.layers["NCI Mode"])    {
  35.         if (parent.parent.globals.document.vars.path.value == "Existing Path")    {
  36.             document.layers["IAS Mode"].visibility = "hide";
  37.             document.layers["NCI Mode"].visibility = "show";
  38.             }
  39.         else    {
  40.             document.layers["IAS Mode"].visibility = "show";
  41.             document.layers["NCI Mode"].visibility = "hide";
  42.             }
  43.         }
  44.     else    {
  45.         setTimeout("showErrorLayer()",1000);
  46.         }
  47. }
  48.  
  49.  
  50.  
  51. function loadData()
  52. {
  53.     setTimeout("showErrorLayer()",1000);
  54.     if (parent.controls.generateControls)    parent.controls.generateControls();
  55. }
  56.  
  57.  
  58.  
  59. function saveData()
  60. {
  61. }
  62.  
  63.  
  64.  
  65. // end hiding contents from old browsers  -->
  66.