home *** CD-ROM | disk | FTP | other *** search
/ Online Praxis 1998 March / Image.iso / CD-ROM / NETSCAPE / CCK / ASE.Z / editisps.js < prev    next >
Encoding:
Text File  |  1997-08-21  |  3.1 KB  |  112 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.     
  10.      var tempFlagValue         =     "";
  11.      var asFormName            =    "ncioptions";
  12.  
  13.      modeSectionName            =    "Mode Selection"
  14.      newSectionName            =    "New Acct Mode"    
  15.      existingSectionName        =    "Existing Acct Mode"
  16.      
  17.     //fill in the lists
  18.     fillNCIFileList(asFormName, "SINGLENCI");
  19.     
  20.     //set the poplist flag
  21.     tempFlagValue = parent.parent.globals.GetNameValuePair(acctSetupFile,modeSectionName,"ExistingSRFile")
  22.     
  23.     if ((tempFlagValue != null) && (tempFlagValue != ""))
  24.         setRadio(asFormName, "poplist", "yes"); 
  25.     else
  26.         setRadio(asFormName, "poplist", "no");
  27.     
  28.     //set the showphones radio
  29.     tempFlagValue = yesNoToNoYes(parent.parent.globals.GetNameValuePair(acctSetupFile,existingSectionName,"ShowPhones"));
  30.     setRadio(asFormName, "showphones", tempFlagValue);            
  31.     
  32.     //set the ShowNoneAbove checkbox
  33.     tempFlagValue = parent.parent.globals.GetNameValuePair(acctSetupFile,existingSectionName,"ShowNoneAbove");
  34.     if (tempFlagValue == null || tempFlagValue == "null" || tempFlagValue == "")
  35.         tempFlagValue="yes"; //default to on  
  36.     setCheckBox(asFormName, "ShowNoneAbove", tempFlagValue);
  37.     
  38.     if (parent.controls.generateControls)    parent.controls.generateControls();
  39.     
  40. }//function loadData()
  41.  
  42.  
  43. function checkData()
  44. {
  45.     return true;
  46. }
  47.  
  48.  
  49. function saveData()
  50. {
  51.     // save globals here
  52.  
  53.     var acctSetupFile         =    parent.parent.globals.getAcctSetupFilename(parent.parent.globals);
  54.     var modeSectionName        =     "Mode Selection";
  55.     var existingSectionName        =    "Existing Acct Mode";
  56.     var newSectionName        =    "New Acct Mode";
  57.     var    asFormName            =    "ncioptions";
  58.  
  59.     if (acctSetupFile != null && acctSetupFile != "")    {
  60.  
  61.         var existingChosen         =    getRadio(asFormName, "poplist");
  62.  
  63.         if (existingChosen == "yes")
  64.         {
  65.              parent.parent.globals.SetNameValuePair(acctSetupFile,modeSectionName,"ExistingSRFile", getSelectListSelection(asFormName, "SINGLENCI"));    
  66.         }
  67.         else
  68.         {
  69.              parent.parent.globals.SetNameValuePair(acctSetupFile,modeSectionName, "ExistingSRFile", "");    
  70.         }
  71.         
  72.  parent.parent.globals.SetNameValuePair(acctSetupFile, existingSectionName, "ShowPhones", yesNoToNoYes(getRadio(asFormName, "showphones")));    
  73.      parent.parent.globals.SetNameValuePair(acctSetupFile, existingSectionName, "ShowNoneAbove", getCheckBox(asFormName, "ShowNoneAbove"));    
  74.  
  75.     }  // if (acctSetupFile != null && acctSetupFile != "")    
  76. }
  77.  
  78.  
  79.  //    For easy reference, this is the list of flags that ACCTSET.INI currently supports
  80.  //    ForceExisting
  81.  // ExistingSRFile
  82.  //    ForceNew
  83.  //    IntlMode
  84.  //    ShowNewPathInfo
  85.  //    AskSaveAcctInfo
  86.  //    SavePasswords
  87.  //    AskPersonalInfo
  88.  //    //AskSurvey        //defunct
  89.  //    //AskShareInfo    //defunct
  90.  //    AskBillingInfo
  91.  //    RegServer
  92.  //    CardTypes
  93.  //    ShowExistingPathInfo
  94.  //    RegPodURL
  95.  //    ShowIntro2
  96.  // ShowPhones
  97.  //    AskName
  98.  //    AskLogin
  99.  //    AskTTY
  100.  //    AskEmail
  101.  //    AskPhone
  102.  //    AskDNS
  103.  //    AskHosts
  104.  // AskPublishing
  105.  //    AskRegister
  106.  //    AskLDAP
  107.  //    AskIMAP
  108.  
  109.  
  110.  
  111. // end hiding contents from old browsers  -->
  112.