var COURSE_SELECTED=false; var crs_lst= new Array(7); var loopcntr=0; crs_lst [loopcntr] = new Array(3); crs_lst [loopcntr][0] = 15 ; crs_lst [loopcntr][1] = 175 ; crs_lst [loopcntr][2] = " 26 June 2008 - 25 July 2008 (18 Places) " ; loopcntr++; crs_lst [loopcntr] = new Array(3); crs_lst [loopcntr][0] = 15 ; crs_lst [loopcntr][1] = 176 ; crs_lst [loopcntr][2] = " 14 July 2008 - 08 Aug 2008 " ; loopcntr++; crs_lst [loopcntr] = new Array(3); crs_lst [loopcntr][0] = 15 ; crs_lst [loopcntr][1] = 177 ; crs_lst [loopcntr][2] = " 30 July 2008 - 29 Aug 2008 (18 Places) " ; loopcntr++; crs_lst [loopcntr] = new Array(3); crs_lst [loopcntr][0] = 15 ; crs_lst [loopcntr][1] = 178 ; crs_lst [loopcntr][2] = " 25 Sep 2008 - 24 Oct 2008 (18 Places) " ; loopcntr++; crs_lst [loopcntr] = new Array(3); crs_lst [loopcntr][0] = 15 ; crs_lst [loopcntr][1] = 179 ; crs_lst [loopcntr][2] = " 06 Nov 2008 - 05 Dec 2008 (18 Places) " ; loopcntr++; crs_lst [loopcntr] = new Array(3); crs_lst [loopcntr][0] = 16 ; crs_lst [loopcntr][1] = 202 ; crs_lst [loopcntr][2] = " 19 Aug 2008 - 18 Dec 2008 (12 Places) " ; loopcntr++; crs_lst [loopcntr] = new Array(3); crs_lst [loopcntr][0] = 17 ; crs_lst [loopcntr][1] = 222 ; crs_lst [loopcntr][2] = " 05 September 2008 (Taster Day) " ; loopcntr++; //************************************************************************** var price_lst= new Array(7); loopcntr=0; price_lst [loopcntr] = new Array(3); price_lst [loopcntr][0] = 175 ; price_lst [loopcntr][1] = 4 ; price_lst [loopcntr][2] = 1050 ; loopcntr++; price_lst [loopcntr] = new Array(3); price_lst [loopcntr][0] = 176 ; price_lst [loopcntr][1] = 4 ; price_lst [loopcntr][2] = 1050 ; loopcntr++; price_lst [loopcntr] = new Array(3); price_lst [loopcntr][0] = 177 ; price_lst [loopcntr][1] = 4 ; price_lst [loopcntr][2] = 1050 ; loopcntr++; price_lst [loopcntr] = new Array(3); price_lst [loopcntr][0] = 178 ; price_lst [loopcntr][1] = 4 ; price_lst [loopcntr][2] = 1050 ; loopcntr++; price_lst [loopcntr] = new Array(3); price_lst [loopcntr][0] = 179 ; price_lst [loopcntr][1] = 4 ; price_lst [loopcntr][2] = 1050 ; loopcntr++; price_lst [loopcntr] = new Array(3); price_lst [loopcntr][0] = 202 ; price_lst [loopcntr][1] = 18 ; price_lst [loopcntr][2] = 925 ; loopcntr++; price_lst [loopcntr] = new Array(3); price_lst [loopcntr][0] = 222 ; price_lst [loopcntr][1] = 0 ; price_lst [loopcntr][2] = 70 ; loopcntr++; //************************************************************************** var Accprice_lst= new Array(108); loopcntr=0; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 1 ; Accprice_lst [loopcntr][2] = 100 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 2 ; Accprice_lst [loopcntr][2] = 200 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 3 ; Accprice_lst [loopcntr][2] = 300 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 4 ; Accprice_lst [loopcntr][2] = 400 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 5 ; Accprice_lst [loopcntr][2] = 500 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 6 ; Accprice_lst [loopcntr][2] = 600 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 7 ; Accprice_lst [loopcntr][2] = 700 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 8 ; Accprice_lst [loopcntr][2] = 800 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 9 ; Accprice_lst [loopcntr][2] = 900 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 10 ; Accprice_lst [loopcntr][2] = 1000 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 11 ; Accprice_lst [loopcntr][2] = 1100 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 12 ; Accprice_lst [loopcntr][2] = 1200 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 13 ; Accprice_lst [loopcntr][2] = 1300 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 14 ; Accprice_lst [loopcntr][2] = 1400 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 15 ; Accprice_lst [loopcntr][2] = 1500 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 16 ; Accprice_lst [loopcntr][2] = 1600 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 17 ; Accprice_lst [loopcntr][2] = 1700 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 18 ; Accprice_lst [loopcntr][2] = 1800 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 19 ; Accprice_lst [loopcntr][2] = 1900 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 20 ; Accprice_lst [loopcntr][2] = 2000 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 21 ; Accprice_lst [loopcntr][2] = 2100 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 22 ; Accprice_lst [loopcntr][2] = 2200 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 23 ; Accprice_lst [loopcntr][2] = 2300 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 24 ; Accprice_lst [loopcntr][2] = 2400 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 25 ; Accprice_lst [loopcntr][2] = 2500 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 26 ; Accprice_lst [loopcntr][2] = 2600 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 27 ; Accprice_lst [loopcntr][2] = 2700 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 28 ; Accprice_lst [loopcntr][2] = 2800 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 29 ; Accprice_lst [loopcntr][2] = 2900 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 30 ; Accprice_lst [loopcntr][2] = 3000 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 31 ; Accprice_lst [loopcntr][2] = 3100 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 32 ; Accprice_lst [loopcntr][2] = 3200 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 33 ; Accprice_lst [loopcntr][2] = 3300 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 34 ; Accprice_lst [loopcntr][2] = 3400 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 35 ; Accprice_lst [loopcntr][2] = 3500 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 36 ; Accprice_lst [loopcntr][2] = 3600 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 37 ; Accprice_lst [loopcntr][2] = 3700 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 38 ; Accprice_lst [loopcntr][2] = 3800 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 39 ; Accprice_lst [loopcntr][2] = 3900 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 40 ; Accprice_lst [loopcntr][2] = 4000 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 41 ; Accprice_lst [loopcntr][2] = 4100 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 42 ; Accprice_lst [loopcntr][2] = 4200 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 43 ; Accprice_lst [loopcntr][2] = 4300 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 44 ; Accprice_lst [loopcntr][2] = 4400 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 45 ; Accprice_lst [loopcntr][2] = 4500 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 46 ; Accprice_lst [loopcntr][2] = 4600 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 47 ; Accprice_lst [loopcntr][2] = 4700 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1118 ; Accprice_lst [loopcntr][1] = 48 ; Accprice_lst [loopcntr][2] = 4800 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 1 ; Accprice_lst [loopcntr][2] = 65 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 2 ; Accprice_lst [loopcntr][2] = 130 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 3 ; Accprice_lst [loopcntr][2] = 195 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 4 ; Accprice_lst [loopcntr][2] = 260 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 5 ; Accprice_lst [loopcntr][2] = 325 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 6 ; Accprice_lst [loopcntr][2] = 390 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 7 ; Accprice_lst [loopcntr][2] = 455 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 8 ; Accprice_lst [loopcntr][2] = 520 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 9 ; Accprice_lst [loopcntr][2] = 585 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 10 ; Accprice_lst [loopcntr][2] = 650 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 11 ; Accprice_lst [loopcntr][2] = 715 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 12 ; Accprice_lst [loopcntr][2] = 780 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 13 ; Accprice_lst [loopcntr][2] = 845 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 14 ; Accprice_lst [loopcntr][2] = 910 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 15 ; Accprice_lst [loopcntr][2] = 975 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 16 ; Accprice_lst [loopcntr][2] = 1040 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 17 ; Accprice_lst [loopcntr][2] = 1105 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 18 ; Accprice_lst [loopcntr][2] = 1170 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 19 ; Accprice_lst [loopcntr][2] = 1235 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 20 ; Accprice_lst [loopcntr][2] = 1300 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 21 ; Accprice_lst [loopcntr][2] = 1365 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 22 ; Accprice_lst [loopcntr][2] = 1430 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 23 ; Accprice_lst [loopcntr][2] = 1495 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 24 ; Accprice_lst [loopcntr][2] = 1560 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 25 ; Accprice_lst [loopcntr][2] = 1625 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 26 ; Accprice_lst [loopcntr][2] = 1690 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 27 ; Accprice_lst [loopcntr][2] = 1755 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 28 ; Accprice_lst [loopcntr][2] = 1820 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 29 ; Accprice_lst [loopcntr][2] = 1885 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 30 ; Accprice_lst [loopcntr][2] = 1950 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 31 ; Accprice_lst [loopcntr][2] = 2015 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 32 ; Accprice_lst [loopcntr][2] = 2080 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 33 ; Accprice_lst [loopcntr][2] = 2145 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 34 ; Accprice_lst [loopcntr][2] = 2210 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 35 ; Accprice_lst [loopcntr][2] = 2275 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 36 ; Accprice_lst [loopcntr][2] = 2340 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 37 ; Accprice_lst [loopcntr][2] = 2405 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 38 ; Accprice_lst [loopcntr][2] = 2470 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 39 ; Accprice_lst [loopcntr][2] = 2535 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 40 ; Accprice_lst [loopcntr][2] = 2600 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 41 ; Accprice_lst [loopcntr][2] = 2665 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 42 ; Accprice_lst [loopcntr][2] = 2730 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 43 ; Accprice_lst [loopcntr][2] = 2795 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 44 ; Accprice_lst [loopcntr][2] = 2860 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 45 ; Accprice_lst [loopcntr][2] = 2925 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 46 ; Accprice_lst [loopcntr][2] = 2990 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 47 ; Accprice_lst [loopcntr][2] = 3055 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1119 ; Accprice_lst [loopcntr][1] = 48 ; Accprice_lst [loopcntr][2] = 3120 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1120 ; Accprice_lst [loopcntr][1] = 1 ; Accprice_lst [loopcntr][2] = 125 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1120 ; Accprice_lst [loopcntr][1] = 2 ; Accprice_lst [loopcntr][2] = 250 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1120 ; Accprice_lst [loopcntr][1] = 3 ; Accprice_lst [loopcntr][2] = 375 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1120 ; Accprice_lst [loopcntr][1] = 4 ; Accprice_lst [loopcntr][2] = 500 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1120 ; Accprice_lst [loopcntr][1] = 5 ; Accprice_lst [loopcntr][2] = 625 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1120 ; Accprice_lst [loopcntr][1] = 6 ; Accprice_lst [loopcntr][2] = 750 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1120 ; Accprice_lst [loopcntr][1] = 7 ; Accprice_lst [loopcntr][2] = 875 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1120 ; Accprice_lst [loopcntr][1] = 8 ; Accprice_lst [loopcntr][2] = 1000 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1120 ; Accprice_lst [loopcntr][1] = 9 ; Accprice_lst [loopcntr][2] = 1125 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1120 ; Accprice_lst [loopcntr][1] = 10 ; Accprice_lst [loopcntr][2] = 1250 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1120 ; Accprice_lst [loopcntr][1] = 11 ; Accprice_lst [loopcntr][2] = 1375 ; loopcntr++; Accprice_lst [loopcntr] = new Array(3); Accprice_lst [loopcntr][0] = 1120 ; Accprice_lst [loopcntr][1] = 12 ; Accprice_lst [loopcntr][2] = 1500 ; loopcntr++; //************************************************************************** document.write (" "); document.write (""); document.write (""); //************************************************************************** function cleanupcourselist() { var u=0; for(u=0;u<=CCourses.options.length;u++) {CCourses.options[u]=null} for(var t=u-1;t>=0;t--) {CCourses.options[t]=null;} } //************************************************************************** function cleanuppricelist() { var u1=0; for(u1=0;u1<=CWeekPrice.options.length;u1++) {CWeekPrice.options[u1]=null} for(var t1=u1-1;t1>=0;t1--) {CWeekPrice.options[t1]=null;} CWeekPrice.options[CWeekPrice.options.length]=new Option("Select a Course","Select a Course"); } //************************************************************************** function cleanuplists() { cleanupcourselist(); cleanuppricelist(); } function cleanupAccpricelist() { var u1=0; for(u1=0;u1<=AccWeekPrice.options.length;u1++) {AccWeekPrice.options[u1]=null;} for(var t1=u1-1;t1>=0;t1--) {AccWeekPrice.options[t1]=null;} } //************************************************************************** function RefreshCourses(indexkey) { var tmpidx=0; for(var k=0;k< 7; k++) { if (crs_lst[k][0]== indexkey) CCourses.options[tmpidx++]=new Option(crs_lst[k][2],crs_lst[k][1]); } } //************************************************************************** function RefreshPrices(Crs_code) { var tmpidx=0; var tmpstr=""; for(var k=0;k< 7; k++) { if (price_lst[k][0] == Crs_code) { if ( parseInt(price_lst[k][1])==0) price_lst[k][1]='1'; if (parseInt(price_lst[k][1])<10) tmpstr=" "+price_lst[k][1]; else tmpstr=price_lst[k][1]; if (CTopic.selectedIndex <=1) { if (tmpidx==0 && parseInt(price_lst[k][1])==1) tmpstr=tmpstr+' week = \u00A3'+price_lst[k][2]; else tmpstr=tmpstr+' weeks = \u00A3'+price_lst[k][2]; }else { if (tmpidx==0 && parseInt(price_lst[k][1])==1) tmpstr=tmpstr+' day = \u00A3'+price_lst[k][2]; else tmpstr=tmpstr+' days = \u00A3'+price_lst[k][2]; } CWeekPrice.options[tmpidx++]=new Option(tmpstr,price_lst[k][2]); } } } //************************************************************************** function update_price(varchange,crs_cost) { document.getElementsByName(varchange)(0).value= crs_cost ; Update_totals(); } function Update_totals() { var Acc_fs=0.00; if (parseFloat(document.getElementsByName('Accfee')(0).value)>0) Acc_fs=125.00; var str=CWeekPrice.options[CWeekPrice.selectedIndex].text; var subtot=parseFloat(str.substr(str.lastIndexOf('\u00A3')+1,str.length)); document.getElementsByName('Deposit')(0).value= parseFloat(document.getElementsByName('Deposit25')(0).value) + Acc_fs +parseFloat(document.getElementsByName('Airportfee')(0).value) ; document.getElementsByName('Total')(0).value= subtot + parseFloat(document.getElementsByName('Accfee')(0).value)+parseFloat(document.getElementsByName('Airportfee')(0).value) ; var tmpsurcharge=parseFloat(document.getElementsByName('SurchargeFees')(0).value); // Addedd on 21/06/2006 to show the update balance in emails if (document.getElementsByName('PaymentMethod')(1).checked) document.getElementsByName('Total_pay')(0).value='0.00'; else { if (document.getElementsByName('WhichPayment')(1).checked) document.getElementsByName('Total_pay')(0).value=parseFloat(document.getElementsByName('Total')(0).value) +tmpsurcharge; else document.getElementsByName('Total_pay')(0).value=parseFloat(document.getElementsByName('Deposit')(0).value) +tmpsurcharge; } // End document.getElementsByName('Deposit25')(0).value=parseFloat(document.getElementsByName('Deposit25')(0).value).toFixed(2); document.getElementsByName('Accfee')(0).value=parseFloat(document.getElementsByName('Accfee')(0).value).toFixed(2); document.getElementsByName('Airportfee')(0).value=parseFloat(document.getElementsByName('Airportfee')(0).value).toFixed(2); document.getElementsByName('Deposit')(0).value=parseFloat(document.getElementsByName('Deposit')(0).value).toFixed(2); document.getElementsByName('Total')(0).value=parseFloat(document.getElementsByName('Total')(0).value).toFixed(2); document.getElementsByName('SurchargeFees')(0).value=parseFloat(document.getElementsByName('SurchargeFees')(0).value).toFixed(2); document.getElementsByName('Total_pay')(0).value=parseFloat(document.getElementsByName('Total_Pay')(0).value).toFixed(2); } //************************************************************************** function IncreaseSurcharge(percentage) { update_price('SurchargeFees',0); percentage= parseFloat(percentage); var increment= parseFloat(document.getElementsByName('Total_pay')(0).value); var Surchargeval=(increment*percentage/100); increment=increment+Surchargeval; update_price('SurchargeFees',Surchargeval); } //************************************************************************** function RefreshAccPrices(Acc_code) { var tmpidx=0; var tmpstr=""; for(var k=0;k< 108; k++) { if (Accprice_lst[k][0] == Acc_code) { if (parseInt(Accprice_lst[k][1])<10) tmpstr=" "+Accprice_lst[k][1]; else tmpstr=Accprice_lst[k][1]; if (tmpidx==0 && parseInt(Accprice_lst[k][1])==1) tmpstr=tmpstr+' week = \u00A3'+Accprice_lst[k][2]; else tmpstr=tmpstr+' weeks = \u00A3'+Accprice_lst[k][2]; AccWeekPrice.options[tmpidx++]=new Option(tmpstr,Accprice_lst[k][2]); } } } //************************************************************************** function Str2date(str) { d1= trim(str); var day1=d1.substring(0,2); var month1=parseInt(d1.substring(3,5))-1; var year1=d1.substring(6,11); var d=new Date(year1,month1,day1); return(d) } //************************************************************************** function ValidateAll() { if (COURSE_SELECTED==false) { alert('Please select a course, choose the dates then select duration and fee.\n\nFor more information about courses and their specification please go to Course Fees .'); return; } document.getElementsByName('Acc_Beginning_date')(0).value = trim(document.getElementsByName('Acc_Beginning_date')(0).value); document.getElementsByName('Acc_Ending_date')(0).value = trim(document.getElementsByName('Acc_Ending_date')(0).value); var prc_str=CWeekPrice.options[CWeekPrice.selectedIndex].text; prc_str=CTopic.options[CTopic.selectedIndex].text +" - "+CCourses.options[CCourses.selectedIndex].text+" - "+ prc_str.substr(0, prc_str.indexOf('=')); var ValidateFields = new Array (prc_str,"Beginning_date","Title","Gender","Surname","First_name","Address1","Address2","Address3","Address4","Passport_No.","Nationality","Date_of_Birth","Country_of_Birth","Tel_No","Fax_No","Email","UK_Entry_date","Profession","Education_level","Language-1","Language-2","Language-3","English_level","Accommodation","Acc_Beginning_date","Acc_Ending_date","Religion","Religious_observance","Medication","Allergy","Handicap","Medical","Hospital","EC_Name","EC_Tel","EC_Email","EC_Relationship","","","","","","Smoking","Food","arrange_an_airport_transfer","arrange_insurance_cover","Sources","chkterms","Deposit25","Regfee","Accfee","Airportfee","Insurance","Deposit","Total", "Total_pay","PaymentMethod","Surcharge","SurchargeFees","App_type","School","School_qualifications","College","College_qualifications","University","University_qualifications","Teaching_experience","Achivement","Disclaimer","criminal"); //(Name, compulsory[0 = no 1=yes] , type[0 = text, 1 = radio, 2= check] ) var ValidateMsg = new Array(71); ValidateMsg[0] = new Array ("Course Detail",1,0); ValidateMsg[1] = new Array ("Beginning Date",0,0); ValidateMsg[2] = new Array ("Title",1,1); ValidateMsg[3] = new Array ("Gender",1,1); ValidateMsg[4] = new Array ("Surname",1,0); ValidateMsg[5] = new Array ("First Name",1,0); ValidateMsg[6] = new Array ("Address",1,0); ValidateMsg[7] = new Array ("City",1,0); ValidateMsg[8] = new Array ("Post Code",1,0); ValidateMsg[9] = new Array ("Country",1,0); ValidateMsg[10] = new Array ("Passport No.",1,0); ValidateMsg[11] = new Array ("Nationality",1,0); ValidateMsg[12] = new Array ("Date of Birth",1,0); ValidateMsg[13] = new Array ("Place of Birth",1,0); ValidateMsg[14] = new Array ("Telephone No.",1,0); ValidateMsg[15] = new Array ("Fax No.",0,0); ValidateMsg[16] = new Array ("Email",1,0); ValidateMsg[17] = new Array ("UK Entry Date",0,0); ValidateMsg[18] = new Array ("Profession",1,0); ValidateMsg[19] = new Array ("Education Level",1,1); ValidateMsg[20] = new Array ("Languages Spoken",1,0); ValidateMsg[21] = new Array ("",0,0); ValidateMsg[22] = new Array ("",0,0); ValidateMsg[23] = new Array ("English Level",1,0); ValidateMsg[24] = new Array ("Accommodation",1,1); ValidateMsg[25] = new Array ("Accommodation Beginning Date",1,0); ValidateMsg[26] = new Array ("Accommodation- No. of Week(s)",0,0); ValidateMsg[27] = new Array ("Religion",0,0); ValidateMsg[28] = new Array ("Religious Observance",0,0); ValidateMsg[29] = new Array ("Medication",1,1); ValidateMsg[30] = new Array ("Allergy",1,1); ValidateMsg[31] = new Array ("Handicap",1,1); //By Abbas on 2008/05/01 To add Emergency Contact and Existing Medical Conditions variables to the application form //Last array index changed from 59 to 70 and all the indexes are updated respectly ValidateMsg[32] = new Array ("Existing Medical Conditions",1,1); ValidateMsg[33] = new Array ("Hospital Admission",1,1); ValidateMsg[34] = new Array ("Emergency Contact - Name",1,0); ValidateMsg[35] = new Array ("Emergency Contact - Telephone number",1,0); ValidateMsg[36] = new Array ("Emergency Contact - Email Address",0,0); ValidateMsg[37] = new Array ("Emergency Contact - Relationship",0,0); ValidateMsg[38] = new Array ("",0,0); ValidateMsg[39] = new Array ("",0,0); ValidateMsg[40] = new Array ("",0,0); ValidateMsg[41] = new Array ("",0,0); ValidateMsg[42] = new Array ("",0,0); ValidateMsg[43] = new Array ("Smoking",1,1); ValidateMsg[44] = new Array ("Food",1,1); ValidateMsg[45] = new Array ("Arrange an Airport Transfer",1,1); ValidateMsg[46] = new Array ("Arrange Insurance Cover",0,1); ValidateMsg[47] = new Array ("Information Source",1,2); ValidateMsg[48] = new Array ("Terms and Conditions",1,2); ValidateMsg[49] = new Array ("Deposit",0,0); ValidateMsg[50] = new Array ("Registration Fees",0,0); ValidateMsg[51] = new Array ("Accomodation & Booking Fees",0,0); ValidateMsg[52] = new Array ("Airport transportation Fees",0,0); ValidateMsg[53] = new Array ("Insurance",0,0); ValidateMsg[54] = new Array ("Total Deposit",0,0); ValidateMsg[55] = new Array ("Full Payment",0,0); ValidateMsg[56] = new Array ("Total Online Payment",0,0); ValidateMsg[57] = new Array ("Payment Method",1,1); ValidateMsg[58] = new Array ("Surcharge",0,0); ValidateMsg[59] = new Array ("Surcharge Fees",0,0); ValidateMsg[60] = new Array ("Application Type",0,0); ValidateMsg[61] = new Array ("School",1,0); ValidateMsg[62] = new Array ("School Qualifications",1,0); ValidateMsg[63] = new Array ("College",1,0); ValidateMsg[64] = new Array ("College Qualifications",1,0); ValidateMsg[65] = new Array ("University",1,0); ValidateMsg[66] = new Array ("University Qualifications",1,0); ValidateMsg[67] = new Array ("Teaching Experience",1,0); ValidateMsg[68] = new Array ("Achievement",1,0); ValidateMsg[69] = new Array ("Disclaimer",1,1); ValidateMsg[70] = new Array ("Criminal",1,1); var AlertMsg=""; var Html_header="Student Reservation"; var ParamList_header=""; var ParamList_mail=""; var ParamList=""; var VariablesList = new Array(71); if (document.getElementsByName("PaymentMethod")(0).checked) { ParamList_header=ParamList_header+"

CELTA - Online payment preview page

Thank you for your interest.

Please read through the details you have given us and edit if required. If you are happy, please click on submit and you will be redirected to our secure payment online provider, Protx.
"; ParamList_header=ParamList_header+"

  

Enter your credit/debit card details there and complete your online booking by pressing the 'Proceed' button.

We accept the following credit cards:

    
   

" ParamList_header=ParamList_header+"

Please note we do not accept American Express

"; ParamList_mail=ParamList_mail+"
"; } else { ParamList_header=ParamList_header+"

You are one step away!

Student Reservation Result

What we asked :What you said :
Course Detail"+prc_str+"

Please scroll down and click on 'Proceed' so that we can store your details and get in touch with you as soon as possible.
"; ParamList_mail=ParamList_mail+""; } VariablesList[0] = new Array ("Course Detail",prc_str); // phase one before september // var Array_order = new Array(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,XX,15,16,17,18,19,20,21,47,48,49,50,51,52,22,53,54,23,24,XX,XX,25,26,27,28,29,30,55,56,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46); // 01/05/2007 adding more three fields var Array_order = new Array(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,61,62,63,64,65,66,23,67,68,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,69,70,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60); for (var ww=1; ww"; } ParamList_mail=ParamList_mail+"

Student Reservation Result

What we asked :What you said :
Course Detail"+prc_str+"
"+t1+""+Fieldvalue+"
"; ParamList=Html_header+ParamList_header+ParamList_mail; ParamList_mail = Html_header+ParamList_mail; ParamList=ParamList+"
"; ParamList=ParamList+"

     "; //ParamList=ParamList+"     "; if (document.getElementsByName("PaymentMethod")(0).checked) ParamList=ParamList+"      "; else ParamList=ParamList+"      "; if (AlertMsg) {alert(AlertMsg.substring(0,AlertMsg.length-3)); return;} var TmpAlert="Please"; var varctrl=document.getElementsByName("Email")(0).value; if (!CheckEmail(varctrl)) {TmpAlert=TmpAlert+' enter a correct email address. \n';} varctrl=document.getElementsByName("Date_of_Birth")(0).value; tmpdatevalid=IsaValidDate(varctrl , 0); if (tmpdatevalid ==0) {TmpAlert=TmpAlert+' enter a valid Date of Birth. \n';} else if (tmpdatevalid ==1) {TmpAlert=TmpAlert+' note that we can not process the applications for the aged under 16. \n';} varctrl=document.getElementsByName("Acc_Beginning_Date")(0).value; tmpdatevalid=IsaValidAccDate(varctrl , 0); if (tmpdatevalid ==0) {TmpAlert=TmpAlert+' enter a valid Date for Accommodation Beginning Date. \n';} //varctrl=document.getElementsByName("Acc_Ending_Date")(0).value; //tmpdatevalid=IsaValidAccDate(varctrl , 0); //if (tmpdatevalid ==0) // {TmpAlert=TmpAlert+' enter a valid Date for Accommodation Ending Date. \n';} varctrl=document.getElementsByName("Tel_No")(0).value; if (!IsaTel(varctrl)) {TmpAlert=TmpAlert+' enter a correct Telephone number. \n';} varctrl=document.getElementsByName("Fax_No")(0).value; if (!IsaTel(varctrl)) {TmpAlert=TmpAlert+' enter a correct Fax number. \n';} //By Abbas on 2008/05/05 To validate Emergency Contact details varctrl=document.getElementsByName("EC_Email")(0).value; if (!CheckEmail(varctrl)) {TmpAlert=TmpAlert+' enter a correct emergency contact - email address. \n';} varctrl=document.getElementsByName("EC_Tel")(0).value; if (!IsaTel(varctrl)) {TmpAlert=TmpAlert+' enter a correct emergency contact - Telephone Number. \n';} if (TmpAlert!="Please") {alert(TmpAlert); return;} //document.location.reload(); OpenWindow=window.open("", "Celtawin", "height=640 , width=640,toolbar=no,scrollbars=1,menubar=no"); OpenWindow.document.write(ParamList); OpenWindow.document.close(); self.name="main"; } //************************************************************************** function trim(TRIM_VALUE){ if(TRIM_VALUE.length < 1){ return""; } TRIM_VALUE = RTrim(TRIM_VALUE); TRIM_VALUE = LTrim(TRIM_VALUE); if(TRIM_VALUE==""){ return ""; } else{ return TRIM_VALUE; } } //End Function function RTrim(VALUE){ var w_space = String.fromCharCode(32); var v_length = VALUE.length; var strTemp = ""; if(v_length < 0){ return""; } var iTemp = v_length -1; while(iTemp > -1){ if(VALUE.charAt(iTemp) == w_space){ } else{ strTemp = VALUE.substring(0,iTemp +1); break; } iTemp = iTemp-1; } //End While return strTemp; } //End Function function LTrim(VALUE){ var w_space = String.fromCharCode(32); if(v_length < 1){ return""; } var v_length = VALUE.length; var strTemp = ""; var iTemp = 0; while(iTemp < v_length){ if(VALUE.charAt(iTemp) == w_space){ } else{ strTemp = VALUE.substring(iTemp,v_length); break; } iTemp = iTemp + 1; } //End While return strTemp; } //End Function //*********************************** function ReverseDate(str1) { str1=trim(str1); var str=str1.substring(6,10)+'/'; str=str+str1.substring(3,5)+'/'; str=str+str1.substring(0,2); return(str); } //*********************************** function IsaTel(val) { if (val=='') {return true;} else if (val.length <10) {return false;} var digits=" +1234567890"; for (var i=0; i < val.length; i++) { if (digits.indexOf(val.charAt(i))==-1) { return false; } } return true; } //************************************ function IsaValidDate(val , status1) { // status : 0= date of birth ; 1= the UK entry date ; // return values : 0 : is not valid date ; 1: student does not allow to apply for a course <16 years old ; 2: valid date str1=trim(val); if (str1=='') {return (2);} if (val.length<10) { return (0); } if (!parseDate (val)) {return(0);} var year1 = parseFloat(str1.substring(6,10)); var month1 =parseFloat(str1.substring(3,5)); var day1= parseFloat(str1.substring(0,2)); //alert ('Val : '+val+' Day: '+day1 +' Month: '+month1 +' Year: '+year1 ); if ( (day1<1 || day1>31) || (month1<1 || month1>12) || year1<1900 ) { return(0);} var d = new Date(); var currentYear = parseInt(d.getFullYear()); var underAge=currentYear -16; var longStay=currentYear -75; if (status1==0) { if (year1 >underAge ) return(1); } else if (status1==1) { if (year1 < longStay ) return(1); } return (2); } //************************************ function IsaValidAccDate(val) { // return values : 0 : is not valid date ; 2: valid date str1=trim(val); if (str1=='-' || str1=='') {return (2);} if (val.length<10) { return (0); } if (!parseDate (val)) {return(0);} var year1 = parseFloat(str1.substring(6,10)); var month1 =parseFloat(str1.substring(3,5)); var day1= parseFloat(str1.substring(0,2)); var d = new Date(); var currentYear = parseInt(d.getFullYear()); //alert ('Val : '+val+' Day: '+day1 +' Month: '+month1 +' Year: '+year1 ); if ( (day1<1 || day1>31) || (month1<1 || month1>12) || year1