home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 November / pcwk_11_98a.iso / Wtestowe / Money99 / money99.1 / erorg / erfuncs.js < prev    next >
Text File  |  1998-07-25  |  8KB  |  227 lines

  1.  
  2.  
  3. function page2node(index, type, str1, str2, str3, str4, str5, str6, str7, str8, str9, str10 )
  4. {
  5.     if (type != "DATA_STORE") 
  6.     {
  7.         this.contactName = str1
  8.         this.placeOfBusinessOrSchool = str2
  9.         this.address = str3
  10.         this.phoneDay = str4
  11.         this.phoneEve = str5
  12.         this.phoneEmg = str6
  13.         this.relationship = str7
  14.         this.circumstanceToContact = str8
  15.         this.locationOfMedicalRec = str9
  16.         this.notes = str10
  17.         this.sub = new Array()
  18.     }
  19.     else
  20.     {
  21.         if (index != 0)
  22.         {
  23.             this.contactName = CPS_ReadValue('page2_contactName' + index, str1); 
  24.             this.placeOfBusinessOrSchool = CPS_ReadValue('page2_placeOfBusinessOrSchool' + index, str2);
  25.             this.address = CPS_ReadValue('page2_address' + index, str3);
  26.             this.phoneDay = CPS_ReadValue('page2_phoneDay' + index, str4);
  27.             this.phoneEve = CPS_ReadValue('page2_phoneEve' + index, str5);
  28.             this.phoneEmg = CPS_ReadValue('page2_phoneEmg' + index, str6);
  29.             this.relationship = CPS_ReadValue('page2_relationship' + index, str7);
  30.             this.circumstanceToContact = CPS_ReadValue('page2_circumstanceToContact' + index, str8);
  31.             this.locationOfMedicalRec = CPS_ReadValue('page2_locationOfMedicalRec' + index, str9);
  32.             this.notes = CPS_ReadValue('page2_notes', str10);
  33.         }
  34.         this.sub = new Array()
  35.         
  36.     }    
  37.     return this
  38. }
  39.  
  40. function page3node(index, type, str1, str2, str3, str4, str5, str6, str7, str8, num9, num10, date11, str12, str13, str14, str15 )
  41. {
  42.     if (type != "DATA_STORE")
  43.     {
  44.         this.insuranceType = str1
  45.         this.nameOnPolicy = str2
  46.         this.policyNo = str3
  47.         this.description = str4
  48.         this.company = str5
  49.         this.address = str6
  50.         this.phone = str7
  51.         this.agent = str8
  52.         this.faceAmount = num9
  53.         this.premiumAmount = num10
  54.         this.expirationDate = date11.toString()
  55.         this.deductible = str12
  56.         this.beneficiary = str13
  57.         this.locationOfPolicy = str14
  58.         this.notes = str15
  59.         this.sub = new Array()     
  60.     }
  61.     else
  62.     {
  63.         if (index != 0)
  64.         {
  65.             this.insuranceType = CPS_ReadValue('page3_insuranceType' + index, str1);
  66.             this.nameOnPolicy = CPS_ReadValue('page3_nameOnPolicy' + index, str2);
  67.             this.policyNo = CPS_ReadValue('page3_policyNo' + index, str3);
  68.             this.description = CPS_ReadValue('page3_description' + index, str4);
  69.             this.company = CPS_ReadValue('page3_company' + index, str5);
  70.             this.address = CPS_ReadValue('page3_address' + index, str6);
  71.             this.phone = CPS_ReadValue('page3_phone' + index, str7);
  72.             this.agent = CPS_ReadValue('page3_agent' + index, str8);
  73.             this.faceAmount = CPS_ReadValue('page3_faceAmount' + index, num9);
  74.             this.premiumAmount = CPS_ReadValue('page3_premiumAmount' + index, num10);
  75.             this.expirationDate = CPS_ReadValue('page3_expirationDate' + index, date11.toString());
  76.             this.deductible = CPS_ReadValue('page3_deductible' + index, str12);
  77.             this.beneficiary = CPS_ReadValue('page3_beneficiary' + index, str13);
  78.             this.locationOfPolicy = CPS_ReadValue('page3_locationOfPolicy' + index, str14);
  79.             this.notes =  CPS_ReadValue('page3_notes' + index, str15);
  80.         }
  81.         this.sub = new Array()                             
  82.     }
  83.     return this
  84. }
  85.  
  86. function page4node(index, type, str1, str2, str3, date4, str5, str6, str7)
  87. {
  88.     if (type != "DATA_STORE") 
  89.     {
  90.         this.documentType = str1
  91.         this.description = str2
  92.         this.locationOfDoc = str3
  93.         this.dateCompleted = date4
  94.         this.contactName = str5
  95.         this.phone = str6
  96.         this.notes = str7
  97.         this.sub = new Array()
  98.     }
  99.     else
  100.     {
  101.         if (index != 0)
  102.         {
  103.             this.documentType = CPS_ReadValue('page4_documentType' + index, str1); 
  104.             this.description = CPS_ReadValue('page4_description' + index, str2);
  105.             this.locationOfDoc = CPS_ReadValue('page4_locationOfDoc' + index, str3);
  106.             this.dateCompleted = CPS_ReadValue('page4_dateCompleted' + index, date4);
  107.             this.contactName = CPS_ReadValue('page4_contactName' + index, str5);
  108.             this.phone = CPS_ReadValue('page4_phone' + index, str6);
  109.             this.notes = CPS_ReadValue('page4_notes', str7);
  110.         }
  111.         this.sub = new Array()
  112.         
  113.     }    
  114.     return this
  115. }
  116.  
  117. function page5node(index, type, str1, str2, str3, str4, str5, str6, str7, str8, str9, str10, str11, str12 )
  118. {
  119.     if (type != "DATA_STORE") 
  120.     {
  121.         this.assetType = str1
  122.         this.assetLocation = str2
  123.         this.contactName = str3
  124.         this.phone = str4
  125.         this.owner = str5
  126.         this.locationOfDoc = str6
  127.         this.leinHolder = str7
  128.         this.locationOfKeyOrCombination = str8
  129.         this.idNumber = str9
  130.         this.licenseNumber = str10
  131.         this.insPolicyNumber = str11
  132.         this.notes = str12
  133.         this.sub = new Array()
  134.     }
  135.     else
  136.     {
  137.         if (index != 0)
  138.         {
  139.             this.assetType = CPS_ReadValue('page5_assetType' + index, str1); 
  140.             this.assetLocation = CPS_ReadValue('page5_assetLocation' + index, str2);
  141.             this.contactName = CPS_ReadValue('page5_contactName' + index, str3);
  142.             this.phone = CPS_ReadValue('page5_phone' + index, str4);
  143.             this.owner = CPS_ReadValue('page5_owner' + index, str5);
  144.             this.locationOfDoc = CPS_ReadValue('page5_locationOfDoc' + index, str6);
  145.             this.leinHolder = CPS_ReadValue('page5_leinHolder' + index, str7);
  146.             this.locationOfKeyOrCombination = CPS_ReadValue('page5_locationOfKeyOrCombination' + index, str8);
  147.             this.idNumber = CPS_ReadValue('page5_idNumber' + index, str9);
  148.             this.licenseNumber = CPS_ReadValue('page5_licenseNumber' + index, str10);
  149.             this.insPolicyNumber = CPS_ReadValue('page5_insPolicyNumber' + index, str11);
  150.             this.notes = CPS_ReadValue('page5_notes', str12);
  151.         }
  152.         this.sub = new Array()
  153.         
  154.     }    
  155.     return this
  156. }
  157.  
  158.  
  159. function page6node(index, type, str1, str2, str3, str4, num5, num6, str7, str8, str9, str10, str11, str12 )
  160. {
  161.     if (type != "DATA_STORE") 
  162.     {
  163.         this.accountName = str1
  164.         this.description = str2
  165.         this.ownersName = str3
  166.         this.accountNumber = str4
  167.         this.balance = num5
  168.         this.interestRate = num6
  169.         this.financialInstitution = str7
  170.         this.contact = str8
  171.         this.address = str9
  172.         this.phone = str10
  173.         this.locationOfDoc = str11
  174.         this.notes = str12
  175.         this.sub = new Array()
  176.     }
  177.     else
  178.     {
  179.         if (index != 0)
  180.         {
  181.             this.accountName = CPS_ReadValue('page6_accountName' + index, str1); 
  182.             this.description = CPS_ReadValue('page6_description' + index, str2);
  183.             this.ownersName = CPS_ReadValue('page6_ownersName' + index, str3);
  184.             this.accountNumber = CPS_ReadValue('page6_accountNumber' + index, str4);
  185.             this.balance = CPS_ReadValue('page6_balance' + index, num5);
  186.             this.interestRate = CPS_ReadValue('page6_interestRate' + index, num6);
  187.             this.financialInstitution = CPS_ReadValue('page6_financialInstitution' + index, str7);
  188.             this.contact = CPS_ReadValue('page6_contact' + index, str8);
  189.             this.address = CPS_ReadValue('page6_address' + index, str9);
  190.             this.phone = CPS_ReadValue('page6_phone' + index, str10);
  191.             this.locationOfDoc = CPS_ReadValue('page6_locationOfDoc' + index, str11);
  192.             this.notes = CPS_ReadValue('page6_notes', str12);
  193.         }
  194.         this.sub = new Array()
  195.         
  196.     }    
  197.     return this
  198. }
  199.  
  200. function page7node(index, type, str1, str2, str3, str4, str5)
  201. {
  202.     if (type != "DATA_STORE") 
  203.     {
  204.         this.description = str1
  205.         this.contactName = str2
  206.         this.phone = str3
  207.         this.locationOfDocuments = str4
  208.         this.notes = str5
  209.         this.sub = new Array()
  210.     }
  211.     else
  212.     {
  213.         if (index != 0)
  214.         {
  215.             this.description = CPS_ReadValue('page7_description' + index, str1); 
  216.             this.contactName = CPS_ReadValue('page7_contactName' + index, str2);
  217.             this.phone = CPS_ReadValue('page7_phone' + index, str3);
  218.             this.locationOfDocuments = CPS_ReadValue('page7_locationOfDocuments' + index, str4);
  219.             this.notes = CPS_ReadValue('page7_notes', str5);
  220.         }
  221.         this.sub = new Array()
  222.         
  223.     }    
  224.     return this
  225. }
  226.  
  227.