home *** CD-ROM | disk | FTP | other *** search
/ Online Praxis 1998 March / Image.iso / CD-ROM / NETSCAPE / CCK / ASE.Z / editregs.js < prev    next >
Encoding:
Text File  |  1997-08-21  |  2.3 KB  |  100 lines

  1. <!--  to hide script contents from old browsers
  2.  
  3. //the file that includes this must also include settings.js!
  4.  
  5. function loadData()
  6. {
  7.     
  8.     var acctSetupFile        =    parent.parent.globals.getAcctSetupFilename(parent.parent.globals);
  9.     //debug("filename: " + acctSetupFile);
  10.     
  11.      var tempFlagValue         =     "";
  12.      var asFormName            =    "iasoptions";
  13.  
  14.      modeSectionName            =    "Mode Selection"
  15.      newSectionName            =    "New Acct Mode"    
  16.      existingSectionName        =    "Existing Acct Mode"
  17.      
  18.     //fill in the lists
  19.     fillIASFileList(asFormName, "SINGLEIAS");
  20.     
  21.     //set the poplist flag
  22.     tempFlagValue = parent.parent.globals.GetNameValuePair(acctSetupFile, newSectionName,"RegServer")
  23.     
  24.     if ((tempFlagValue != null) && (tempFlagValue != ""))
  25.         setRadio(asFormName, "poplist", "yes"); 
  26.     else
  27.         setRadio(asFormName, "poplist", "no");
  28.         
  29.     if (parent.controls.generateControls)    parent.controls.generateControls();
  30.     
  31. }//function loadData()
  32.  
  33.  
  34. function checkData()
  35. {
  36.     return true;
  37. }
  38.  
  39.  
  40. function saveData()
  41. {
  42.     // save globals here
  43.  
  44.     var acctSetupFile         =    parent.parent.globals.getAcctSetupFilename(parent.parent.globals);
  45.     var modeSectionName        =     "Mode Selection";
  46.     var existingSectionName    =    "Existing Acct Mode";
  47.     var newSectionName        =    "New Acct Mode";
  48.     var    asFormName            =    "iasoptions";
  49.  
  50.     if (acctSetupFile != null && acctSetupFile != "")    {
  51.  
  52.         var existingChosen         =    getRadio(asFormName, "poplist");
  53.  
  54.         if (existingChosen == "yes")
  55.         {
  56.              parent.parent.globals.SetNameValuePair(acctSetupFile, newSectionName, "RegServer", getSelectListSelection(asFormName, "SINGLEIAS"));    
  57.         }
  58.         else
  59.         {
  60.              parent.parent.globals.SetNameValuePair(acctSetupFile, newSectionName, "RegServer", "");    
  61.     
  62.         }
  63.     }  // if (acctSetupFile != null && acctSetupFile != "")    
  64. }
  65.  
  66.  
  67.  //    For easy reference, this is the list of flags that ACCTSET.INI currently supports
  68.  //    ForceExisting
  69.  // ExistingSRFile
  70.  //    ForceNew
  71.  //    IntlMode
  72.  //    ShowNewPathInfo
  73.  //    AskSaveAcctInfo
  74.  //    SavePasswords
  75.  //    AskPersonalInfo
  76.  //    //AskSurvey        //defunct
  77.  //    //AskShareInfo    //defunct
  78.  //    AskBillingInfo
  79.  //    RegServer
  80.  //    CardTypes
  81.  //    ShowExistingPathInfo
  82.  //    RegPodURL
  83.  //    ShowIntro2
  84.  // ShowPhones
  85.  //    AskName
  86.  //    AskLogin
  87.  //    AskTTY
  88.  //    AskEmail
  89.  //    AskPhone
  90.  //    AskDNS
  91.  //    AskHosts
  92.  // AskPublishing
  93.  //    AskRegister
  94.  //    AskLDAP
  95.  //    AskIMAP
  96.  
  97.  
  98.  
  99. // end hiding contents from old browsers  -->
  100.