Net Price Calculator

Net Price Calculator body { font-family:Arial; font-size:13px; } input { font-family:Arial; font-size:13px; } .formtable td { padding-bottom:15px; } .disclaimer { margin-top:0px; margin-right:8px; margin-bottom: 20px; /*width:220px;*/ width:480px; font-family:Arial; font-weight:normal; font-size:11px; text-align:left; } .summarytable td { border-bottom:solid 1px #c7ddea; padding: 6px 1px 7px 4px; } .boldtd { font-weight:bold; font-family: Arial; font-size:12px; color:#336699; width:150px; } .title1 { color:#336699; font-family:Arial; font-size:12px; font-weight:bold; } .title2 { color:#333333; font-family:Arial; font-size:13px; font-weight:bold; } var dict = {}; dict.isDependent; dict.financialAid = { ‘active’:false, ‘title’:’Financial aid’, ‘0’:’Yes’, ‘1’: ‘No’, ‘intValue’:0, ‘textValue’: ” }; dict.age = { ‘active’: false, ‘title’: ‘Age’, ‘intValue’: 0 }; dict.livingStatus = { ‘active’: false, ‘title’: ‘Living arrangement’, ‘intValue’: 0, ‘textValue’: ” }; dict.residencyStatus = { ‘active’: false, ‘title’: ‘Residency’, ‘intValue’: 0, ‘textValue’: ” }; dict.maritalStatus = { ‘active’: false, ‘title’: ‘Marital Status’, ‘0’: ‘No’, ‘1’: ‘Yes’, ‘intValue’: ” }; dict.numberOfChildren = { ‘active’: false, ‘title’: ‘Children’, ‘0’: ‘No’, ‘1’: ‘Yes’, ‘intValue’: ” }; dict.numberInFamily = { ‘active’: false, ‘title’: ‘Number in Family’, ‘intValue’: 0, ‘textValue’: ” }; dict.numberInCollege = { ‘active’: false, ‘title’: ‘Number in College’, ‘intValue’: 0, ‘textValue’: ” }; dict.householdIncome = { ‘active’: false, ‘title’: ‘Household Income’, ‘intValue’ : 0, ‘0’: ‘Less than $30,000’, ‘1’: ‘Between $30,000 – $39,999’, ‘2’: ‘Between $40,000 – $49,999’, ‘3’: ‘Between $50,000 – $59,999’, ‘4’: ‘Between $60,000 – $69,999’, ‘5’: ‘Between $70,000 – $79,999’, ‘6’: ‘Between $80,000 – $89,999’, ‘7’: ‘Between $90,000 – $99,999’, ‘8’: ‘Above $99,999’ }; var numberoflivingstatus = 0; var npc1_livingstatus = “”; var npc1_isdefaultlivingstatus = “0”; var npc1_residencystatus = “”; var npc1_isdefaultresidencystatus = “0”; var npc_step = “0”; var currentstepid = “0”; var efcDependent = []; efcDependent[0] = {}; efcDependent[0].numberInCollege=1; efcDependent[0].numberInFamily=2; efcDependent[0].incomeRanges= []; efcDependent[0].incomeRanges[0] = 0; efcDependent[0].incomeRanges[1] = 1469; efcDependent[0].incomeRanges[2] = 3292; efcDependent[0].incomeRanges[3] = 5401; efcDependent[0].incomeRanges[4] = 7952; efcDependent[0].incomeRanges[5] = 11165; efcDependent[0].incomeRanges[6] = 14559.5; efcDependent[0].incomeRanges[7] = 18013; efcDependent[0].incomeRanges[8] = 30801; efcDependent[1] = {}; efcDependent[1].numberInCollege=1; efcDependent[1].numberInFamily=3; efcDependent[1].incomeRanges= []; efcDependent[1].incomeRanges[0] = 0; efcDependent[1].incomeRanges[1] = 866; efcDependent[1].incomeRanges[2] = 2789; efcDependent[1].incomeRanges[3] = 4861; efcDependent[1].incomeRanges[4] = 7205; efcDependent[1].incomeRanges[5] = 10331; efcDependent[1].incomeRanges[6] = 13821; efcDependent[1].incomeRanges[7] = 17387; efcDependent[1].incomeRanges[8] = 33907; efcDependent[2] = {}; efcDependent[2].numberInCollege=1; efcDependent[2].numberInFamily=4; efcDependent[2].incomeRanges= []; efcDependent[2].incomeRanges[0] = 0; efcDependent[2].incomeRanges[1] = 56; efcDependent[2].incomeRanges[2] = 1881; efcDependent[2].incomeRanges[3] = 3811; efcDependent[2].incomeRanges[4] = 5948; efcDependent[2].incomeRanges[5] = 8556; efcDependent[2].incomeRanges[6] = 12015; efcDependent[2].incomeRanges[7] = 15586; efcDependent[2].incomeRanges[8] = 33335; efcDependent[3] = {}; efcDependent[3].numberInCollege=1; efcDependent[3].numberInFamily=5; efcDependent[3].incomeRanges= []; efcDependent[3].incomeRanges[0] = 0; efcDependent[3].incomeRanges[1] = 0; efcDependent[3].incomeRanges[2] = 898; efcDependent[3].incomeRanges[3] = 2869; efcDependent[3].incomeRanges[4] = 4893; efcDependent[3].incomeRanges[5] = 7150; efcDependent[3].incomeRanges[6] = 10294; efcDependent[3].incomeRanges[7] = 13867; efcDependent[3].incomeRanges[8] = 31421; efcDependent[4] = {}; efcDependent[4].numberInCollege=1; efcDependent[4].numberInFamily=6; efcDependent[4].incomeRanges= []; efcDependent[4].incomeRanges[0] = 0; efcDependent[4].incomeRanges[1] = 0; efcDependent[4].incomeRanges[2] = 0; efcDependent[4].incomeRanges[3] = 1350; efcDependent[4].incomeRanges[4] = 3255; efcDependent[4].incomeRanges[5] = 5419; efcDependent[4].incomeRanges[6] = 7910; efcDependent[4].incomeRanges[7] = 11300.5; efcDependent[4].incomeRanges[8] = 27527; efcDependent[5] = {}; efcDependent[5].numberInCollege=2; efcDependent[5].numberInFamily=2; efcDependent[5].incomeRanges= []; efcDependent[5].incomeRanges[0] = 0; efcDependent[5].incomeRanges[1] = 1211; efcDependent[5].incomeRanges[2] = 2197; efcDependent[5].incomeRanges[3] = 3022; efcDependent[5].incomeRanges[4] = 5379; efcDependent[5].incomeRanges[5] = 6985; efcDependent[5].incomeRanges[6] = 6942; efcDependent[5].incomeRanges[7] = 10749; efcDependent[5].incomeRanges[8] = 19972.5; efcDependent[6] = {}; efcDependent[6].numberInCollege=2; efcDependent[6].numberInFamily=3; efcDependent[6].incomeRanges= []; efcDependent[6].incomeRanges[0] = 0; efcDependent[6].incomeRanges[1] = 699; efcDependent[6].incomeRanges[2] = 1709; efcDependent[6].incomeRanges[3] = 2835; efcDependent[6].incomeRanges[4] = 4300; efcDependent[6].incomeRanges[5] = 6052; efcDependent[6].incomeRanges[6] = 7669; efcDependent[6].incomeRanges[7] = 9366.5; efcDependent[6].incomeRanges[8] = 16571; efcDependent[7] = {}; efcDependent[7].numberInCollege=2; efcDependent[7].numberInFamily=4; efcDependent[7].incomeRanges= []; efcDependent[7].incomeRanges[0] = 0; efcDependent[7].incomeRanges[1] = 336; efcDependent[7].incomeRanges[2] = 1371; efcDependent[7].incomeRanges[3] = 2429; efcDependent[7].incomeRanges[4] = 3698; efcDependent[7].incomeRanges[5] = 5382; efcDependent[7].incomeRanges[6] = 7008; efcDependent[7].incomeRanges[7] = 8800; efcDependent[7].incomeRanges[8] = 18679; efcDependent[8] = {}; efcDependent[8].numberInCollege=2; efcDependent[8].numberInFamily=5; efcDependent[8].incomeRanges= []; efcDependent[8].incomeRanges[0] = 0; efcDependent[8].incomeRanges[1] = 0; efcDependent[8].incomeRanges[2] = 858; efcDependent[8].incomeRanges[3] = 1888; efcDependent[8].incomeRanges[4] = 2987; efcDependent[8].incomeRanges[5] = 4457; efcDependent[8].incomeRanges[6] = 6159; efcDependent[8].incomeRanges[7] = 7895; efcDependent[8].incomeRanges[8] = 17872; efcDependent[9] = {}; efcDependent[9].numberInCollege=2; efcDependent[9].numberInFamily=6; efcDependent[9].incomeRanges= []; efcDependent[9].incomeRanges[0] = 0; efcDependent[9].incomeRanges[1] = 0; efcDependent[9].incomeRanges[2] = 60; efcDependent[9].incomeRanges[3] = 1095; efcDependent[9].incomeRanges[4] = 2112; efcDependent[9].incomeRanges[5] = 3328; efcDependent[9].incomeRanges[6] = 5025; efcDependent[9].incomeRanges[7] = 6673; efcDependent[9].incomeRanges[8] = 15934; efcDependent[10] = {}; efcDependent[10].numberInCollege=3; efcDependent[10].numberInFamily=3; efcDependent[10].incomeRanges= []; efcDependent[10].incomeRanges[0] = 0; efcDependent[10].incomeRanges[1] = 934; efcDependent[10].incomeRanges[2] = 1280; efcDependent[10].incomeRanges[3] = 2250.5; efcDependent[10].incomeRanges[4] = 3698; efcDependent[10].incomeRanges[5] = 4211; efcDependent[10].incomeRanges[6] = 5526.5; efcDependent[10].incomeRanges[7] = 6519; efcDependent[11] = {}; efcDependent[11].numberInCollege=3; efcDependent[11].numberInFamily=4; efcDependent[11].incomeRanges= []; efcDependent[11].incomeRanges[0] = 0; efcDependent[11].incomeRanges[1] = 327; efcDependent[11].incomeRanges[2] = 1033; efcDependent[11].incomeRanges[3] = 1804; efcDependent[11].incomeRanges[4] = 2737; efcDependent[11].incomeRanges[5] = 4006; efcDependent[11].incomeRanges[6] = 5275; efcDependent[11].incomeRanges[7] = 6398.5; efcDependent[11].incomeRanges[8] = 11238; efcDependent[12] = {}; efcDependent[12].numberInCollege=3; efcDependent[12].numberInFamily=5; efcDependent[12].incomeRanges= []; efcDependent[12].incomeRanges[0] = 0; efcDependent[12].incomeRanges[1] = 123; efcDependent[12].incomeRanges[2] = 818; efcDependent[12].incomeRanges[3] = 1527; efcDependent[12].incomeRanges[4] = 2386; efcDependent[12].incomeRanges[5] = 3480; efcDependent[12].incomeRanges[6] = 4735; efcDependent[12].incomeRanges[7] = 5898; efcDependent[12].incomeRanges[8] = 12827; efcDependent[13] = {}; efcDependent[13].numberInCollege=3; efcDependent[13].numberInFamily=6; efcDependent[13].incomeRanges= []; efcDependent[13].incomeRanges[0] = 0; efcDependent[13].incomeRanges[1] = 0; efcDependent[13].incomeRanges[2] = 211; efcDependent[13].incomeRanges[3] = 921; efcDependent[13].incomeRanges[4] = 1598; efcDependent[13].incomeRanges[5] = 2472; efcDependent[13].incomeRanges[6] = 3584; efcDependent[13].incomeRanges[7] = 4920; efcDependent[13].incomeRanges[8] = 11016; var efcIndWithoutDep = []; efcIndWithoutDep[0] = {}; efcIndWithoutDep[0].numberInCollege=1; efcIndWithoutDep[0].numberInFamily=1; efcIndWithoutDep[0].incomeRanges= []; efcIndWithoutDep[0].incomeRanges[0] = 0; efcIndWithoutDep[0].incomeRanges[1] = 9314; efcIndWithoutDep[0].incomeRanges[2] = 13172; efcIndWithoutDep[0].incomeRanges[3] = 16967; efcIndWithoutDep[0].incomeRanges[4] = 20719; efcIndWithoutDep[0].incomeRanges[5] = 24348; efcIndWithoutDep[0].incomeRanges[6] = 28126.5; efcIndWithoutDep[0].incomeRanges[7] = 31979; efcIndWithoutDep[0].incomeRanges[8] = 47713.5; efcIndWithoutDep[1] = {}; efcIndWithoutDep[1].numberInCollege=1; efcIndWithoutDep[1].numberInFamily=2; efcIndWithoutDep[1].incomeRanges= []; efcIndWithoutDep[1].incomeRanges[0] = 0; efcIndWithoutDep[1].incomeRanges[1] = 6324; efcIndWithoutDep[1].incomeRanges[2] = 10008; efcIndWithoutDep[1].incomeRanges[3] = 13829.5; efcIndWithoutDep[1].incomeRanges[4] = 17566; efcIndWithoutDep[1].incomeRanges[5] = 21393; efcIndWithoutDep[1].incomeRanges[6] = 25254; efcIndWithoutDep[1].incomeRanges[7] = 28955; efcIndWithoutDep[1].incomeRanges[8] = 41994; efcIndWithoutDep[2] = {}; efcIndWithoutDep[2].numberInCollege=2; efcIndWithoutDep[2].numberInFamily=2; efcIndWithoutDep[2].incomeRanges= []; efcIndWithoutDep[2].incomeRanges[0] = 618; efcIndWithoutDep[2].incomeRanges[1] = 4569; efcIndWithoutDep[2].incomeRanges[2] = 6398; efcIndWithoutDep[2].incomeRanges[3] = 8354; efcIndWithoutDep[2].incomeRanges[4] = 10242; efcIndWithoutDep[2].incomeRanges[5] = 12129; efcIndWithoutDep[2].incomeRanges[6] = 14046.5; efcIndWithoutDep[2].incomeRanges[7] = 15883; efcIndWithoutDep[2].incomeRanges[8] = 21427; var efcIndWithDep = []; efcIndWithDep[0] = {}; efcIndWithDep[0].numberInCollege=1; efcIndWithDep[0].numberInFamily=2; efcIndWithDep[0].incomeRanges= []; efcIndWithDep[0].incomeRanges[0] = 0; efcIndWithDep[0].incomeRanges[1] = 216; efcIndWithDep[0].incomeRanges[2] = 1929; efcIndWithDep[0].incomeRanges[3] = 3648; efcIndWithDep[0].incomeRanges[4] = 5786.5; efcIndWithDep[0].incomeRanges[5] = 8374.5; efcIndWithDep[0].incomeRanges[6] = 11688.5; efcIndWithDep[0].incomeRanges[7] = 15151; efcIndWithDep[0].incomeRanges[8] = 26127; efcIndWithDep[1] = {}; efcIndWithDep[1].numberInCollege=1; efcIndWithDep[1].numberInFamily=3; efcIndWithDep[1].incomeRanges= []; efcIndWithDep[1].incomeRanges[0] = 0; efcIndWithDep[1].incomeRanges[1] = 0; efcIndWithDep[1].incomeRanges[2] = 1114; efcIndWithDep[1].incomeRanges[3] = 2819; efcIndWithDep[1].incomeRanges[4] = 4688; efcIndWithDep[1].incomeRanges[5] = 7106; efcIndWithDep[1].incomeRanges[6] = 10361; efcIndWithDep[1].incomeRanges[7] = 13890; efcIndWithDep[1].incomeRanges[8] = 23492; efcIndWithDep[2] = {}; efcIndWithDep[2].numberInCollege=1; efcIndWithDep[2].numberInFamily=4; efcIndWithDep[2].incomeRanges= []; efcIndWithDep[2].incomeRanges[0] = 0; efcIndWithDep[2].incomeRanges[1] = 0; efcIndWithDep[2].incomeRanges[2] = 0; efcIndWithDep[2].incomeRanges[3] = 1652; efcIndWithDep[2].incomeRanges[4] = 3311; efcIndWithDep[2].incomeRanges[5] = 5345; efcIndWithDep[2].incomeRanges[6] = 7980; efcIndWithDep[2].incomeRanges[7] = 11454; efcIndWithDep[2].incomeRanges[8] = 20968; efcIndWithDep[3] = {}; efcIndWithDep[3].numberInCollege=1; efcIndWithDep[3].numberInFamily=5; efcIndWithDep[3].incomeRanges= []; efcIndWithDep[3].incomeRanges[0] = 0; efcIndWithDep[3].incomeRanges[1] = 0; efcIndWithDep[3].incomeRanges[2] = 0; efcIndWithDep[3].incomeRanges[3] = 370; efcIndWithDep[3].incomeRanges[4] = 2133; efcIndWithDep[3].incomeRanges[5] = 3862; efcIndWithDep[3].incomeRanges[6] = 6053; efcIndWithDep[3].incomeRanges[7] = 8959.5; efcIndWithDep[3].incomeRanges[8] = 18392.5; efcIndWithDep[4] = {}; efcIndWithDep[4].numberInCollege=1; efcIndWithDep[4].numberInFamily=6; efcIndWithDep[4].incomeRanges= []; efcIndWithDep[4].incomeRanges[0] = 0; efcIndWithDep[4].incomeRanges[1] = 0; efcIndWithDep[4].incomeRanges[2] = 0; efcIndWithDep[4].incomeRanges[3] = 0; efcIndWithDep[4].incomeRanges[4] = 271; efcIndWithDep[4].incomeRanges[5] = 2032; efcIndWithDep[4].incomeRanges[6] = 3856; efcIndWithDep[4].incomeRanges[7] = 6065; efcIndWithDep[4].incomeRanges[8] = 14800; efcIndWithDep[5] = {}; efcIndWithDep[5].numberInCollege=2; efcIndWithDep[5].numberInFamily=2; efcIndWithDep[5].incomeRanges= []; efcIndWithDep[5].incomeRanges[0] = 0; efcIndWithDep[5].incomeRanges[1] = 569; efcIndWithDep[5].incomeRanges[2] = 1415; efcIndWithDep[5].incomeRanges[3] = 2330; efcIndWithDep[5].incomeRanges[4] = 3602.5; efcIndWithDep[5].incomeRanges[5] = 5178; efcIndWithDep[5].incomeRanges[6] = 6710; efcIndWithDep[5].incomeRanges[7] = 8368; efcIndWithDep[5].incomeRanges[8] = 13360; efcIndWithDep[6] = {}; efcIndWithDep[6].numberInCollege=2; efcIndWithDep[6].numberInFamily=3; efcIndWithDep[6].incomeRanges= []; efcIndWithDep[6].incomeRanges[0] = 0; efcIndWithDep[6].incomeRanges[1] = 179; efcIndWithDep[6].incomeRanges[2] = 1020; efcIndWithDep[6].incomeRanges[3] = 1878; efcIndWithDep[6].incomeRanges[4] = 2945; efcIndWithDep[6].incomeRanges[5] = 4404; efcIndWithDep[6].incomeRanges[6] = 6131.5; efcIndWithDep[6].incomeRanges[7] = 7831; efcIndWithDep[6].incomeRanges[8] = 12785; efcIndWithDep[7] = {}; efcIndWithDep[7].numberInCollege=2; efcIndWithDep[7].numberInFamily=4; efcIndWithDep[7].incomeRanges= []; efcIndWithDep[7].incomeRanges[0] = 0; efcIndWithDep[7].incomeRanges[1] = 0; efcIndWithDep[7].incomeRanges[2] = 418; efcIndWithDep[7].incomeRanges[3] = 1239; efcIndWithDep[7].incomeRanges[4] = 2095; efcIndWithDep[7].incomeRanges[5] = 3226; efcIndWithDep[7].incomeRanges[6] = 4770; efcIndWithDep[7].incomeRanges[7] = 6394; efcIndWithDep[7].incomeRanges[8] = 10794; efcIndWithDep[8] = {}; efcIndWithDep[8].numberInCollege=2; efcIndWithDep[8].numberInFamily=5; efcIndWithDep[8].incomeRanges= []; efcIndWithDep[8].incomeRanges[0] = 0; efcIndWithDep[8].incomeRanges[1] = 0; efcIndWithDep[8].incomeRanges[2] = 0; efcIndWithDep[8].incomeRanges[3] = 648; efcIndWithDep[8].incomeRanges[4] = 1431; efcIndWithDep[8].incomeRanges[5] = 2330; efcIndWithDep[8].incomeRanges[6] = 3484.5; efcIndWithDep[8].incomeRanges[7] = 5124.5; efcIndWithDep[8].incomeRanges[8] = 9361; efcIndWithDep[9] = {}; efcIndWithDep[9].numberInCollege=2; efcIndWithDep[9].numberInFamily=6; efcIndWithDep[9].incomeRanges= []; efcIndWithDep[9].incomeRanges[0] = 0; efcIndWithDep[9].incomeRanges[1] = 0; efcIndWithDep[9].incomeRanges[2] = 0; efcIndWithDep[9].incomeRanges[3] = 0; efcIndWithDep[9].incomeRanges[4] = 561; efcIndWithDep[9].incomeRanges[5] = 1316; efcIndWithDep[9].incomeRanges[6] = 2162; efcIndWithDep[9].incomeRanges[7] = 3268; efcIndWithDep[9].incomeRanges[8] = 7344; // POA var POA_Total = [‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’]; var POA_TRF = [‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’]; var POA_BS = [‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’]; var POA_RB = [‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’]; var POA_O = [‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’]; // TGA var TGA_0 = [‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’]; var TGA_1_1000 = [‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’]; var TGA_1001_2500 = [‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’]; var TGA_2501_5000 = [‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’]; var TGA_5001_7500 = [‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’]; var TGA_7501_10000 = [‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’]; var TGA_10001_12500 = [‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’]; var TGA_12501_15000 = [‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’]; var TGA_15001_20000 = [‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’]; var TGA_20001_30000 = [‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’]; var TGA_30001_40000 = [‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’]; var TGA_40000 = [‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’]; var TGA_NFAFSA = [‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’]; POA_Total = [‘21000′,’21000’]; POA_TRF = [‘19200′,’19200’]; POA_BS = [‘1800′,’1800’]; POA_RB = [‘0′,’0’]; POA_O = [‘0′,’0’]; TGA_0 = [‘165′,’13’]; TGA_1_1000 = [‘3′,’1’]; TGA_1001_2500 = [‘2′,’1’]; TGA_2501_5000 = [‘4′,’1’]; TGA_5001_7500 = [‘4′,’1’]; TGA_7501_10000 = [‘2′,’1’]; TGA_10001_12500 = [‘2′,’1’]; TGA_12501_15000 = [‘1′,’1’]; TGA_15001_20000 = [‘1′,’1’]; TGA_20001_30000 = [‘1′,’1’]; TGA_30001_40000 = [‘1′,’1’]; TGA_40000 = [‘0′,’0’]; TGA_NFAFSA = [‘0′,’0’]; // Step id Defenition // 1 Age, Living Status, Residency Status // 2 Marital Status, Number of Children // 3 Dependent // 4 Independent // 5 Summary page // 6 OUTPUT PAGE function GoNext() { var imgJavaScriptNote = document.getElementById(‘imgJavaScriptNote’); if(imgJavaScriptNote) { imgJavaScriptNote.style.display = ‘none’; } // Variable that tells us if we need to dispaly only 2 radio buttons for “Dependent: Number of Family” var showOnly2RbForNumberInFamily = false; if (currentstepid) { if (currentstepid == “0”) { GoTo(“1”); return; } else if (currentstepid == “1”) { var tmp_financialAid = GetRadioButtonValues(“rb_financialaid”).value; // Financial Aid var tmp_age = GetTextBoxValue(“txt_age”); // Age // Living Status if (npc1_livingstatus != “-1”) { if (npc1_isdefaultlivingstatus == “0”) { npc1_livingstatus = GetRadioButtonValues(“rb_livingstatus”).value; } } // Residency Status if (npc1_residencystatus != “-1”) { if (npc1_isdefaultresidencystatus == “0”) { npc1_residencystatus = GetRadioButtonValues(“rb_residencystatus”).value; } } // Validate if (tmp_financialAid == “” || tmp_age == “” || npc1_livingstatus == “” || npc1_residencystatus == “”) { alert(“Please answer all questions before proceeding.”); return; } if (!IsInteger(tmp_age)) { alert(“Please enter integers only.”); return; } // Save entered values into dictionary dict[‘financialAid’].active = true; dict[‘financialAid’].intValue = tmp_financialAid; dict[‘age’].active = true; dict[‘age’].intValue = tmp_age; if (npc1_livingstatus != “-1”) { if (npc1_isdefaultlivingstatus == “0”) { dict[‘livingStatus’].active = true; dict[‘livingStatus’][‘textValue’] = GetRadioButtonValues(“rb_livingstatus”).label.getAttribute(‘title’); } } if (npc1_residencystatus != “-1”) { if (npc1_isdefaultresidencystatus == “0”) { dict[‘residencyStatus’].active = true; dict[‘residencyStatus’][‘textValue’] = GetRadioButtonValues(“rb_residencystatus”).label.getAttribute(‘title’); } } // Rules if (dict[‘financialAid’].intValue == “1”) { GenerateSummary(); GoTo(“5″); } else { // Hide/show marital status depending on age if (dict[‘age’].intValue*1 > 23) { var tbl = document.getElementById(‘tblMaritalStatusQuestion’); if (tbl) { tbl.style.display = ‘none’; } } else { var tbl = document.getElementById(‘tblMaritalStatusQuestion’); if (tbl) { tbl.style.display = ”; } } GoTo(“2”); // Change: was 4 } return; } else if (currentstepid == “2”) { // Marital Status var tmp_maritalStatus; if (dict[‘age’].intValue*1 < 24) { tmp_maritalStatus = GetRadioButtonValues("rb_maritalstatus").value; dict['maritalStatus'].active = true; } else { dict['maritalStatus'].active = false; } // Number of Children var tmp_numberOfChildren = GetRadioButtonValues("rb_numberofchildren").value; // Validate var showError = false; if (dict['age'].intValue * 1 < 24 && tmp_maritalStatus == "") { showError = true; } if (tmp_numberOfChildren == "") { showError = true; } if (showError == true) { alert("Please answer all questions before proceeding."); return; } // Save entered values into dictionary dict['maritalStatus'].intValue = tmp_maritalStatus; dict['numberOfChildren'].active = true; dict['numberOfChildren'].intValue = tmp_numberOfChildren; // For independent with children, display additional radio buttons with 'Number in Family' var divNumInFamilyRadiobuttons = document.getElementById('divNumInFamilyWithChildren'); // For independent there are 2 different hints: with children and without var spanNumInFamilyHint = document.getElementById('spanNumInFamilyHint'); if (spanNumInFamilyHint) spanNumInFamilyHint.style.display = 'none'; var spanNumInFamilyHintWithChildren = document.getElementById('spanNumInFamilyHintWithChildren'); if (spanNumInFamilyHintWithChildren) spanNumInFamilyHintWithChildren.style.display = 'none'; // For independent we have 2 different scenarios for number on college: 'Two' and 'Two or more' var spanTwo = document.getElementById('spanIndNumInCollegeTwo'); var spanTwoOrMore = document.getElementById('spanIndNumInCollegeTwoOrMore'); var divFirstOptionForNumInFamilyWithChildren = document.getElementById('divFirstOptionForNumInFamilyWithChildren'); spanTwo.style.display = 'none'; spanTwoOrMore.style.display = 'none'; divFirstOptionForNumInFamilyWithChildren.style.display = ''; // Rules if (dict['age'].intValue * 1 > 23) { var divNumInFWithCh = document.getElementById(‘divNumInFamilyWithChildren’); if (dict[‘maritalStatus’].intValue * 1 > 0) { // show options for student with children if (divNumInFWithCh) { divNumInFWithCh.style.display = ”; } } else { // hide options for student with children if (divNumInFWithCh) { divNumInFWithCh.style.display = ‘none’; } } dict.isDependent = false; if (dict[‘numberOfChildren’].intValue * 1 == 1) { if (spanTwo) { spanTwo.style.display = ‘none’; } if (spanTwoOrMore) { spanTwoOrMore.style.display = ”; } if (divNumInFamilyRadiobuttons) { divNumInFamilyRadiobuttons.style.display = ”; } if (spanNumInFamilyHintWithChildren) { spanNumInFamilyHintWithChildren.style.display = ”; } if (divFirstOptionForNumInFamilyWithChildren) { divFirstOptionForNumInFamilyWithChildren.style.display = ‘none’; } // This flag tells us that for “Number in Family” we should display more than 2 radio buttons showOnly2RbForNumberInFamily = false; // If user selected before “Number in College: Two” and now we display “Two or More”, we need to reset radio buttons var rbTwoOrMore = GetRadioButtonValues(“rb_indnumincollege”).value.split(‘|’); if(rbTwoOrMore && rbTwoOrMore[0] == “Two”) ResetRadioButton(‘rb_indnumincollege’); } else { if (spanTwo) { spanTwo.style.display = ”; } if (spanTwoOrMore) { spanTwoOrMore.style.display = ‘none’; } if (divNumInFamilyRadiobuttons) { divNumInFamilyRadiobuttons.style.display = ‘none’; } if (spanNumInFamilyHint) { spanNumInFamilyHint.style.display = ”; } if (divFirstOptionForNumInFamilyWithChildren) { divFirstOptionForNumInFamilyWithChildren.style.display = ”; } // This flag tells us that for “Number in Family” we should display only 2 radio buttons showOnly2RbForNumberInFamily = true; // If user selected before “Number in College: Two or More” and now we display “Two”, we need to reset radio buttons var rbTwoOrMore = GetRadioButtonValues(“rb_indnumincollege”).value.split(‘|’); if(rbTwoOrMore && rbTwoOrMore[0] == “Two or more”) ResetRadioButton(‘rb_indnumincollege’); } if (showOnly2RbForNumberInFamily == true) { var prevSelectedNumOfFamily = GetRadioButtonValues(“rb_indnuminfamily”).value.split(‘|’); if (prevSelectedNumOfFamily) { if (prevSelectedNumOfFamily[1] > 2) ResetRadioButton(‘rb_indnuminfamily’); } } GoTo(‘4’); } else { if (dict[‘numberOfChildren’].intValue * 1 > 0 || dict[‘maritalStatus’].intValue * 1 > 0) { dict.isDependent = false; if (dict[‘numberOfChildren’].intValue * 1 > 0) showOnly2RbForNumberInFamily = false; else showOnly2RbForNumberInFamily = true; if(showOnly2RbForNumberInFamily == true) { var prevSelectedNumOfFamily = GetRadioButtonValues(“rb_indnuminfamily”).value.split(‘|’); if (prevSelectedNumOfFamily) { if (prevSelectedNumOfFamily[1] > 2) ResetRadioButton(‘rb_indnuminfamily’); } } if (dict[‘numberOfChildren’].intValue * 1 == 1) { if (spanTwo) { spanTwo.style.display = ‘none’; } if (spanTwoOrMore) { spanTwoOrMore.style.display = ”; } if (divNumInFamilyRadiobuttons) { divNumInFamilyRadiobuttons.style.display = ”; } if (spanNumInFamilyHintWithChildren) { spanNumInFamilyHintWithChildren.style.display = ”; } if (divFirstOptionForNumInFamilyWithChildren) { divFirstOptionForNumInFamilyWithChildren.style.display = ‘none’; } // If user selected before “Number in College: Two” and now we display “Two or More”, we need to reset radio buttons var rbTwoOrMore = GetRadioButtonValues(“rb_indnumincollege”).value.split(‘|’); if(rbTwoOrMore && rbTwoOrMore[0] == “Two”) ResetRadioButton(‘rb_indnumincollege’); } else { if (spanTwo) { spanTwo.style.display = ”; } if (spanTwoOrMore) { spanTwoOrMore.style.display = ‘none’; } if (divNumInFamilyRadiobuttons) { divNumInFamilyRadiobuttons.style.display = ‘none’; } if (spanNumInFamilyHint) { spanNumInFamilyHint.style.display = ”; } if (divFirstOptionForNumInFamilyWithChildren) { divFirstOptionForNumInFamilyWithChildren.style.display = ”; } // If user selected before “Number in College: Two or More” and now we display “Two”, we need to reset radio buttons var rbTwoOrMore = GetRadioButtonValues(“rb_indnumincollege”).value.split(‘|’); if(rbTwoOrMore && rbTwoOrMore[0] == “Two or more”) ResetRadioButton(‘rb_indnumincollege’); } GoTo(“4”); } else { dict.isDependent = true; GoTo(“3”); } } return; } else if (currentstepid == “3”) { var arrNumInFamily = GetRadioButtonValues(“rb_numinfamily_dep”).value.split(‘|’); var arrNumInCollege = GetRadioButtonValues(“rb_numincollege_dep”).value.split(‘|’); var tmp_numberinfamily = arrNumInFamily[0]; var tmp_numberincollege = arrNumInCollege[0]; var tmp_householdincome = GetRadioButtonValues(“rb_householdincome_dep”).value; // Validate if (tmp_numberinfamily == “” || tmp_numberincollege == “” || tmp_householdincome == “”) { alert(“Please answer all questions before proceeding.”); return; } if (arrNumInCollege[1] * 1 >= arrNumInFamily[1] * 1) { alert(‘The Number in College must be less than the specified Number in Family.’); return; } // Save entered values into dictionary dict[‘numberInFamily’].active = true; dict[‘numberInFamily’].textValue = tmp_numberinfamily; dict[‘numberInFamily’].intValue = arrNumInFamily[1]*1; dict[‘numberInCollege’].active = true; dict[‘numberInCollege’].textValue = tmp_numberincollege; dict[‘numberInCollege’].intValue = arrNumInCollege[1]*1; dict[‘householdIncome’].active = true; dict[‘householdIncome’].intValue = tmp_householdincome * 1; GenerateSummary(); GoTo(“5”); return; } else if (currentstepid == “4”) { var arrNumInFamily = GetRadioButtonValues(“rb_indnuminfamily”).value.split(‘|’); var arrNumInCollege = GetRadioButtonValues(“rb_indnumincollege”).value.split(‘|’); var tmp_numberinfamily = arrNumInFamily[0]; var tmp_numberincollege = arrNumInCollege[0]; var tmp_householdincome = GetRadioButtonValues(“rb_householdincome_ind”).value; // Validate if (tmp_numberinfamily == “” || tmp_numberincollege == “” || tmp_householdincome == “”) { alert(“Please answer all questions before proceeding.”); return; } if (arrNumInCollege[1] * 1 > arrNumInFamily[1] * 1) { alert(‘The Number in College must be less than or equal to the specified Number in Family.’); return; } // Save entered values into dictionary dict[‘numberInFamily’].active = true; dict[‘numberInFamily’].textValue = tmp_numberinfamily; dict[‘numberInFamily’].intValue = arrNumInFamily[1]*1; dict[‘numberInCollege’].active = true; dict[‘numberInCollege’].textValue = tmp_numberincollege; dict[‘numberInCollege’].intValue = arrNumInCollege[1]*1; dict[‘householdIncome’].active = true; dict[‘householdIncome’].intValue = tmp_householdincome * 1; GenerateSummary(); GoTo(“5”); return; } else if(currentstepid == “5”) { GenerateReport(); GoTo(“6”); } } } function GoTo(stepid) { if (typeof stepid != ‘undefined’) { var divWithContent = document.getElementById(‘dv_npc_s’ + stepid); var stepTitle = document.getElementById(‘dv_npc_s’ + stepid + ‘_t’); var stepnumber = document.getElementById(“s_step” + stepid); var dv_npc_s6_r = document.getElementById(“dv_npc_s”+stepid+”_r”); if ((divWithContent && stepTitle && stepnumber) || (divWithContent && stepid==”0″)) { // Handle Step Number if (stepid == “0”) { // Going Back to Step #0 openInstitutionNameWindow(); npc_step = “0”; } else if (stepid * 1 > currentstepid) { // next npc_step = npc_step * 1 + 1; } else { // previous npc_step = npc_step * 1 – 1; } // Write step number to span element if (stepid != “0”) { stepnumber.innerHTML = npc_step; } // Show/Hide Step – Change Step HideAllSteps(); divWithContent.style.display = “block”; if (stepid != “0”) { stepTitle.style.display = “block”; } if (stepid == “6”) { dv_npc_s6_r.style.display = “block”; var s_step6_h1 = document.getElementById(“s_step6_h1”); var s_step6_h2 = document.getElementById(“s_step6_h2”); if (s_step6_h1 && s_step6_h2) { if (npc1_financialaid * 1 == 0) { s_step6_h1.style.display = “block”; s_step6_h2.style.display = “none”; } else { s_step6_h1.style.display = “none”; s_step6_h2.style.display = “block”; } } } currentstepid = stepid; } } } function GoPrevious() { var imgJavaScriptNote = document.getElementById(‘imgJavaScriptNote’); if(imgJavaScriptNote) { imgJavaScriptNote.style.display = ‘none’; } if(currentstepid == ‘1’) { if(imgJavaScriptNote) { imgJavaScriptNote.style.display = ”; } } if (currentstepid != ‘5’ && currentstepid != ‘4’) { GoTo(” + (currentstepid * 1 – 1)); } else if (currentstepid == ‘4’) { GoTo(‘2’); } else { if (dict.isDependent == true) GoTo(‘3’); else GoTo(‘4’); } } function GenerateReport() { var efc = 0; if (dict[‘financialAid’].intValue * 1 == 0) { efc = GetEFC(); } var lookup_column = “-1”; if (npc1_livingstatus == “-1”) { lookup_column = npc1_livingstatus; } else { var res_status = 0; if (npc1_residencystatus != “-1”) { res_status = npc1_residencystatus; } lookup_column = numberoflivingstatus * 1 * res_status * 1 + npc1_livingstatus * 1; } if (lookup_column == “-1”) { return; } var s_etpoa = document.getElementById(“s_etpoa”); var s_etf = document.getElementById(“s_etf”); var s_erb = document.getElementById(“s_erb”); var s_ebs = document.getElementById(“s_ebs”); var s_eo = document.getElementById(“s_eo”); var s_etga = document.getElementById(“s_etga”); var s_enp = document.getElementById(“s_enp”); var x = 0; var y = 0; if (s_etpoa) { x = POA_Total[lookup_column]; s_etpoa.innerHTML = formatCurrency(x); } if (s_etf) { s_etf.innerHTML = formatCurrency(POA_TRF[lookup_column]); } if (s_erb) { s_erb.innerHTML = formatCurrency(POA_RB[lookup_column]); } if (s_ebs) { s_ebs.innerHTML = formatCurrency(POA_BS[lookup_column]); } if (s_eo) { s_eo.innerHTML = formatCurrency(POA_O[lookup_column]); } if (s_etga) { if (dict[‘financialAid’].intValue * 1 == 1) { // NON-FAFSA y = TGA_NFAFSA[lookup_column]; } else if (efc * 1 == 0) { y = TGA_0[lookup_column]; } else if (efc * 1 >= 1 && efc * 1 = 1 && efc * 1 = 1 && efc * 1 = 5001 && efc * 1 = 7501 && efc * 1 = 10001 && efc * 1 = 12501 && efc * 1 = 15001 && efc * 1 = 20001 && efc * 1 = 30001 && efc * 1 = 40001) { y = TGA_40000[lookup_column]; } s_etga.innerHTML = formatCurrency(y); } if (s_enp) { var z = x * 1 – y * 1; s_enp.innerHTML = formatCurrency(z); } } function GetEFC() { var efc = 0; if(dict.isDependent == true) { var arrayLength = efcDependent.length; for(var i=0; i