<!-- 
//this script is used for the budget calculator
function calculate_cost(form)
{
	var total_pl = 0	//Total Cost for Person 1
	var total_Person2 = 0	//Total Cost for Person 2
	var total_Person3 = 0	//Total Cost for Person 3
	var total_Person4 = 0	//Total Cost for Person 4
	var total = 0	    //Total Cost
	var PersonNum  	    //Current Person Being Calculated
	var ActivityFee = 25
	var HalfDayExcursionFee = 35
	var DayExcursionFee = 90
	var WeekendExcursionFee = 350
		
	with (form) {
	
		PersonNum = 1	//Person 1 cost is currently being Calculated
		
		//If a registration fee is not selected...
		if (RegistrationFee_Person1.selectedIndex == 0) {
			alert("Please select a registration fee for person " + PersonNum + ".")
			RegistrationFee_Person1.focus()
			return
			} else { //...else calc registration fee
			total_Person1 = parseFloat(RegistrationFee_Person1.value)
		}
	
		//If a class type is not selected...
		if (ClassType_Person1.selectedIndex == 0) {
			alert("Please select a Spanish class type for person " + PersonNum + ".")
			ClassType_Person1.focus()
			return
		}
	
		//if Student hasn't specified number of study weeks
		if (parseFloat(WeeksOfStudy_Person1.value) == 0) {
				alert("Please select the number of study weeks for person " + PersonNum + ".")
				WeeksOfStudy_Person1.focus()
				WeeksOfStudy_Person1.select()
				return
		}
			
		//if a student takes Private Classes...	
		if (ClassType_Person1.selectedIndex == 5) {
			//if user hasn't specified hours of Private Spanish classes...
			if (parseFloat(ClassHours_Person1.value) == 0) {
				alert("As person " + PersonNum + " has selected Private Spanish Classes, you will need to select how many hours per week they want to take class.")
				ClassHours_Person1.focus()
				ClassHours_Person1.select()
				return
			} else {	//...else calc Private Spanish Class tuition
				total_Person1 = total_Person1 + parseFloat(ClassType_Person1.value) * parseFloat(ClassHours_Person1.value) * parseFloat(WeeksOfStudy_Person1.value)
			}
		} else {	//...else calc Group Class tuition
			total_Person1 = total_Person1 + parseFloat(ClassType_Person1.value) * parseFloat(WeeksOfStudy_Person1.value)
		}
		
		//calc supplemental material
		total_Person1 = total_Person1 + parseFloat(SupplementalMaterial_Person1.value)
		
		//calc activities and excursions
		total_Person1 = total_Person1 + parseFloat(ActivityNumber_Person1.value) * ActivityFee + parseFloat(HalfDayExcursionNumber_Person1.value) * HalfDayExcursionFee + parseFloat(DayExcursionNumber_Person1.value) * DayExcursionFee + parseFloat(WeekendExcursionNumber_Person1.value) * WeekendExcursionFee	
		
		//calc laundry service
		total_Person1 = total_Person1 + parseFloat(LaundryService_Person1.value) * parseFloat(WeeksOfStudy_Person1.value)
		
		//calc housing fees
		switch(HomeStayPlan.value) {
			
			//if the user hasn't selected a home stay package...
			case "":
				alert("Please select a housing plan for person " + PersonNum + ".")
				HomeStayPlan.focus()
				return
				
			//no housing
			case "0":
				//Student doesn't want home stay so do nothing
				break
			//Deluxe Housing Package
			case "1":
				//if number of days with host family is not specified
				if (parseFloat(NightsWithFamily_Person1.value) == 0) {
					alert("Please select the number of days that person " + PersonNum + " will stay with their host family.")
					NightsWithFamily_Person1.focus()
					NightsWithFamily_Person1.select()
					return
				}
				//if there is only 1 student in the group...
				if (parseFloat(PeopleInGroup.value) ==1) {
					total_Person1 = total_Person1 + 30 * parseFloat(NightsWithFamily_Person1.value)
				}else{	//...else there are 2 or more students in the group so give "shared room" rate
					total_Person1 = total_Person1 + 27 * parseFloat(NightsWithFamily_Person1.value)
				}
				break
			
			//European Housing Package
			case "2":
				//if number of days with host family is not specified...
				if (parseFloat(NightsWithFamily_Person1.value) == 0) {
						alert("Please select the number of days that person " + PersonNum + " will stay with their host family.")
						NightsWithFamily_Person1.focus()
						NightsWithFamily_Person1.select()
						return
				}
				//if there is only 1 student in the group...
				if (parseFloat(PeopleInGroup.value) ==1) {
					total_Person1 = total_Person1 + 27 * parseFloat(NightsWithFamily_Person1.value)
				}else{	//...else there are 2 or more students in the group so give "shared room" rate
					total_Person1 = total_Person1 + 24 * parseFloat(NightsWithFamily_Person1.value)
				}
				break
				
			//Economic Housing Package			
			case "3":
				//if number of days with host family is not specified...
				if (parseFloat(NightsWithFamily_Person1.value) == 0) {
						alert("Please select the number of days that person " + PersonNum + " will stay with their host family.")
						NightsWithFamily_Person1.focus()
						NightsWithFamily_Person1.select()
						return
				}
				//if there is only 1 student in the group...
				if (parseFloat(PeopleInGroup.value) ==1) {
					total_Person1 = total_Person1 + 25 * parseFloat(NightsWithFamily_Person1.value)
				}else{	//...else there are 2 or more students in the group so give "shared room" rate
					total_Person1 = total_Person1 + 22 * parseFloat(NightsWithFamily_Person1.value)
				}
				break
		}
		
		//Calc transportation from Mx. City to Cuernavaca					
		switch(TransportTypeArrival.selectedIndex) {
			
			//if Student hasn't specified transportation from Mx. City to Cuernavaca
			case 0:
				alert("Please select transportation from Mexico City to Cuernavaca for person " + PersonNum + ".")
				TransportTypeArrival.focus()
				return
			
			//if student uses public bus service
			case 1:
				total_Person1 = total_Person1 + parseFloat(TransportTypeArrival.value)
				break
			
			//if student uses private transport for 1 person
			case 2:
				total_Person1 = total_Person1 + parseFloat(TransportTypeArrival.value)
				break
			
			//if student uses private transport for 2 people
			case 3:
				total_Person1 = total_Person1 + parseFloat(TransportTypeArrival.value) / 2
				break
			
			//if student uses private transport for 3 people
			case 4:
				total_Person1 = total_Person1 + parseFloat(TransportTypeArrival.value) / 3
				break
			
			//if student uses private transport for 4 or mor people
			case 5:
				total_Person1 = total_Person1 + parseFloat(TransportTypeArrival.value)
				break
				
			//if student is going to provide his/her own means of transportation
			case 6:
				//do nothing
				break
		}
		
		//Calc transportation from Cuernavaca to Mx. City					
		switch(TransportTypeDeparture.selectedIndex) {
			
			//if Student hasn't specified transportation from Cuernavaca to Mx. City
			case 0:
				alert("Please select transportation from Cuernavaca to Mexico City for person " + PersonNum + ".")
				TransportTypeDeparture.focus()
				return
			
			//if student uses public bus service
			case 1:
				total_Person1 = total_Person1 + parseFloat(TransportTypeDeparture.value)
				break
			
			//if student uses private transport for 1 person
			case 2:
				total_Person1 = total_Person1 + parseFloat(TransportTypeDeparture.value)
				break
			
			//if student uses private transport for 2 people
			case 3:
				total_Person1 = total_Person1 + parseFloat(TransportTypeDeparture.value) / 2
				break
			
			//if student uses private transport for 3 people
			case 4:
				total_Person1 = total_Person1 + parseFloat(TransportTypeDeparture.value) / 3
				break
			
			//if student uses private transport for 4 or mor people
			case 5:
				total_Person1 = total_Person1 + parseFloat(TransportTypeDeparture.value)
				break
				
			//if student is going to provide his/her own means of transportation
			case 6:
				//do nothing
				break
		}
			
		//if a second person is in the group
		if (parseFloat(PeopleInGroup.value) > 1) {
			PersonNum = 2	//Person 2 cost is currently being Calculated
		
		//If a registration fee is not selected...
		if (RegistrationFee_Person2.selectedIndex == 0) {
			alert("Please select a registration fee for person " + PersonNum + ".")
			RegistrationFee_Person2.focus()
			return
			} else { //...else calc registration fee
			total_Person2 = parseFloat(RegistrationFee_Person2.value)
		}
	
		//If a class type is not selected...
		if (ClassType_Person2.selectedIndex == 0) {
			alert("Please select a Spanish class type for person " + PersonNum + ".")
			ClassType_Person2.focus()
			return
		}
	
		//if Student hasn't specified number of study weeks
		if (parseFloat(WeeksOfStudy_Person2.value) == 0) {
				alert("Please select the number of study weeks for person " + PersonNum + ".")
				WeeksOfStudy_Person2.focus()
				WeeksOfStudy_Person2.select()
				return
		}
			
		//if a student takes Private Classes...	
		if (ClassType_Person2.selectedIndex == 5) {
			//if user hasn't specified hours of Private Spanish classes...
			if (parseFloat(ClassHours_Person2.value) == 0) {
				alert("As person " + PersonNum + " has selected Private Spanish Classes, you will need to select how many hours per week they want to take class.")
				ClassHours_Person2.focus()
				ClassHours_Person2.select()
				return
			} else {	//...else calc Private Spanish Class tuition
				total_Person2 = total_Person2 + parseFloat(ClassType_Person2.value) * parseFloat(ClassHours_Person2.value) * parseFloat(WeeksOfStudy_Person2.value)
			}
		} else {	//...else calc Group Class tuition
			total_Person2 = total_Person2 + parseFloat(ClassType_Person2.value) * parseFloat(WeeksOfStudy_Person2.value)
		}
		
		//calc supplemental material
		total_Person2 = total_Person2 + parseFloat(SupplementalMaterial_Person2.value)
		
		//calc activities and excursions
		total_Person2 = total_Person2 + parseFloat(ActivityNumber_Person2.value) * ActivityFee + parseFloat(HalfDayExcursionNumber_Person2.value) * HalfDayExcursionFee + parseFloat(DayExcursionNumber_Person2.value) * DayExcursionFee + parseFloat(WeekendExcursionNumber_Person2.value) * WeekendExcursionFee	
		
		//calc laundry service
		total_Person2 = total_Person2 + parseFloat(LaundryService_Person2.value) * parseFloat(WeeksOfStudy_Person2.value)
		
		//calc housing fees
		switch(HomeStayPlan.value) {
			
			//if the user hasn't selected a home stay package...
			case "":
				alert("Please select a housing plan for person " + PersonNum + ".")
				HomeStayPlan.focus()
				return
				
			//no housing
			case "0":
				//Student doesn't want home stay so do nothing
				break
			//Deluxe Housing Package
			case "1":
				//if number of days with host family is not specified
				if (parseFloat(NightsWithFamily_Person2.value) == 0) {
					alert("Please select the number of days that person " + PersonNum + " will stay with their host family.")
					NightsWithFamily_Person2.focus()
					NightsWithFamily_Person2.select()
					return
				}
				//if there is only 1 student in the group...
				if (parseFloat(PeopleInGroup.value) ==1) {
					total_Person2 = total_Person2 + 30 * parseFloat(NightsWithFamily_Person2.value)
				}else{	//...else there are 2 or more students in the group so give "shared room" rate
					total_Person2 = total_Person2 + 27 * parseFloat(NightsWithFamily_Person2.value)
				}
				break
			
			//European Housing Package
			case "2":
				//if number of days with host family is not specified...
				if (parseFloat(NightsWithFamily_Person2.value) == 0) {
						alert("Please select the number of days that person " + PersonNum + " will stay with their host family.")
						NightsWithFamily_Person2.focus()
						NightsWithFamily_Person2.select()
						return
				}
				//if there is only 1 student in the group...
				if (parseFloat(PeopleInGroup.value) ==1) {
					total_Person2 = total_Person2 + 27 * parseFloat(NightsWithFamily_Person2.value)
				}else{	//...else there are 2 or more students in the group so give "shared room" rate
					total_Person2 = total_Person2 + 24 * parseFloat(NightsWithFamily_Person2.value)
				}
				break
				
			//Economic Housing Package			
			case "3":
				//if number of days with host family is not specified...
				if (parseFloat(NightsWithFamily_Person2.value) == 0) {
						alert("Please select the number of days that person " + PersonNum + " will stay with their host family.")
						NightsWithFamily_Person2.focus()
						NightsWithFamily_Person2.select()
						return
				}
				//if there is only 1 student in the group...
				if (parseFloat(PeopleInGroup.value) ==1) {
					total_Person2 = total_Person2 + 25 * parseFloat(NightsWithFamily_Person2.value)
				}else{	//...else there are 2 or more students in the group so give "shared room" rate
					total_Person2 = total_Person2 + 22 * parseFloat(NightsWithFamily_Person2.value)
				}
				break
		}
		
		//Calc transportation from Mx. City to Cuernavaca					
		switch(TransportTypeArrival.selectedIndex) {
			
			//if Student hasn't specified transportation from Mx. City to Cuernavaca
			case 0:
				alert("Please select transportation from Mexico City to Cuernavaca for person " + PersonNum + ".")
				TransportTypeArrival.focus()
				return
			
			//if student uses public bus service
			case 1:
				total_Person2 = total_Person2 + parseFloat(TransportTypeArrival.value)
				break
			
			//if student uses private transport for 1 person
			case 2:
				total_Person2 = total_Person2 + parseFloat(TransportTypeArrival.value)
				break
			
			//if student uses private transport for 2 people
			case 3:
				total_Person2 = total_Person2 + parseFloat(TransportTypeArrival.value) / 2
				break
			
			//if student uses private transport for 3 people
			case 4:
				total_Person2 = total_Person2 + parseFloat(TransportTypeArrival.value) / 3
				break
			
			//if student uses private transport for 4 or mor people
			case 5:
				total_Person2 = total_Person2 + parseFloat(TransportTypeArrival.value)
				break
				
			//if student is going to provide his/her own means of transportation
			case 6:
				//do nothing
				break
		}
		
		//Calc transportation from Cuernavaca to Mx. City					
		switch(TransportTypeDeparture.selectedIndex) {
			
			//if Student hasn't specified transportation from Cuernavaca to Mx. City
			case 0:
				alert("Please select transportation from Cuernavaca to Mexico City for person " + PersonNum + ".")
				TransportTypeDeparture.focus()
				return
			
			//if student uses public bus service
			case 1:
				total_Person2 = total_Person2 + parseFloat(TransportTypeDeparture.value)
				break
			
			//if student uses private transport for 1 person
			case 2:
				total_Person2 = total_Person2 + parseFloat(TransportTypeDeparture.value)
				break
			
			//if student uses private transport for 2 people
			case 3:
				total_Person2 = total_Person2 + parseFloat(TransportTypeDeparture.value) / 2
				break
			
			//if student uses private transport for 3 people
			case 4:
				total_Person2 = total_Person2 + parseFloat(TransportTypeDeparture.value) / 3
				break
			
			//if student uses private transport for 4 or more people
			case 5:
				total_Person2 = total_Person2 + parseFloat(TransportTypeDeparture.value)
				break
				
			//if student is going to provide his/her own means of transportation
			case 6:
				//do nothing
				break
		}
		}
		
		//if a third person is in the group
		if (parseFloat(PeopleInGroup.value) > 2) {
		PersonNum = 3	//Person 3 cost is currently being Calculated
		
		//If a registration fee is not selected...
		if (RegistrationFee_Person3.selectedIndex == 0) {
			alert("Please select a registration fee for person " + PersonNum + ".")
			RegistrationFee_Person3.focus()
			return
			} else { //...else calc registration fee
			total_Person3 = parseFloat(RegistrationFee_Person3.value)
		}
	
		//If a class type is not selected...
		if (ClassType_Person3.selectedIndex == 0) {
			alert("Please select a Spanish class type for person " + PersonNum + ".")
			ClassType_Person3.focus()
			return
		}
	
		//if Student hasn't specified number of study weeks
		if (parseFloat(WeeksOfStudy_Person3.value) == 0) {
				alert("Please select the number of study weeks for person " + PersonNum + ".")
				WeeksOfStudy_Person3.focus()
				WeeksOfStudy_Person3.select()
				return
		}
			
		//if a student takes Private Classes...	
		if (ClassType_Person3.selectedIndex == 5) {
			//if user hasn't specified hours of Private Spanish classes...
			if (parseFloat(ClassHours_Person3.value) == 0) {
				alert("As person " + PersonNum + " has selected Private Spanish Classes, you will need to select how many hours per week they want to take class.")
				ClassHours_Person3.focus()
				ClassHours_Person3.select()
				return
			} else {	//...else calc Private Spanish Class tuition
				total_Person3 = total_Person3 + parseFloat(ClassType_Person3.value) * parseFloat(ClassHours_Person3.value) * parseFloat(WeeksOfStudy_Person3.value)
			}
		} else {	//...else calc Group Class tuition
			total_Person3 = total_Person3 + parseFloat(ClassType_Person3.value) * parseFloat(WeeksOfStudy_Person3.value)
		}
		
		//calc supplemental material
		total_Person3 = total_Person3 + parseFloat(SupplementalMaterial_Person3.value)
		
		//calc activities and excursions
		total_Person3 = total_Person3 + parseFloat(ActivityNumber_Person3.value) * ActivityFee + parseFloat(HalfDayExcursionNumber_Person3.value) * HalfDayExcursionFee + parseFloat(DayExcursionNumber_Person3.value) * DayExcursionFee + parseFloat(WeekendExcursionNumber_Person3.value) * WeekendExcursionFee	
		
		//calc laundry service
		total_Person3 = total_Person3 + parseFloat(LaundryService_Person3.value) * parseFloat(WeeksOfStudy_Person3.value)
		
		//calc housing fees
		switch(HomeStayPlan.value) {
			
			//if the user hasn't selected a home stay package...
			case "":
				alert("Please select a housing plan for person " + PersonNum + ".")
				HomeStayPlan.focus()
				return
				
			//no housing
			case "0":
				//Student doesn't want home stay so do nothing
				break
			//Deluxe Housing Package
			case "1":
				//if number of days with host family is not specified
				if (parseFloat(NightsWithFamily_Person3.value) == 0) {
					alert("Please select the number of days that person " + PersonNum + " will stay with their host family.")
					NightsWithFamily_Person3.focus()
					NightsWithFamily_Person3.select()
					return
				}
				//if there is only 1 student in the group...
				if (parseFloat(PeopleInGroup.value) ==1) {
					total_Person3 = total_Person3 + 30 * parseFloat(NightsWithFamily_Person3.value)
				}else{	//...else there are 2 or more students in the group so give "shared room" rate
					total_Person3 = total_Person3 + 27 * parseFloat(NightsWithFamily_Person3.value)
				}
				break
			
			//European Housing Package
			case "2":
				//if number of days with host family is not specified...
				if (parseFloat(NightsWithFamily_Person3.value) == 0) {
						alert("Please select the number of days that person " + PersonNum + " will stay with their host family.")
						NightsWithFamily_Person3.focus()
						NightsWithFamily_Person3.select()
						return
				}
				//if there is only 1 student in the group...
				if (parseFloat(PeopleInGroup.value) ==1) {
					total_Person3 = total_Person3 + 27 * parseFloat(NightsWithFamily_Person3.value)
				}else{	//...else there are 2 or more students in the group so give "shared room" rate
					total_Person3 = total_Person3 + 24 * parseFloat(NightsWithFamily_Person3.value)
				}
				break
				
			//Economic Housing Package			
			case "3":
				//if number of days with host family is not specified...
				if (parseFloat(NightsWithFamily_Person3.value) == 0) {
						alert("Please select the number of days that person " + PersonNum + " will stay with their host family.")
						NightsWithFamily_Person3.focus()
						NightsWithFamily_Person3.select()
						return
				}
				//if there is only 1 student in the group...
				if (parseFloat(PeopleInGroup.value) ==1) {
					total_Person3 = total_Person3 + 25 * parseFloat(NightsWithFamily_Person3.value)
				}else{	//...else there are 2 or more students in the group so give "shared room" rate
					total_Person3 = total_Person3 + 22 * parseFloat(NightsWithFamily_Person3.value)
				}
				break
		}
		
		//Calc transportation from Mx. City to Cuernavaca					
		switch(TransportTypeArrival.selectedIndex) {
			
			//if Student hasn't specified transportation from Mx. City to Cuernavaca
			case 0:
				alert("Please select transportation from Mexico City to Cuernavaca for person " + PersonNum + ".")
				TransportTypeArrival.focus()
				return
			
			//if student uses public bus service
			case 1:
				total_Person3 = total_Person3 + parseFloat(TransportTypeArrival.value)
				break
			
			//if student uses private transport for 1 person
			case 2:
				total_Person3 = total_Person3 + parseFloat(TransportTypeArrival.value)
				break
			
			//if student uses private transport for 2 people
			case 3:
				total_Person3 = total_Person3 + parseFloat(TransportTypeArrival.value) / 2
				break
			
			//if student uses private transport for 3 people
			case 4:
				total_Person3 = total_Person3 + parseFloat(TransportTypeArrival.value) / 3
				break
			
			//if student uses private transport for 4 or mor people
			case 5:
				total_Person3 = total_Person3 + parseFloat(TransportTypeArrival.value)
				break
				
			//if student is going to provide his/her own means of transportation
			case 6:
				//do nothing
				break
		}
		
		//Calc transportation from Cuernavaca to Mx. City					
		switch(TransportTypeDeparture.selectedIndex) {
			
			//if Student hasn't specified transportation from Cuernavaca to Mx. City
			case 0:
				alert("Please select transportation from Cuernavaca to Mexico City for person " + PersonNum + ".")
				TransportTypeDeparture.focus()
				return
			
			//if student uses public bus service
			case 1:
				total_Person3 = total_Person3 + parseFloat(TransportTypeDeparture.value)
				break
			
			//if student uses private transport for 1 person
			case 2:
				total_Person3 = total_Person3 + parseFloat(TransportTypeDeparture.value)
				break
			
			//if student uses private transport for 2 people
			case 3:
				total_Person3 = total_Person3 + parseFloat(TransportTypeDeparture.value) / 2
				break
			
			//if student uses private transport for 3 people
			case 4:
				total_Person3 = total_Person3 + parseFloat(TransportTypeDeparture.value) / 3
				break
			
			//if student uses private transport for 4 or more people
			case 5:
				total_Person3 = total_Person3 + parseFloat(TransportTypeDeparture.value)
				break
				
			//if student is going to provide his/her own means of transportation
			case 6:
				//do nothing
				break
		}
		}
		
		//if a fourth person is in the group
		if (parseFloat(PeopleInGroup.value) > 3) {
			PersonNum = 4	//Person 4 cost is currently being Calculated
		
		//If a registration fee is not selected...
		if (RegistrationFee_Person4.selectedIndex == 0) {
			alert("Please select a registration fee for person " + PersonNum + ".")
			RegistrationFee_Person4.focus()
			return
			} else { //...else calc registration fee
			total_Person4 = parseFloat(RegistrationFee_Person4.value)
		}
	
		//If a class type is not selected...
		if (ClassType_Person4.selectedIndex == 0) {
			alert("Please select a Spanish class type for person " + PersonNum + ".")
			ClassType_Person4.focus()
			return
		}
	
		//if Student hasn't specified number of study weeks
		if (parseFloat(WeeksOfStudy_Person4.value) == 0) {
				alert("Please select the number of study weeks for person " + PersonNum + ".")
				WeeksOfStudy_Person4.focus()
				WeeksOfStudy_Person4.select()
				return
		}
			
		//if a student takes Private Classes...	
		if (ClassType_Person4.selectedIndex == 5) {
			//if user hasn't specified hours of Private Spanish classes...
			if (parseFloat(ClassHours_Person4.value) == 0) {
				alert("As person " + PersonNum + " has selected Private Spanish Classes, you will need to select how many hours per week they want to take class.")
				ClassHours_Person4.focus()
				ClassHours_Person4.select()
				return
			} else {	//...else calc Private Spanish Class tuition
				total_Person4 = total_Person4 + parseFloat(ClassType_Person4.value) * parseFloat(ClassHours_Person4.value) * parseFloat(WeeksOfStudy_Person4.value)
			}
		} else {	//...else calc Group Class tuition
			total_Person4 = total_Person4 + parseFloat(ClassType_Person4.value) * parseFloat(WeeksOfStudy_Person4.value)
		}
		
		//calc supplemental material
		total_Person4 = total_Person4 + parseFloat(SupplementalMaterial_Person4.value)
		
		//calc activities and excursions
		total_Person4 = total_Person4 + parseFloat(ActivityNumber_Person4.value) * ActivityFee + parseFloat(HalfDayExcursionNumber_Person4.value) * HalfDayExcursionFee + parseFloat(DayExcursionNumber_Person4.value) * DayExcursionFee + parseFloat(WeekendExcursionNumber_Person4.value) * WeekendExcursionFee	
		
		//calc laundry service
		total_Person4 = total_Person4 + parseFloat(LaundryService_Person4.value) * parseFloat(WeeksOfStudy_Person4.value)
		
		//calc housing fees
		switch(HomeStayPlan.value) {
			
			//if the user hasn't selected a home stay package...
			case "":
				alert("Please select a housing plan for person " + PersonNum + ".")
				HomeStayPlan.focus()
				return
				
			//no housing
			case "0":
				//Student doesn't want home stay so do nothing
				break
			//Deluxe Housing Package
			case "1":
				//if number of days with host family is not specified
				if (parseFloat(NightsWithFamily_Person4.value) == 0) {
					alert("Please select the number of days that person " + PersonNum + " will stay with their host family.")
					NightsWithFamily_Person4.focus()
					NightsWithFamily_Person4.select()
					return
				}
				//if there is only 1 student in the group...
				if (parseFloat(PeopleInGroup.value) ==1) {
					total_Person4 = total_Person4 + 30 * parseFloat(NightsWithFamily_Person4.value)
				}else{	//...else there are 2 or more students in the group so give "shared room" rate
					total_Person4 = total_Person4 + 27 * parseFloat(NightsWithFamily_Person4.value)
				}
				break
			
			//European Housing Package
			case "2":
				//if number of days with host family is not specified...
				if (parseFloat(NightsWithFamily_Person4.value) == 0) {
						alert("Please select the number of days that person " + PersonNum + " will stay with their host family.")
						NightsWithFamily_Person4.focus()
						NightsWithFamily_Person4.select()
						return
				}
				//if there is only 1 student in the group...
				if (parseFloat(PeopleInGroup.value) ==1) {
					total_Person4 = total_Person4 + 27 * parseFloat(NightsWithFamily_Person4.value)
				}else{	//...else there are 2 or more students in the group so give "shared room" rate
					total_Person4 = total_Person4 + 24 * parseFloat(NightsWithFamily_Person4.value)
				}
				break
				
			//Economic Housing Package			
			case "3":
				//if number of days with host family is not specified...
				if (parseFloat(NightsWithFamily_Person4.value) == 0) {
						alert("Please select the number of days that person " + PersonNum + " will stay with their host family.")
						NightsWithFamily_Person4.focus()
						NightsWithFamily_Person4.select()
						return
				}
				//if there is only 1 student in the group...
				if (parseFloat(PeopleInGroup.value) ==1) {
					total_Person4 = total_Person4 + 25 * parseFloat(NightsWithFamily_Person4.value)
				}else{	//...else there are 2 or more students in the group so give "shared room" rate
					total_Person4 = total_Person4 + 22 * parseFloat(NightsWithFamily_Person4.value)
				}
				break
		}
		
		//Calc transportation from Mx. City to Cuernavaca					
		switch(TransportTypeArrival.selectedIndex) {
			
			//if Student hasn't specified transportation from Mx. City to Cuernavaca
			case 0:
				alert("Please select transportation from Mexico City to Cuernavaca for person " + PersonNum + ".")
				TransportTypeArrival.focus()
				return
			
			//if student uses public bus service
			case 1:
				total_Person4 = total_Person4 + parseFloat(TransportTypeArrival.value)
				break
			
			//if student uses private transport for 1 person
			case 2:
				total_Person4 = total_Person4 + parseFloat(TransportTypeArrival.value)
				break
			
			//if student uses private transport for 2 people
			case 3:
				total_Person4 = total_Person4 + parseFloat(TransportTypeArrival.value) / 2
				break
			
			//if student uses private transport for 3 people
			case 4:
				total_Person4 = total_Person4 + parseFloat(TransportTypeArrival.value) / 3
				break
			
			//if student uses private transport for 4 or mor people
			case 5:
				total_Person4 = total_Person4 + parseFloat(TransportTypeArrival.value)
				break
				
			//if student is going to provide his/her own means of transportation
			case 6:
				//do nothing
				break
		}
		
		//Calc transportation from Cuernavaca to Mx. City					
		switch(TransportTypeDeparture.selectedIndex) {
			
			//if Student hasn't specified transportation from Cuernavaca to Mx. City
			case 0:
				alert("Please select transportation from Cuernavaca to Mexico City for person " + PersonNum + ".")
				TransportTypeDeparture.focus()
				return
			
			//if student uses public bus service
			case 1:
				total_Person4 = total_Person4 + parseFloat(TransportTypeDeparture.value)
				break
			
			//if student uses private transport for 1 person
			case 2:
				total_Person4 = total_Person4 + parseFloat(TransportTypeDeparture.value)
				break
			
			//if student uses private transport for 2 people
			case 3:
				total_Person4 = total_Person4 + parseFloat(TransportTypeDeparture.value) / 2
				break
			
			//if student uses private transport for 3 people
			case 4:
				total_Person4 = total_Person4 + parseFloat(TransportTypeDeparture.value) / 3
				break
			
			//if student uses private transport for 4 or more people
			case 5:
				total_Person4 = total_Person4 + parseFloat(TransportTypeDeparture.value)
				break
				
			//if student is going to provide his/her own means of transportation
			case 6:
				//do nothing
				break
		}
		}
		
		//Show user the cost per person
		Total_Person1.value = total_Person1
		Total_Person2.value = total_Person2
		Total_Person3.value = total_Person3
		Total_Person4.value = total_Person4
		
		//Sum the cost per person
		total = total_Person1 + total_Person2 + total_Person3 + total_Person4
		
		//Show user the total cost
		Total.value = total
	}
}
//-->
