home *** CD-ROM | disk | FTP | other *** search
/ Online Praxis 1998 March / Image.iso / CD-ROM / NETSCAPE / CCK / INSTBLDR.Z / asw.jar / okreboot.js < prev    next >
Encoding:
Text File  |  1998-02-27  |  1.1 KB  |  71 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.     // check browser version
  18.     var theAgent=navigator.userAgent;
  19.     var x=theAgent.indexOf("/");
  20.     if (x>=0)    {
  21.         theAgent=theAgent.substring(x+1,theAgent.length);
  22.         x=theAgent.indexOf(".");
  23.         if (x>0)    {
  24.             theAgent=theAgent.substring(0,x);
  25.             }            
  26.         if (parseInt(theAgent)>=4)    {
  27.         
  28.             // Navigator 4.x specific features
  29.         
  30.             top.toolbar=true;
  31.             top.menubar=true;
  32.             top.locationbar=true;
  33.             top.directory=true;
  34.             top.statusbar=true;
  35.             top.scrollbars=true;
  36.             }
  37.         }
  38.  
  39.     return(true);
  40. }
  41.  
  42.  
  43.  
  44. function loadData()
  45. {
  46.     if (parent.controls.generateControls)    parent.controls.generateControls();
  47.     if (parent.parent.globals.document.vars.editMode.value != "yes")
  48.         saveAccountInfo(false);
  49. }
  50.  
  51.  
  52.  
  53. function saveData()
  54. {
  55. }
  56.  
  57.  
  58.  
  59.     var savedFlag = false;
  60.  
  61.  
  62.  
  63. function saveAccountInfo(promptFlag)
  64. {
  65.     savedFlag = parent.parent.globals.saveAccountInfo(promptFlag);
  66. }
  67.  
  68.  
  69.  
  70. // end hiding contents from old browsers  -->
  71.