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

  1. <!--  to hide script contents from old browsers
  2.  
  3.  
  4.  
  5.     var savedFlag = false;
  6.  
  7.  
  8.  
  9. function go(msg)
  10. {
  11.     netscape.security.PrivilegeManager.enablePrivilege("AccountSetup");
  12.  
  13.     if (parent.parent.globals.document.vars.editMode.value == "yes")    {
  14.         return(true);
  15.         }
  16.     else    {
  17.         if (msg=="Internet")    {
  18.             if (parent.parent.globals.document.setupPlugin.DialerConnect() == false)    {
  19.                 return(false);
  20.                 }
  21.     
  22.             // check browser version
  23.             var theAgent=navigator.userAgent;
  24.             var x=theAgent.indexOf("/");
  25.             if (x>=0)    {
  26.                 theAgent=theAgent.substring(x+1,theAgent.length);
  27.                 x=theAgent.indexOf(".");
  28.                 if (x>0)    {
  29.                     theAgent=theAgent.substring(0,x);
  30.                     }            
  31.                 if (parseInt(theAgent)>=4)    {
  32.                 
  33.                     // Navigator 4.x specific features
  34.                 
  35.                     top.toolbar=true;
  36.                     top.menubar=true;
  37.                     top.locationbar=true;
  38.                     top.directory=true;
  39.                     top.statusbar=true;
  40.                     top.scrollbars=true;
  41.                     }
  42.                 }
  43.     
  44.             var theURL = parent.parent.globals.findVariable("HOME_URL");
  45.             if (theURL == "" || theURL ==null)    {
  46.                 theURL = "http://home.netscape.com/";
  47.                 }
  48.             parent.parent.location.replace(theURL);            // jumping to the URL
  49.             }
  50.         return(checkData());
  51.         }
  52. }
  53.  
  54.  
  55.  
  56. function checkData()
  57. {
  58.     return(true);
  59. }
  60.  
  61.  
  62.  
  63. function loadData()
  64. {
  65.     if (parent.controls.generateControls)    parent.controls.generateControls();
  66.     if (parent.parent.globals.document.vars.editMode.value != "yes")
  67.         saveAccountInfo(false);
  68. }
  69.  
  70.  
  71.  
  72. function saveData()
  73. {
  74. }
  75.  
  76.  
  77.  
  78. function saveAccountInfo(promptFlag)
  79. {
  80.     savedFlag = parent.parent.globals.saveAccountInfo(promptFlag);
  81. }
  82.  
  83.  
  84.  
  85. // end hiding contents from old browsers  -->
  86.