var Ent = false var e = new Array(100) var Inc = new Array(); var One = new Array(); var Two = new Array(); var Three = new Array(); var Four = new Array(); var Five = new Array(); var Six = new Array(); Inc[1] = 550;One[1] = 50;Two[1] = 51;Three[1] = 51;Four[1] = 52;Five[1] = 52;Six[1] = 53; Inc[2] = 600;One[2] = 82;Two[2] = 83;Three[2] = 84;Four[2] = 85;Five[2] = 86;Six[2] = 87; Inc[3] = 650;One[3] = 112;Two[3] = 113;Three[3] = 114;Four[3] = 115;Five[3] = 116;Six[3] = 118; Inc[4] = 700;One[4] = 141;Two[4] = 142;Three[4] = 144;Four[4] = 145;Five[4] = 147;Six[4] = 148; Inc[5] = 750;One[5] = 151;Two[5] = 172;Three[5] = 173;Four[5] = 175;Five[5] = 177;Six[5] = 179; Inc[6] = 800;One[6] = 158;Two[6] = 201;Three[6] = 203;Four[6] = 205;Five[6] = 208;Six[6] = 210; Inc[7] = 850;One[7] = 166;Two[7] = 230;Three[7] = 233;Four[7] = 235;Five[7] = 238;Six[7] = 240; Inc[8] = 900;One[8] = 173;Two[8] = 259;Three[8] = 262;Four[8] = 265;Five[8] = 268;Six[8] = 271; Inc[9] = 950;One[9] = 180;Two[9] = 279;Three[9] = 291;Four[9] = 294;Five[9] = 298;Six[9] = 301; Inc[10] = 1000;One[10] = 187;Two[10] = 290;Three[10] = 320;Four[10] = 324;Five[10] = 327;Six[10] = 331; Inc[11] = 1050;One[11] = 194;Two[11] = 301;Three[11] = 350;Four[11] = 354;Five[11] = 357;Six[11] = 361; Inc[12] = 1100;One[12] = 201;Two[12] = 312;Three[12] = 379;Four[12] = 383;Five[12] = 387;Six[12] = 391; Inc[13] = 1150;One[13] = 208;Two[13] = 323;Three[13] = 405;Four[13] = 413;Five[13] = 417;Six[13] = 422; Inc[14] = 1200;One[14] = 215;Two[14] = 334;Three[14] = 418;Four[14] = 442;Five[14] = 447;Six[14] = 452; Inc[15] = 1250;One[15] = 222;Two[15] = 345;Three[15] = 432;Four[15] = 472;Five[15] = 477;Six[15] = 482; Inc[16] = 1300;One[16] = 229;Two[16] = 356;Three[16] = 445;Four[16] = 502;Five[16] = 508;Six[16] = 514; Inc[17] = 1350;One[17] = 236;Two[17] = 367;Three[17] = 459;Four[17] = 518;Five[17] = 543;Six[17] = 549; Inc[18] = 1400;One[18] = 243;Two[18] = 378;Three[18] = 474;Four[18] = 534;Five[18] = 577;Six[18] = 584; Inc[19] = 1450;One[19] = 251;Two[19] = 390;Three[19] = 488;Four[19] = 550;Five[19] = 599;Six[19] = 618; Inc[20] = 1500;One[20] = 257;Two[20] = 399;Three[20] = 500;Four[20] = 564;Five[20] = 614;Six[20] = 648; Inc[21] = 1550;One[21] = 263;Two[21] = 409;Three[21] = 512;Four[21] = 577;Five[21] = 629;Six[21] = 672; Inc[22] = 1600;One[22] = 269;Two[22] = 418;Three[22] = 524;Four[22] = 590;Five[22] = 643;Six[22] = 688; Inc[23] = 1650;One[23] = 275;Two[23] = 428;Three[23] = 536;Four[23] = 604;Five[23] = 658;Six[23] = 704; Inc[24] = 1700;One[24] = 281;Two[24] = 437;Three[24] = 548;Four[24] = 617;Five[24] = 672;Six[24] = 719; Inc[25] = 1750;One[25] = 287;Two[25] = 447;Three[25] = 560;Four[25] = 631;Five[25] = 687;Six[25] = 735; Inc[26] = 1800;One[26] = 294;Two[26] = 456;Three[26] = 571;Four[26] = 644;Five[26] = 701;Six[26] = 750; Inc[27] = 1850;One[27] = 300;Two[27] = 466;Three[27] = 583;Four[27] = 657;Five[27] = 716;Six[27] = 766; Inc[28] = 1900;One[28] = 306;Two[28] = 475;Three[28] = 595;Four[28] = 671;Five[28] = 730;Six[28] = 781; Inc[29] = 1950;One[29] = 312;Two[29] = 485;Three[29] = 607;Four[29] = 684;Five[29] = 745;Six[29] = 797; Inc[30] = 2000;One[30] = 318;Two[30] = 495;Three[30] = 619;Four[30] = 698;Five[30] = 760;Six[30] = 813; Inc[31] = 2050;One[31] = 325;Two[31] = 505;Three[31] = 632;Four[31] = 712;Five[31] = 775;Six[31] = 829; Inc[32] = 2100;One[32] = 331;Two[32] = 514;Three[32] = 644;Four[32] = 726;Five[32] = 790;Six[32] = 846; Inc[33] = 2150;One[33] = 338;Two[33] = 524;Three[33] = 656;Four[33] = 740;Five[33] = 806;Six[33] = 862; Inc[34] = 2200;One[34] = 344;Two[34] = 534;Three[34] = 669;Four[34] = 754;Five[34] = 821;Six[34] = 878; Inc[35] = 2250;One[35] = 350;Two[35] = 544;Three[35] = 681;Four[35] = 768;Five[35] = 836;Six[35] = 894; Inc[36] = 2300;One[36] = 357;Two[36] = 554;Three[36] = 694;Four[36] = 782;Five[36] = 852;Six[36] = 911; Inc[37] = 2350;One[37] = 363;Two[37] = 563;Three[37] = 705;Four[37] = 795;Five[37] = 865;Six[37] = 925; Inc[38] = 2400;One[38] = 368;Two[38] = 572;Three[38] = 716;Four[38] = 807;Five[38] = 879;Six[38] = 940; Inc[39] = 2450;One[39] = 374;Two[39] = 580;Three[39] = 727;Four[39] = 819;Five[39] = 893;Six[39] = 954; Inc[40] = 2500;One[40] = 380;Two[40] = 589;Three[40] = 738;Four[40] = 832;Five[40] = 906;Six[40] = 969; Inc[41] = 2550;One[41] = 386;Two[41] = 598;Three[41] = 749;Four[41] = 844;Five[41] = 920;Six[41] = 983; Inc[42] = 2600;One[42] = 391;Two[42] = 607;Three[42] = 760;Four[42] = 857;Five[42] = 933;Six[42] = 998; Inc[43] = 2650;One[43] = 397;Two[43] = 616;Three[43] = 771;Four[43] = 869;Five[43] = 947;Six[43] = 1012; Inc[44] = 2700;One[44] = 403;Two[44] = 625;Three[44] = 782;Four[44] = 882;Five[44] = 961;Six[44] = 1027; Inc[45] = 2750;One[45] = 409;Two[45] = 633;Three[45] = 793;Four[45] = 894;Five[45] = 974;Six[45] = 1042; Inc[46] = 2800;One[46] = 414;Two[46] = 642;Three[46] = 804;Four[46] = 907;Five[46] = 988;Six[46] = 1056; Inc[47] = 2850;One[47] = 420;Two[47] = 651;Three[47] = 815;Four[47] = 919;Five[47] = 1002;Six[47] = 1071; Inc[48] = 2900;One[48] = 426;Two[48] = 660;Three[48] = 826;Four[48] = 931;Five[48] = 1015;Six[48] = 1085; Inc[49] = 2950;One[49] = 431;Two[49] = 669;Three[49] = 837;Four[49] = 944;Five[49] = 1029;Six[49] = 1100; Inc[50] = 3000;One[50] = 437;Two[50] = 677;Three[50] = 848;Four[50] = 956;Five[50] = 1042;Six[50] = 1114; Inc[51] = 3050;One[51] = 443;Two[51] = 686;Three[51] = 859;Four[51] = 969;Five[51] = 1056;Six[51] = 1129; Inc[52] = 3100;One[52] = 449;Two[52] = 695;Three[52] = 870;Four[52] = 981;Five[52] = 1070;Six[52] = 1143; Inc[53] = 3150;One[53] = 454;Two[53] = 704;Three[53] = 881;Four[53] = 994;Five[53] = 1083;Six[53] = 1158; Inc[54] = 3200;One[54] = 459;Two[54] = 712;Three[54] = 891;Four[54] = 1005;Five[54] = 1096;Six[54] = 1171; Inc[55] = 3250;One[55] = 464;Two[55] = 720;Three[55] = 901;Four[55] = 1016;Five[55] = 1108;Six[55] = 1185; Inc[56] = 3300;One[56] = 469;Two[56] = 728;Three[56] = 911;Four[56] = 1028;Five[56] = 1121;Six[56] = 1198; Inc[57] = 3350;One[57] = 475;Two[57] = 736;Three[57] = 922;Four[57] = 1039;Five[57] = 1133;Six[57] = 1211; Inc[58] = 3400;One[58] = 480;Two[58] = 745;Three[58] = 932;Four[58] = 1050;Five[58] = 1145;Six[58] = 1225; Inc[59] = 3450;One[59] = 485;Two[59] = 753;Three[59] = 942;Four[59] = 1062;Five[59] = 1158;Six[59] = 1238; Inc[60] = 3500;One[60] = 490;Two[60] = 761;Three[60] = 952;Four[60] = 1073;Five[60] = 1170;Six[60] = 1252; Inc[61] = 3550;One[61] = 495;Two[61] = 769;Three[61] = 962;Four[61] = 1085;Five[61] = 1183;Six[61] = 1265; Inc[62] = 3600;One[62] = 500;Two[62] = 777;Three[62] = 972;Four[62] = 1096;Five[62] = 1195;Six[62] = 1278; Inc[63] = 3650;One[63] = 505;Two[63] = 785;Three[63] = 982;Four[63] = 1107;Five[63] = 1208;Six[63] = 1292; Inc[64] = 3700;One[64] = 511;Two[64] = 794;Three[64] = 994;Four[64] = 1120;Five[64] = 1222;Six[64] = 1307; Inc[65] = 3750;One[65] = 517;Two[65] = 803;Three[65] = 1005;Four[65] = 1133;Five[65] = 1236;Six[65] = 1322; Inc[66] = 3800;One[66] = 523;Two[66] = 813;Three[66] = 1017;Four[66] = 1146;Five[66] = 1250;Six[66] = 1337; Inc[67] = 3850;One[67] = 529;Two[67] = 822;Three[67] = 1028;Four[67] = 1159;Five[67] = 1264;Six[67] = 1352; Inc[68] = 3900;One[68] = 534;Two[68] = 831;Three[68] = 1040;Four[68] = 1172;Five[68] = 1278;Six[68] = 1367; Inc[69] = 3950;One[69] = 540;Two[69] = 840;Three[69] = 1051;Four[69] = 1185;Five[69] = 1293;Six[69] = 1382; Inc[70] = 4000;One[70] = 546;Two[70] = 849;Three[70] = 1063;Four[70] = 1197;Five[70] = 1307;Six[70] = 1397; Inc[71] = 4050;One[71] = 552;Two[71] = 858;Three[71] = 1074;Four[71] = 1210;Five[71] = 1321;Six[71] = 1412; Inc[72] = 4100;One[72] = 558;Two[72] = 868;Three[72] = 1085;Four[72] = 1223;Five[72] = 1335;Six[72] = 1427; Inc[73] = 4150;One[73] = 563;Two[73] = 877;Three[73] = 1097;Four[73] = 1236;Five[73] = 1349;Six[73] = 1443; Inc[74] = 4200;One[74] = 569;Two[74] = 886;Three[74] = 1108;Four[74] = 1249;Five[74] = 1363;Six[74] = 1458; Inc[75] = 4250;One[75] = 575;Two[75] = 895;Three[75] = 1120;Four[75] = 1262;Five[75] = 1377;Six[75] = 1473; Inc[76] = 4300;One[76] = 581;Two[76] = 904;Three[76] = 1131;Four[76] = 1275;Five[76] = 1391;Six[76] = 1488; Inc[77] = 4350;One[77] = 587;Two[77] = 913;Three[77] = 1143;Four[77] = 1288;Five[77] = 1405;Six[77] = 1503; Inc[78] = 4400;One[78] = 592;Two[78] = 923;Three[78] = 1154;Four[78] = 1300;Five[78] = 1419;Six[78] = 1518; Inc[79] = 4450;One[79] = 598;Two[79] = 931;Three[79] = 1159;Four[79] = 1313;Five[79] = 1433;Six[79] = 1532; Inc[80] = 4500;One[80] = 604;Two[80] = 940;Three[80] = 1170;Four[80] = 1325;Five[80] = 1446;Six[80] = 1546; Inc[81] = 4550;One[81] = 609;Two[81] = 948;Three[81] = 1180;Four[81] = 1337;Five[81] = 1458;Six[81] = 1560; Inc[82] = 4600;One[82] = 614;Two[82] = 956;Three[82] = 1190;Four[82] = 1348;Five[82] = 1471;Six[82] = 1573; Inc[83] = 4650;One[83] = 619;Two[83] = 964;Three[83] = 1200;Four[83] = 1359;Five[83] = 1483;Six[83] = 1586; Inc[84] = 4700;One[84] = 624;Two[84] = 972;Three[84] = 1209;Four[84] = 1370;Five[84] = 1495;Six[84] = 1598; Inc[85] = 4750;One[85] = 629;Two[85] = 980;Three[85] = 1219;Four[85] = 1381;Five[85] = 1507;Six[85] = 1611; Inc[86] = 4800;One[86] = 635;Two[86] = 987;Three[86] = 1229;Four[86] = 1392;Five[86] = 1519;Six[86] = 1624; Inc[87] = 4850;One[87] = 640;Two[87] = 995;Three[87] = 1239;Four[87] = 1403;Five[87] = 1531;Six[87] = 1637; Inc[88] = 4900;One[88] = 645;Two[88] = 1003;Three[88] = 1249;Four[88] = 1414;Five[88] = 1543;Six[88] = 1650; Inc[89] = 4950;One[89] = 650;Two[89] = 1011;Three[89] = 1258;Four[89] = 1425;Five[89] = 1555;Six[89] = 1663; Inc[90] = 5000;One[90] = 655;Two[90] = 1019;Three[90] = 1268;Four[90] = 1436;Five[90] = 1567;Six[90] = 1676; Inc[91] = 5050;One[91] = 660;Two[91] = 1027;Three[91] = 1278;Four[91] = 1447;Five[91] = 1579;Six[91] = 1689; Inc[92] = 5100;One[92] = 665;Two[92] = 1035;Three[92] = 1288;Four[92] = 1458;Five[92] = 1591;Six[92] = 1701; Inc[93] = 5150;One[93] = 670;Two[93] = 1042;Three[93] = 1298;Four[93] = 1469;Five[93] = 1604;Six[93] = 1714; Inc[94] = 5200;One[94] = 675;Two[94] = 1050;Three[94] = 1307;Four[94] = 1481;Five[94] = 1616;Six[94] = 1727; Inc[95] = 5250;One[95] = 681;Two[95] = 1058;Three[95] = 1317;Four[95] = 1492;Five[95] = 1628;Six[95] = 1740; Inc[96] = 5300;One[96] = 686;Two[96] = 1066;Three[96] = 1327;Four[96] = 1503;Five[96] = 1640;Six[96] = 1753; Inc[97] = 5350;One[97] = 691;Two[97] = 1074;Three[97] = 1337;Four[97] = 1514;Five[97] = 1652;Six[97] = 1766; Inc[98] = 5400;One[98] = 696;Two[98] = 1082;Three[98] = 1346;Four[98] = 1525;Five[98] = 1664;Six[98] = 1779; Inc[99] = 5450;One[99] = 701;Two[99] = 1090;Three[99] = 1356;Four[99] = 1536;Five[99] = 1676;Six[99] = 1792; Inc[100] = 5500;One[100] = 706;Two[100] = 1097;Three[100] = 1366;Four[100] = 1547;Five[100] = 1688;Six[100] = 1805; Inc[101] = 5550;One[101] = 711;Two[101] = 1105;Three[101] = 1376;Four[101] = 1558;Five[101] = 1700;Six[101] = 1817; Inc[102] = 5600;One[102] = 716;Two[102] = 1113;Three[102] = 1386;Four[102] = 1569;Five[102] = 1712;Six[102] = 1830; Inc[103] = 5650;One[103] = 722;Two[103] = 1121;Three[103] = 1395;Four[103] = 1580;Five[103] = 1724;Six[103] = 1843; Inc[104] = 5700;One[104] = 727;Two[104] = 1129;Three[104] = 1405;Four[104] = 1591;Five[104] = 1737;Six[104] = 1856; Inc[105] = 5750;One[105] = 732;Two[105] = 1137;Three[105] = 1415;Four[105] = 1602;Five[105] = 1749;Six[105] = 1869; Inc[106] = 5800;One[106] = 737;Two[106] = 1145;Three[106] = 1425;Four[106] = 1613;Five[106] = 1761;Six[106] = 1882; Inc[107] = 5850;One[107] = 742;Two[107] = 1152;Three[107] = 1435;Four[107] = 1624;Five[107] = 1773;Six[107] = 1895; Inc[108] = 5900;One[108] = 747;Two[108] = 1160;Three[108] = 1444;Four[108] = 1636;Five[108] = 1785;Six[108] = 1908; Inc[109] = 5950;One[109] = 752;Two[109] = 1168;Three[109] = 1454;Four[109] = 1647;Five[109] = 1797;Six[109] = 1920; Inc[110] = 6000;One[110] = 757;Two[110] = 1176;Three[110] = 1464;Four[110] = 1658;Five[110] = 1809;Six[110] = 1933; Inc[111] = 6050;One[111] = 762;Two[111] = 1184;Three[111] = 1474;Four[111] = 1669;Five[111] = 1821;Six[111] = 1946; Inc[112] = 6100;One[112] = 768;Two[112] = 1192;Three[112] = 1483;Four[112] = 1680;Five[112] = 1833;Six[112] = 1959; Inc[113] = 6150;One[113] = 772;Two[113] = 1198;Three[113] = 1497;Four[113] = 1689;Five[113] = 1843;Six[113] = 1969; Inc[114] = 6200;One[114] = 775;Two[114] = 1203;Three[114] = 1504;Four[114] = 1697;Five[114] = 1851;Six[114] = 1979; Inc[115] = 6250;One[115] = 779;Two[115] = 1209;Three[115] = 1511;Four[115] = 1705;Five[115] = 1860;Six[115] = 1988; Inc[116] = 6300;One[116] = 783;Two[116] = 1214;Three[116] = 1518;Four[116] = 1713;Five[116] = 1869;Six[116] = 1997; Inc[117] = 6350;One[117] = 787;Two[117] = 1220;Three[117] = 1526;Four[117] = 1721;Five[117] = 1878;Six[117] = 2007; Inc[118] = 6400;One[118] = 790;Two[118] = 1226;Three[118] = 1533;Four[118] = 1729;Five[118] = 1886;Six[118] = 2016; Inc[119] = 6450;One[119] = 794;Two[119] = 1231;Three[119] = 1540;Four[119] = 1737;Five[119] = 1895;Six[119] = 2025; Inc[120] = 6500;One[120] = 798;Two[120] = 1237;Three[120] = 1547;Four[120] = 1745;Five[120] = 1904;Six[120] = 2035; Inc[121] = 6550;One[121] = 802;Two[121] = 1243;Three[121] = 1554;Four[121] = 1753;Five[121] = 1913;Six[121] = 2044; Inc[122] = 6600;One[122] = 805;Two[122] = 1248;Three[122] = 1561;Four[122] = 1761;Five[122] = 1922;Six[122] = 2053; Inc[123] = 6650;One[123] = 809;Two[123] = 1254;Three[123] = 1568;Four[123] = 1769;Five[123] = 1930;Six[123] = 2063; Inc[124] = 6700;One[124] = 813;Two[124] = 1259;Three[124] = 1575;Four[124] = 1777;Five[124] = 1939;Six[124] = 2072; Inc[125] = 6750;One[125] = 817;Two[125] = 1265;Three[125] = 1582;Four[125] = 1785;Five[125] = 1948;Six[125] = 2081; Inc[126] = 6800;One[126] = 820;Two[126] = 1271;Three[126] = 1589;Four[126] = 1793;Five[126] = 1957;Six[126] = 2091; Inc[127] = 6850;One[127] = 824;Two[127] = 1276;Three[127] = 1597;Four[127] = 1801;Five[127] = 1965;Six[127] = 2100; Inc[128] = 6900;One[128] = 828;Two[128] = 1282;Three[128] = 1604;Four[128] = 1809;Five[128] = 1974;Six[128] = 2110; Inc[129] = 6950;One[129] = 831;Two[129] = 1287;Three[129] = 1611;Four[129] = 1817;Five[129] = 1983;Six[129] = 2119; Inc[130] = 7000;One[130] = 835;Two[130] = 1293;Three[130] = 1618;Four[130] = 1825;Five[130] = 1992;Six[130] = 2128; Inc[131] = 7050;One[131] = 839;Two[131] = 1299;Three[131] = 1625;Four[131] = 1833;Five[131] = 2000;Six[131] = 2138; Inc[132] = 7100;One[132] = 843;Two[132] = 1304;Three[132] = 1632;Four[132] = 1841;Five[132] = 2009;Six[132] = 2147; Inc[133] = 7150;One[133] = 846;Two[133] = 1310;Three[133] = 1639;Four[133] = 1849;Five[133] = 2018;Six[133] = 2156; Inc[134] = 7200;One[134] = 850;Two[134] = 1315;Three[134] = 1646;Four[134] = 1857;Five[134] = 2027;Six[134] = 2166; Inc[135] = 7250;One[135] = 854;Two[135] = 1321;Three[135] = 1653;Four[135] = 1865;Five[135] = 2035;Six[135] = 2175; Inc[136] = 7300;One[136] = 857;Two[136] = 1326;Three[136] = 1660;Four[136] = 1872;Five[136] = 2043;Six[136] = 2183; Inc[137] = 7350;One[137] = 860;Two[137] = 1331;Three[137] = 1666;Four[137] = 1878;Five[137] = 2050;Six[137] = 2191; Inc[138] = 7400;One[138] = 862;Two[138] = 1336;Three[138] = 1672;Four[138] = 1885;Five[138] = 2057;Six[138] = 2199; Inc[139] = 7450;One[139] = 865;Two[139] = 1340;Three[139] = 1678;Four[139] = 1891;Five[139] = 2064;Six[139] = 2207; Inc[140] = 7500;One[140] = 868;Two[140] = 1345;Three[140] = 1684;Four[140] = 1898;Five[140] = 2072;Six[140] = 2214; Inc[141] = 7550;One[141] = 871;Two[141] = 1350;Three[141] = 1690;Four[141] = 1904;Five[141] = 2079;Six[141] = 2222; Inc[142] = 7600;One[142] = 874;Two[142] = 1355;Three[142] = 1696;Four[142] = 1911;Five[142] = 2086;Six[142] = 2230; Inc[143] = 7650;One[143] = 877;Two[143] = 1359;Three[143] = 1702;Four[143] = 1917;Five[143] = 2093;Six[143] = 2238; Inc[144] = 7700;One[144] = 879;Two[144] = 1364;Three[144] = 1708;Four[144] = 1924;Five[144] = 2100;Six[144] = 2246; Inc[145] = 7750;One[145] = 882;Two[145] = 1369;Three[145] = 1714;Four[145] = 1930;Five[145] = 2107;Six[145] = 2254; Inc[146] = 7800;One[146] = 885;Two[146] = 1374;Three[146] = 1720;Four[146] = 1937;Five[146] = 2114;Six[146] = 2261; Inc[147] = 7850;One[147] = 888;Two[147] = 1378;Three[147] = 1726;Four[147] = 1943;Five[147] = 2122;Six[147] = 2269; Inc[148] = 7900;One[148] = 891;Two[148] = 1383;Three[148] = 1732;Four[148] = 1950;Five[148] = 2129;Six[148] = 2277; Inc[149] = 7950;One[149] = 894;Two[149] = 1388;Three[149] = 1738;Four[149] = 1956;Five[149] = 2136;Six[149] = 2285; Inc[150] = 8000;One[150] = 896;Two[150] = 1393;Three[150] = 1744;Four[150] = 1962;Five[150] = 2143;Six[150] = 2293; Inc[151] = 8050;One[151] = 899;Two[151] = 1397;Three[151] = 1750;Four[151] = 1969;Five[151] = 2150;Six[151] = 2300; Inc[152] = 8100;One[152] = 902;Two[152] = 1402;Three[152] = 1756;Four[152] = 1975;Five[152] = 2157;Six[152] = 2308; Inc[153] = 8150;One[153] = 905;Two[153] = 1407;Three[153] = 1762;Four[153] = 1982;Five[153] = 2164;Six[153] = 2316; Inc[154] = 8200;One[154] = 908;Two[154] = 1412;Three[154] = 1768;Four[154] = 1988;Five[154] = 2171;Six[154] = 2324; Inc[155] = 8250;One[155] = 911;Two[155] = 1417;Three[155] = 1774;Four[155] = 1995;Five[155] = 2179;Six[155] = 2332; Inc[156] = 8300;One[156] = 914;Two[156] = 1421;Three[156] = 1780;Four[156] = 2001;Five[156] = 2186;Six[156] = 2340; Inc[157] = 8350;One[157] = 916;Two[157] = 1426;Three[157] = 1785;Four[157] = 2008;Five[157] = 2193;Six[157] = 2347; Inc[158] = 8400;One[158] = 919;Two[158] = 1431;Three[158] = 1792;Four[158] = 2014;Five[158] = 2200;Six[158] = 2355; Inc[159] = 8450;One[159] = 922;Two[159] = 1434;Three[159] = 1797;Four[159] = 2020;Five[159] = 2206;Six[159] = 2361; Inc[160] = 8500;One[160] = 924;Two[160] = 1438;Three[160] = 1801;Four[160] = 2025;Five[160] = 2212;Six[160] = 2367; Inc[161] = 8550;One[161] = 926;Two[161] = 1441;Three[161] = 1806;Four[161] = 2030;Five[161] = 2217;Six[161] = 2373; Inc[162] = 8600;One[162] = 929;Two[162] = 1445;Three[162] = 1810;Four[162] = 2035;Five[162] = 2222;Six[162] = 2379; Inc[163] = 8650;One[163] = 931;Two[163] = 1448;Three[163] = 1815;Four[163] = 2040;Five[163] = 2228;Six[163] = 2384; Inc[164] = 8700;One[164] = 933;Two[164] = 1452;Three[164] = 1819;Four[164] = 2045;Five[164] = 2233;Six[164] = 2390; Inc[165] = 8750;One[165] = 935;Two[165] = 1455;Three[165] = 1823;Four[165] = 2050;Five[165] = 2239;Six[165] = 2396; Inc[166] = 8800;One[166] = 938;Two[166] = 1459;Three[166] = 1828;Four[166] = 2055;Five[166] = 2244;Six[166] = 2401; Inc[167] = 8850;One[167] = 940;Two[167] = 1462;Three[167] = 1832;Four[167] = 2060;Five[167] = 2249;Six[167] = 2407; Inc[168] = 8900;One[168] = 942;Two[168] = 1466;Three[168] = 1837;Four[168] = 2065;Five[168] = 2255;Six[168] = 2413; Inc[169] = 8950;One[169] = 945;Two[169] = 1469;Three[169] = 1841;Four[169] = 2070;Five[169] = 2260;Six[169] = 2418; Inc[170] = 9000;One[170] = 947;Two[170] = 1473;Three[170] = 1846;Four[170] = 2075;Five[170] = 2266;Six[170] = 2424; Inc[171] = 9050;One[171] = 949;Two[171] = 1476;Three[171] = 1850;Four[171] = 2080;Five[171] = 2271;Six[171] = 2430; Inc[172] = 9100;One[172] = 951;Two[172] = 1480;Three[172] = 1854;Four[172] = 2085;Five[172] = 2276;Six[172] = 2435; Inc[173] = 9150;One[173] = 954;Two[173] = 1483;Three[173] = 1859;Four[173] = 2090;Five[173] = 2282;Six[173] = 2441; Inc[174] = 9200;One[174] = 956;Two[174] = 1487;Three[174] = 1863;Four[174] = 2095;Five[174] = 2287;Six[174] = 2447; Inc[175] = 9250;One[175] = 958;Two[175] = 1490;Three[175] = 1868;Four[175] = 2100;Five[175] = 2293;Six[175] = 2453; Inc[176] = 9300;One[176] = 961;Two[176] = 1494;Three[176] = 1872;Four[176] = 2105;Five[176] = 2298;Six[176] = 2458; Inc[177] = 9350;One[177] = 963;Two[177] = 1497;Three[177] = 1876;Four[177] = 2110;Five[177] = 2303;Six[177] = 2464; Inc[178] = 9400;One[178] = 965;Two[178] = 1501;Three[178] = 1881;Four[178] = 2115;Five[178] = 2309;Six[178] = 2470; Inc[179] = 9450;One[179] = 967;Two[179] = 1504;Three[179] = 1885;Four[179] = 2120;Five[179] = 2314;Six[179] = 2475; Inc[180] = 9500;One[180] = 970;Two[180] = 1507;Three[180] = 1890;Four[180] = 2125;Five[180] = 2320;Six[180] = 2481; Inc[181] = 9550;One[181] = 972;Two[181] = 1511;Three[181] = 1894;Four[181] = 2130;Five[181] = 2325;Six[181] = 2487; Inc[182] = 9600;One[182] = 974;Two[182] = 1514;Three[182] = 1898;Four[182] = 2135;Five[182] = 2330;Six[182] = 2492; Inc[183] = 9650;One[183] = 977;Two[183] = 1518;Three[183] = 1903;Four[183] = 2140;Five[183] = 2336;Six[183] = 2498; Inc[184] = 9700;One[184] = 979;Two[184] = 1521;Three[184] = 1907;Four[184] = 2145;Five[184] = 2341;Six[184] = 2504; Inc[185] = 9750;One[185] = 981;Two[185] = 1525;Three[185] = 1912;Four[185] = 2150;Five[185] = 2347;Six[185] = 2510; Inc[186] = 9800;One[186] = 983;Two[186] = 1528;Three[186] = 1916;Four[186] = 2155;Five[186] = 2352;Six[186] = 2515; Inc[187] = 9850;One[187] = 986;Two[187] = 1532;Three[187] = 1921;Four[187] = 2160;Five[187] = 2357;Six[187] = 2521; Inc[188] = 9900;One[188] = 988;Two[188] = 1535;Three[188] = 1925;Four[188] = 2165;Five[188] = 2363;Six[188] = 2527; Inc[189] = 9950;One[189] = 990;Two[189] = 1539;Three[189] = 1929;Four[189] = 2170;Five[189] = 2368;Six[189] = 2532; Inc[190] = 10000;One[190] = 992;Two[190] = 1542;Three[190] = 1934;Four[190] = 2175;Five[190] = 2374;Six[190] = 2538; function GoFigure() { var ys = new Array(7); var xf = new Array(7); var dxi = new Array(7); var dy = new Array(7); var discrete= new Array(7); var m = new Array(7); var b = new Array(7); var dm = new Array(7); var Db = new Array(7); ys[1] = 50; ys[2] = 51; ys[3] = 51; ys[4] = 52; ys[5] = 52; ys[6] = 53; xf[1] = 700; xf[2] = 900; xf[3] = 1100; xf[4] = 1300; xf[5] = 1400; xf[6] = 1500; dxi[1] = 800; dxi[2] = 1000; dxi[3] = 1200; dxi[4] = 1350; dxi[5] = 1500; dxi[6] = 1600; dy[1] = 151; dy[2] = 279; dy[3] = 405; dy[4] = 502; dy[5] = 599; dy[6] = 672; discrete[1] = 151; discrete[2] = 279; discrete[3] = 405; discrete[4] = 0; discrete[5] = 599; discrete[6] = 672; m[1] = (0.606); m[2] = (0.591666667); m[3] = (0.592727273); m[4] = (0.597); m[5] = (0.607636739); m[6] = (0.619654135); b[1] = (-282.5); b[2] = (-272.5833333); b[3] = (-272); b[4] = (-273.3666667); b[5] = (-279.6680427); b[6] = (-287.1954887); dm[1] = (-0.000566203); dm[2] = (-0.000873738); dm[3] = (-0.001064905); dm[4] = (-0.001220285); dm[5] = (-0.001318213); dm[6] = (-0.001423251); Db[1] = (7.589286797); Db[2] = (11.76161435); Db[3] = (14.57526561); Db[4] = (16.50955456); Db[5] = (17.92688898); Db[6] = (19.2606944); var nodep = document.form.lNP.selectedIndex + 1; var CP = document.form.lC.selectedIndex + 1; var tMWH = parseFloat(document.form.tMWH.value); var tFWH = parseFloat(document.form.tFWH.value); var tMHW = parseFloat(document.form.tMHW.value); var tFHW = parseFloat(document.form.tFHW.value); var tMYW = parseFloat(document.form.tMYW.value); var tHYW = parseFloat(document.form.tHYW.value); var tMMW = parseFloat(document.form.tMMW.value); var tFMW = parseFloat(document.form.tFMW.value); var tMA = parseFloat(document.form.tMA.value); var tFA = parseFloat(document.form.tFA.value); var tMCS = parseFloat(document.form.tMCS.value); var tFCS = parseFloat(document.form.tFCS.value); var tCC = parseFloat(document.form.tCC.value); var tMHI = parseFloat(document.form.tMHI.value); var tFHI = parseFloat(document.form.tFHI.value); if (tMWH != 0) { tMMW = tMHW * tMWH * 52 / 12; document.form.tMMW.value = parseInt(tMMW + .49); } if (tMYW != 0) { tMMW = tMYW / 12; document.form.tMMW.value = parseInt(tMMW + .49); } if (tFWH != 0) { tFMW = tFHW * tFWH * 52 / 12; document.form.tFMW.value = parseInt(tFMW + .49); } if (tHYW != 0) { tFMW = tHYW / 12; document.form.tFMW.value = parseInt(tFMW + .49); } document.form.lCT.value = parseInt((tMMW + tFMW) + .49) document.form.lMA.value = parseInt((tMMW - tMA - tMCS) + .49) document.form.lFA.value = parseInt((tFMW - tFA - tFCS) + .49) document.form.lTA.value = parseInt(((tMMW - tMA - tMCS) + (tFMW - tFA - tFCS)) + .49) document.form.lMP.value = ((tMMW - tMA - tMCS) / ((tMMW - tMA - tMCS) + (tFMW - tFA - tFCS))) * 100 document.form.lFP.value = ((tFMW - tFA - tFCS) / ((tMMW - tMA - tMCS) + (tFMW - tFA - tFCS))) * 100 var pay = parseInt(document.form.lTA.value) if (isNaN(pay)) { pay = 0; } var FSup = 0; if (pay < 500) { document.form.lTE.value = 0; //document.form.tErr.value = 0; document.form.tHC.value = 0; document.form.lTO.value = 0; document.form.lMO.value = 0; document.form.lFO.value = 0; document.form.tMID.value = 0; document.form.tFID.value = 0; document.form.lMR.value = 0; document.form.lFR.value = 0; alert("Table values do not go below $500 per month. The judge decides on these cases!"); return; } if ((pay >= 500) && (pay <= 524)) { FSup = ys[nodep]; } if ((pay >= Inc[1] - 25) && (pay <= Inc[Inc.length - 1])) { for (var n=1; n <= Inc[Inc.length - 1]; n++) { if ((pay >= Inc[n] - 25) && (pay < Inc[n] + 25)) { if (nodep == 1) { FSup = One[n]; break; } if (nodep == 2) { FSup = Two[n]; break; } if (nodep == 3) { FSup = Three[n]; break; } if (nodep == 4) { FSup = Four[n]; break; } if (nodep == 5) { FSup = Five[n]; break; } if (nodep == 6) { FSup = Six[n]; break; } } } } /* if ((pay > 550) && (pay <= xf[nodep])) { FSup = pay * m[nodep] + b[nodep]; } if ((pay > xf[nodep]) && (pay < (dxi[nodep] - 49))) { FSup = discrete[nodep]; } if ((pay >= (dxi[nodep] - 49)) && (pay < 10001)) { var dtc = 0; for (var n = dxi[nodep]; n <= (pay + 24); n += 50) { dtc = dtc + n * dm[nodep] + Db[nodep]; } FSup = dy[nodep] + dtc; } */ if (pay > 10000) { document.form.lTE.value = 0; //document.form.tErr.value = 0; document.form.tHC.value =0; document.form.lTO.value = 0; document.form.lMO.value= 0; document.form.lFO.value= 0; document.form.tMID.value = 0; document.form.tFID.value = 0; document.form.lMR.value = 0; document.form.lFR.value = 0; alert ("Table values do not go above $10,000 per month. The judge decides on these cases!"); return; } FSup = parseInt(FSup + .49); document.form.lTE.value = FSup; //document.form.tErr.value = FSup * .027; document.form.tHC.value = tMHI * 1 + tFHI * 1; document.form.lTO.value = parseInt(FSup * 1 + tCC + document.form.tHC.value * 1 + .49); document.form.lMO.value = parseInt(((document.form.lTO.value) * document.form.lMP.value) / 100 + .49); document.form.lFO.value = parseInt(((document.form.lTO.value) * document.form.lFP.value) / 100 + .49); document.form.tMID.value = tMHI; document.form.tFID.value = tFHI; if (CP == 1) { document.form.lFR.value = parseInt(document.form.lFO.value - document.form.tFID.value + .49); document.form.lMR.value = 0; } if (CP == 2) { document.form.lMR.value = parseInt(document.form.lMO.value - document.form.tMID.value + .49); document.form.lFR.value = 0; } } function Info(b) { if (Ent == false) { Ent = true var Mess = "\*You will only need to enter one of the following:" + "\r" +"\r" Mess += "1. No. of Hours Worked Per Week and Hourly Wage" + "\r"+"\r" Mess += "OR.." + "\r"+"\r" Mess += "2. Yearly Income" + "\r"+"\r" Mess += "OR.." + "\r"+"\r" Mess += "3. Monthly Income." + "\r" +"\r" Mess += "\*The Monthly Income will be calculated if not entered." +"\r\r" SMess = "\*All fields with \"Calculated\" above the field are" + "\r" + "automatically calculated." alert(Mess + SMess) } b.select() } function Disable(t) { for (var i=0; i < el; i++) { if (t.name == e[i]) { if (document.form.elements[i + 1].name.charAt(0) != "c") { document.form.elements[i + 1].focus(); break;} else { document.form.elements[0].focus(); break;} } } } function SetArray() { el = document.form.elements.length for (var i = 0; i < el; i++) { //if (document.form.elements[i].name.charAt(0) == "t") { e[i] = document.form.elements[i].name; //document.writeln(i + " = " + e[i] + "; "); //} } }