			function calcCoursePrice(form) {
				allPrices = coursePrices[form.courseIndex.selectedIndex];
				min = courseMinWeeks[form.courseIndex.selectedIndex];
				thisPrice = allPrices[form.courseWeeks.value - min];
				form.coursePrice.value = thisPrice;
				calcTotalPrice(form);
			}
			function calcAccomPrice(form) {				
				accomPrice = accomPrices[form.accomType.selectedIndex];
				selectedDays = form.accomDays.options[form.accomDays.selectedIndex].value;
				form.accomPrice.value = (accomPrice * selectedDays);
				calcTotalPrice(form);
			}
			function calcTransferPrice(form) {				
				transferPrice = transferPrices[form.transferType.selectedIndex];
				form.transferPrice.value = transferPrice;
				calcTotalPrice(form);
			}
			function calcApplicationFee(form) {	
				form.appFee.value = "50";	
				form.materialFee.value = (form.courseIndex.value.substr(0, 2) == "AY") ? "50" : "35";
				calcTotalPrice(form);
			}			
			
			function calcTotalPrice(form) {
				form.totalPrice.value = parseInt(form.coursePrice.value) + parseInt(form.accomPrice.value) + parseInt(form.appFee.value) + parseInt(form.materialFee.value);
				maxDeposit = maxDeposits[form.courseIndex.selectedIndex];
				if (form.totalPrice.value > maxDeposit)
					form.amountPayNow.value = maxDeposit;
				else
					form.amountPayNow.value = form.totalPrice.value;
			}
			function showHideAccom(form) {
				selectedAccom = form.accomType.options[form.accomType.selectedIndex].value;
				if (selectedAccom == "none") {
					while (form.boardtype.options.length > 0) {
						form.boardType.remove(0);
					}				
					while (form.accomseason.options.length > 0) {
						form.accomSeason.remove(0);
					}
					while (form.accomdays.options.length > 0) {
						form.accomDays.remove(0);
					}
					form.accomPrice.value = "&euro;0";
				}
			}	
