home *** CD-ROM | disk | FTP | other *** search
/ Online Praxis 1998 March / Image.iso / CD-ROM / NETSCAPE / CCK / ASE.Z / editcc.js < prev    next >
Encoding:
Text File  |  1997-08-21  |  1.9 KB  |  82 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 ttyFlagValue         =     "";
  11.      var asFormName            =    "askcc";
  12.  
  13.      modeSectionName            =    "Mode Selection"
  14.      newSectionName            =    "New Acct Mode"    
  15.      existingSectionName        =    "Existing Acct Mode"
  16.          
  17.     //set the checkbox flag
  18.     setCardTypes(asFormName, parent.parent.globals.GetNameValuePair(acctSetupFile,newSectionName,"CardTypes"));            
  19.  
  20.     if (parent.controls.generateControls)    parent.controls.generateControls();
  21.  
  22. }//function loadData()
  23.  
  24.  
  25. function checkData()
  26. {
  27.     return true;
  28. }
  29.  
  30.  
  31. function saveData()
  32. {
  33.     // save globals here
  34.  
  35.     var acctSetupFile         =    parent.parent.globals.getAcctSetupFilename(parent.parent.globals);
  36.     var modeSectionName        =     "Mode Selection";
  37.     var existingSectionName    =    "Existing Acct Mode";
  38.     var newSectionName        =    "New Acct Mode";
  39.     var    asFormName            =    "askcc";
  40.  
  41.     if (acctSetupFile != null && acctSetupFile != "")    {
  42.     
  43.         var cardTypes = getCardTypes(asFormName);
  44.      parent.parent.globals.SetNameValuePair(acctSetupFile, newSectionName, "CardTypes", cardTypes);    
  45.     }  // if (acctSetupFile != null && acctSetupFile != "")    
  46. }
  47.  
  48.  
  49.  //    For easy reference, this is the list of flags that ACCTSET.INI currently supports
  50.  //    ForceExisting
  51.  // ExistingSRFile
  52.  //    ForceNew
  53.  //    IntlMode
  54.  //    ShowNewPathInfo
  55.  //    AskSaveAcctInfo
  56.  //    SavePasswords
  57.  //    AskPersonalInfo
  58.  //    //AskSurvey        //defunct
  59.  //    //AskShareInfo    //defunct
  60.  //    AskBillingInfo
  61.  //    RegServer
  62.  //    CardTypes
  63.  //    ShowExistingPathInfo
  64.  //    RegPodURL
  65.  //    ShowIntro2
  66.  // ShowPhones
  67.  //    AskName
  68.  //    AskLogin
  69.  //    AskTTY
  70.  //    AskEmail
  71.  //    AskPhone
  72.  //    AskDNS
  73.  //    AskHosts
  74.  // AskPublishing
  75.  //    AskRegister
  76.  //    AskLDAP
  77.  //    AskIMAP
  78.  
  79.  
  80.  
  81. // end hiding contents from old browsers  -->
  82.