function captureSearchText(searchText)
	{
		searchText.missingDepartCity 			= "\nPlease select the city you will be departing from.\n";
		searchText.missingArriveCity 			= "\nPlease choose your destination.\n";
		searchText.popup_max_passenger_amount_1	= "You are allowed a maximum of ";
		searchText.popup_max_passenger_amount_2	= " passengers\nper booking online. If your party is larger\nthan this, please call our reservation center.";
		searchText.popup_missing_passenger_amount = "You must enter at least one passenger.";
		searchText.popup_too_many_infants	= "If you wish to book a greater number of\nInfants than Adults, please contact our\nreservation center for possible arrangements.";
		searchText.popup_illogical_open_jaw	= "The selected outbound and return city pairs\nare not logical. You should either return to the \nsame city you fly out from, or return from the\nsame city you fly into.\n";
		searchText.popup_pre_flight_date_1 = "Please select a flight departing \non ";
		searchText.popup_pre_flight_date_2 = " or later. \n\nClick OK to reset your date selection.";
		searchText.popup_post_live_flight_date_1 = "All flights are currently scheduled for\n";
		searchText.popup_post_live_flight_date_2 = " or earlier. \n\nClick OK to reset your date selection.";
		searchText.popup_initial_flight_date	= "Friday, 01 June 2007";
		searchText.popup_final_flight_date		= "Monday, 30 June 2008";
		searchText.popup_flight_or_orig_dest	= "Please either enter in a flight number or\nselect cities of origin and/or destination.";
		searchText.popup_invalid_city_pair		= "Your origin and destination cities\nare the same. Please change one or\nthe other.";
		searchText.months 						= new Array();
		searchText.months[0]					= "January";
		searchText.months[1]					= "February";
		searchText.months[2]					= "March";
		searchText.months[3]					= "April";
		searchText.months[4]					= "May";
		searchText.months[5]					= "June";
		searchText.months[6]					= "July";
		searchText.months[7]					= "August";
		searchText.months[8] 					= "September";
		searchText.months[9]					= "October";
		searchText.months[10]					= "November";
		searchText.months[11]					= "December";
		searchText.sameDayWarning	 			=

		"\nYour return date is\nthe same as your departure date.\n\nIs such a short trip intentional?\n";

		searchText.popup_traveldates_missing		= "";
	}



function captureSearchPrefs(searchPrefs)
	{
		searchPrefs.OFFER_OPEN_JAW_ROUTES 		= 'true';
		searchPrefs.DISPLAY_AIRPORT_CITY_CODES 	= 'true';
		searchPrefs.MAX_PASSENGERS_ALLOWED 		= '9';
		searchPrefs.paxTypes					= [];
		searchPrefs.initial_date_used			= '';
		searchPrefs.final_date_used				= '';
		searchPrefs.allow_todays_date			= 'true';
		searchPrefs.DISPLAY_ROUTE_DATES			= 'true';


		searchPrefs.paxTypes.push("ADULT");

		searchPrefs.paxTypes.push("CHILD");

	}


	
	function buildAirports()
	{
		var apts	= new Array();
		var dests;

		dests		= new Array(
'ABZ','TUK','AYT','DLM','NBE','FUE','IBZ','ACE','LCA','PMI','REU','TFS');
		apts[0]		= new airport( false, "ABZ", "Aberdeen", "", dests );
		dests		= new Array(
'LON','BFS','BHX','EMA','GLA','IOM','LBA','LGW','MAN','NCL');
		apts[1]		= new airport( false, "ALC", "Alicante", "", dests );
		dests		= new Array(
'ABZ','LON','BFS','BHX','BRS','CWL','EMA','EDI','GLA','LBA','LGW','STN','MAN','NCL');
		apts[2]		= new airport( true, "CIS", "All Canaries Airports", "", dests );
		dests		= new Array(
'ABZ','LON','BFS','BHX','BRS','CWL','EMA','EDI','GLA','LBA','LGW','MAN','NCL');
		apts[3]		= new airport( true, "CYP", "All Cyprus Airports", "", dests );
		dests		= new Array(
'ALC','CIS','CYP','TUK','LEI','AYT','BJL','BJV','BOJ','CUN','CFU','DLM','NBE','VDB','FAO','FUE','FNC','GVA','GOI','GNB','SKG','HER','HRG','IBZ','INN','ADB','KLX','EFL','KGS','ACE','LCA','LPA','LXS','LXR','MAH','MLA','MBA','MIR','MBJ','MJT','NAP','SFB','OSD','PMI','PFO','PVK','POP','PUJ','REU','RHO','SZG','SMI','JTR','SSH','JSI','SOF','TFS','TLS','DJE','TUS','TRN','VRN','ZTH');
		apts[4]		= new airport( true, "LON", "All London Airports", "", dests );
		dests		= new Array(
'ABZ','LON','BFS','BHX','BOH','BRS','CWL','DSA','EMA','EDI','EXT','GLA','HUY','LBA','LGW','STN','MAN','NCL','NWI');
		apts[5]		= new airport( true, "TUK", "All Turkey Airports", "", dests );
		dests		= new Array(
'LON','LGW','MAN');
		apts[6]		= new airport( false, "LEI", "Almeria", "May to Oct", dests );
		dests		= new Array(
'ABZ','LON','BFS','BHX','BOH','BRS','CWL','DSA','EMA','EDI','EXT','GLA','HUY','LBA','LGW','STN','LTN','MAN','NCL','NWI');
		apts[7]		= new airport( false, "AYT", "Antalya", "", dests );
		dests		= new Array(
'ALC','CIS','CYP','TUK','AYT','BJV','DLM','NBE','FUE','HER','IBZ','ADB','KGS','ACE','LCA','LPA','ILD','MAH','MIR','SFB','PMI','REU','SSH','TFS','TLS','TUS');
		apts[8]		= new airport( false, "BFS", "Belfast", "", dests );
		dests		= new Array(
'REU');
		apts[9]		= new airport( false, "BHD", "Belfast City", "", dests );
		dests		= new Array(
'ALC','CIS','CYP','TUK','AYT','BJL','BJV','BOJ','CFU','DLM','NBE','FAO','FUE','FNC','GNB','HER','HRG','IBZ','ADB','EFL','KGS','ACE','LCA','LPA','ILD','MAH','MIR','PMI','PFO','REU','RHO','SZG','JTR','SSH','JSI','TFS','TLS','TUS','TRN','ZTH');
		apts[10]		= new airport( false, "BHX", "Birmingham", "", dests );
		dests		= new Array(
'LON','BFS','BHX','BRS','CWL','EMA','EDI','GLA','LBA','LGW','STN','MAN','NCL');
		apts[11]		= new airport( false, "BJV", "Bodrum", "", dests );
		dests		= new Array(
'LON','BHX','GLA','LGW','MAN','NCL');
		apts[12]		= new airport( false, "BOJ", "Bourgas", "May to Oct", dests );
		dests		= new Array(
'AYT','DLM','MIR');
		apts[13]		= new airport( false, "BOH", "Bournemouth", "", dests );
		dests		= new Array(
'CIS','CYP','TUK','AYT','BJV','CFU','DLM','NBE','FAO','FUE','GNB','HER','IBZ','ADB','KGS','ACE','LCA','LPA','ILD','MAH','MIR','PMI','PFO','REU','RHO','SZG','SSH','JSI','SOF','TFS','TLS','TUS','TRN','ZTH');
		apts[14]		= new airport( false, "BRS", "Bristol", "", dests );
		dests		= new Array(
'CIS','CYP','TUK','AYT','BJV','DLM','NBE','FUE','HER','IBZ','ACE','LCA','LPA','MIR','PMI','PFO','REU','RHO','TFS','TUS','ZTH');
		apts[15]		= new airport( false, "CWL", "Cardiff", "", dests );
		dests		= new Array(
'LON','BHX','BRS','EMA','GLA','LGW','MAN','NCL');
		apts[16]		= new airport( false, "CFU", "Corfu", "May to Oct", dests );
		dests		= new Array(
'ABZ','LON','BFS','BHX','BOH','BRS','CWL','DSA','EMA','EDI','EXT','GLA','HUY','LBA','LGW','STN','LTN','MAN','NCL','NWI');
		apts[17]		= new airport( false, "DLM", "Dalaman", "", dests );
		dests		= new Array(
'TUK','AYT','DLM','NBE','ACE','PMI','RHO','TUS');
		apts[18]		= new airport( false, "DSA", "Doncaster Robin Hood", "", dests );
		dests		= new Array(
'ALC','CIS','CYP','TUK','AYT','BJV','CFU','DLM','NBE','FUE','FNC','HER','HRG','IBZ','ADB','KGS','ACE','LCA','LPA','MAH','MLA','MIR','PMI','PFO','REU','RHO','SSH','JSI','SOF','TFS','TUS','ZTH');
		apts[19]		= new airport( false, "EMA", "East Midlands", "", dests );
		dests		= new Array(
'TUK','AYT','BJV','DLM','NBE','PMI','PFO','REU','TFS','TUS');
		apts[20]		= new airport( false, "EDI", "Edinburgh", "", dests );
		dests		= new Array(
'CIS','CYP','TUK','AYT','DLM','MIR','PMI','TUS');
		apts[21]		= new airport( false, "EXT", "Exeter", "", dests );
		dests		= new Array(
'LON','LGW');
		apts[22]		= new airport( false, "VDB", "Fagernes", "Dec to Apr", dests );
		dests		= new Array(
'LON','BHX','BRS','GLA','LGW','MAN','NCL');
		apts[23]		= new airport( false, "FAO", "Faro", "", dests );
		dests		= new Array(
'ABZ','LON','BFS','BHX','BRS','CWL','EMA','GLA','LBA','LGW','STN','MAN','NCL');
		apts[24]		= new airport( false, "FUE", "Fuerteventura", "", dests );
		dests		= new Array(
'BHX','EMA','GLA','LGW','MAN');
		apts[25]		= new airport( false, "FNC", "Funchal", "", dests );
		dests		= new Array(
'LON','LGW','MAN');
		apts[26]		= new airport( false, "GVA", "Geneva", "Dec to Apr", dests );
		dests		= new Array(
'ALC','CIS','CYP','TUK','AYT','BJV','BOJ','CUN','CFU','DLM','NBE','FAO','FUE','FNC','HER','HRG','IBZ','ADB','EFL','KGS','ACE','LCA','LPA','LAS','MAH','MLA','MIR','SFB','PMI','PFO','POP','REU','RHO','SSH','TFS','TUS','ZTH');
		apts[27]		= new airport( false, "GLA", "Glasgow", "", dests );
		dests		= new Array(
'LON','LGW','MAN');
		apts[28]		= new airport( false, "GOI", "Goa", "Nov to Apr", dests );
		dests		= new Array(
'LON','BHX','BRS','LGW','MAN');
		apts[29]		= new airport( false, "GNB", "Grenoble", "Dec to Apr", dests );
		dests		= new Array(
'LON','LGW','MAN');
		apts[30]		= new airport( false, "SKG", "Halkidiki", "May to Oct", dests );
		dests		= new Array(
'LON','BFS','BHX','BRS','CWL','EMA','GLA','LBA','LGW','MAN','NCL');
		apts[31]		= new airport( false, "HER", "Heraklion", "", dests );
		dests		= new Array(
'CYP','TUK','AYT','DLM','NBE','PMI');
		apts[32]		= new airport( false, "HUY", "Humberside", "", dests );
		dests		= new Array(
'ABZ','LON','BFS','BHX','BRS','CWL','EMA','GLA','IOM','LBA','LGW','STN','MAN','NCL','SOU');
		apts[33]		= new airport( false, "IBZ", "Ibiza", "May to Oct", dests );
		dests		= new Array(
'LON','LGW','MAN');
		apts[34]		= new airport( false, "INN", "Innsbruck", "Dec to Apr", dests );
		dests		= new Array(
'ALC','IBZ','PMI');
		apts[35]		= new airport( false, "IOM", "Isle of Man", "", dests );
		dests		= new Array(
'LON','BFS','BHX','BRS','EMA','GLA','LGW','STN','MAN','NCL');
		apts[36]		= new airport( false, "ADB", "Izmir", "", dests );
		dests		= new Array(
'LON','LGW','MAN');
		apts[37]		= new airport( false, "KLX", "Kalamata", "May to Oct", dests );
		dests		= new Array(
'LON','BHX','GLA','LGW','STN','MAN','NCL');
		apts[38]		= new airport( false, "EFL", "Kefalonia", "May to Oct", dests );
		dests		= new Array(
'LON','BFS','BHX','BRS','EMA','GLA','LBA','LGW','STN','MAN','NCL');
		apts[39]		= new airport( false, "KGS", "Kos", "May to Oct", dests );
		dests		= new Array(
'ABZ','LON','BFS','BHX','BRS','CWL','DSA','EMA','GLA','LBA','LGW','STN','MAN','NCL');
		apts[40]		= new airport( false, "ACE", "Lanzarote", "", dests );
		dests		= new Array(
'ABZ','LON','BFS','BHX','BRS','CWL','EMA','GLA','LBA','LGW','MAN','NCL');
		apts[41]		= new airport( false, "LCA", "Larnaca", "", dests );
		dests		= new Array(
'LON','BFS','BHX','BRS','CWL','EMA','GLA','LBA','LGW','STN','MAN','NCL');
		apts[42]		= new airport( false, "LPA", "Las Palmas", "", dests );
		dests		= new Array(
'LON','GLA','LGW','MAN');
		apts[43]		= new airport( false, "LAS", "Las Vegas", "Mar to Dec", dests );
		dests		= new Array(
'ALC','CIS','CYP','TUK','AYT','BJV','DLM','NBE','FUE','HER','IBZ','KGS','ACE','LCA','LPA','MAH','MIR','PMI','TFS','TUS','ZTH');
		apts[44]		= new airport( false, "LBA", "Leeds Bradford", "", dests );
		dests		= new Array(
'LON','LGW');
		apts[45]		= new airport( false, "LXS", "Lemnos", "May to Oct", dests );
		dests		= new Array(
'LON','BFS','BHX','BRS','LGW','MAN');
		apts[46]		= new airport( false, "ILD", "Lleida", "Nov to Apr", dests );
		dests		= new Array(
'ALC','CIS','CYP','TUK','LEI','AYT','BJL','BJV','BOJ','CUN','CFU','DLM','NBE','VDB','FAO','FUE','FNC','GVA','GOI','GNB','SKG','HER','HRG','IBZ','INN','ADB','KLX','EFL','KGS','ACE','LCA','LPA','LAS','LXS','ILD','LXR','MAH','MLA','MBA','MIR','MBJ','MJT','NAP','SFB','PMI','PFO','PVK','POP','PUJ','REU','RHO','SZG','SMI','JTR','SSH','JSI','SOF','TFS','TLS','DJE','TUS','TRN','VRN','ZTH');
		apts[47]		= new airport( false, "LGW", "London Gatwick", "", dests );
		dests		= new Array(
'OSD');
		apts[48]		= new airport( false, "LHR", "London Heathrow", "", dests );
		dests		= new Array(
'CIS','CYP','TUK','AYT','BJV','DLM','NBE','FUE','IBZ','ADB','EFL','KGS','ACE','LPA','MAH','MIR','PMI','PFO','SSH','TFS','TUS','ZTH');
		apts[49]		= new airport( false, "STN", "London Stansted", "", dests );
		dests		= new Array(
'AYT','DLM','FNC','RHO','ZTH');
		apts[50]		= new airport( false, "LTN", "Luton", "", dests );
		dests		= new Array(
'LON','BFS','BHX','BRS','EMA','GLA','LBA','LGW','STN','MAN','NCL','SOU');
		apts[51]		= new airport( false, "MAH", "Mahon", "May to Oct", dests );
		dests		= new Array(
'MAN');
		apts[52]		= new airport( false, "AGP", "Malaga", "", dests );
		dests		= new Array(
'LON','EMA','GLA','LGW','MAN');
		apts[53]		= new airport( false, "MLA", "Malta", "", dests );
		dests		= new Array(
'ALC','CIS','CYP','TUK','LEI','AYT','BJL','BJV','BOJ','CUN','BVC','CFU','DLM','NBE','FAO','FUE','FNC','GVA','GOI','GNB','SKG','HER','HRG','IBZ','INN','ADB','KLX','EFL','KGS','ACE','LCA','LPA','LAS','ILD','LXR','MAH','AGP','MLA','MBA','MIR','MBJ','MJT','NAP','NCE','SFB','OSD','PMI','PFO','PVK','POP','PUJ','REU','RHO','SZG','SMI','SNU','JTR','SSH','JSI','SOF','SPU','TFS','TLS','DJE','TUS','TRN','VRN','ZTH');
		apts[54]		= new airport( false, "MAN", "Manchester", "", dests );
		dests		= new Array(
'LON','LGW','MAN');
		apts[55]		= new airport( false, "MJT", "Mytilene ", "May to Oct", dests );
		dests		= new Array(
'LON','LGW','MAN');
		apts[56]		= new airport( false, "NAP", "Naples", "", dests );
		dests		= new Array(
'ALC','CIS','CYP','TUK','AYT','BJL','BJV','BOJ','CFU','DLM','NBE','FAO','FUE','HER','HRG','IBZ','ADB','EFL','KGS','ACE','LCA','LPA','MAH','MIR','PMI','PFO','REU','RHO','SSH','JSI','TFS','TUS','ZTH');
		apts[57]		= new airport( false, "NCL", "Newcastle", "", dests );
		dests		= new Array(
'MAN');
		apts[58]		= new airport( false, "NCE", "Nice", "May to Oct", dests );
		dests		= new Array(
'TUK','AYT','DLM','NBE','MIR','PMI','TUS');
		apts[59]		= new airport( false, "NWI", "Norwich", "", dests );
		dests		= new Array(
'LON','BFS','GLA','LGW','MAN');
		apts[60]		= new airport( false, "SFB", "Orlando / Sanford Florida", "", dests );
		dests		= new Array(
'ABZ','LON','BFS','BHX','BRS','CWL','DSA','EMA','EDI','EXT','GLA','HUY','IOM','LBA','LGW','STN','MAN','NCL','NWI','SOU');
		apts[61]		= new airport( false, "PMI", "Palma", "", dests );
		dests		= new Array(
'LON','BHX','BRS','CWL','EMA','EDI','GLA','LGW','STN','MAN','NCL');
		apts[62]		= new airport( false, "PFO", "Paphos", "", dests );
		dests		= new Array(
'LON','LGW','MAN');
		apts[63]		= new airport( false, "PVK", "Preveza", "May to Oct", dests );
		dests		= new Array(
'LON','GLA','LGW','MAN');
		apts[64]		= new airport( false, "POP", "Puerto Plata", "", dests );
		dests		= new Array(
'LON','LGW','MAN');
		apts[65]		= new airport( false, "PUJ", "Punta Cana", "", dests );
		dests		= new Array(
'ABZ','LON','BFS','BHD','BHX','BRS','CWL','EMA','GLA','LGW','MAN','NCL');
		apts[66]		= new airport( false, "REU", "Reus", "May to Oct", dests );
		dests		= new Array(
'LON','BHX','BRS','CWL','DSA','EMA','GLA','LGW','LTN','MAN','NCL');
		apts[67]		= new airport( false, "RHO", "Rhodes", "Apr to Oct", dests );
		dests		= new Array(
'LON','BHX','BRS','LGW','MAN');
		apts[68]		= new airport( false, "SZG", "Salzburg", "Dec to Apr", dests );
		dests		= new Array(
'LON','LGW');
		apts[69]		= new airport( false, "SMI", "Samos", "May to Oct", dests );
		dests		= new Array(
'MAN');
		apts[70]		= new airport( false, "SNU", "Santa Clara", "May to Oct", dests );
		dests		= new Array(
'LON','BHX','LGW','MAN');
		apts[71]		= new airport( false, "JTR", "Santorini", "May to Oct", dests );
		dests		= new Array(
'LON','BHX','BRS','EMA','LGW','MAN','NCL');
		apts[72]		= new airport( false, "JSI", "Skiathos", "May to Oct", dests );
		dests		= new Array(
'LON','BRS','EMA','LGW','MAN');
		apts[73]		= new airport( false, "SOF", "Sofia", "Nov to Apr", dests );
		dests		= new Array(
'IBZ','MAH','PMI');
		apts[74]		= new airport( false, "SOU", "Southamption", "", dests );
		dests		= new Array(
'ABZ','LON','BFS','BHX','BRS','CWL','EMA','EDI','GLA','LBA','LGW','STN','MAN','NCL');
		apts[75]		= new airport( false, "TFS", "Tenerife", "", dests );
		dests		= new Array(
'LON','BFS','BHX','BRS','LGW','MAN');
		apts[76]		= new airport( false, "TLS", "Toulouse", "Dec to Apr", dests );
		dests		= new Array(
'LON','BHX','LGW','MAN');
		apts[77]		= new airport( false, "TRN", "Turin", "Dec to Apr", dests );
		dests		= new Array(
'LON','LGW','MAN');
		apts[78]		= new airport( false, "VRN", "Verona", "Dec to Apr", dests );
		dests		= new Array(
'LON','BHX','BRS','CWL','EMA','GLA','LBA','LGW','STN','LTN','MAN','NCL');
		apts[79]		= new airport( false, "ZTH", "Zante", "May to Oct", dests );

			dests = new Array(
'LON','BHX','LGW','MAN','NCL');
			apts[80]		= new airport( false, "BJL", "Banjul", "", dests );
	
				dests = new Array(
'LON','GLA','LGW','MAN');
			apts[81]		= new airport( false, "CUN", "Cancun", "", dests );
	
				dests = new Array(
'MAN');
			apts[82]		= new airport( false, "BVC", "Cape Verde", "", dests );
	
				dests = new Array(
'ABZ','LON','BFS','BHX','BRS','CWL','DSA','EMA','EDI','GLA','HUY','LBA','LGW','STN','MAN','NCL','NWI');
			apts[83]		= new airport( false, "NBE", "Enfidha, Tunisia", "", dests );
	
				dests = new Array(
'LON','BHX','EMA','GLA','LGW','MAN','NCL');
			apts[84]		= new airport( false, "HRG", "Hurghada", "", dests );
	
				dests = new Array(
'LON','LGW','MAN');
			apts[85]		= new airport( false, "LXR", "Luxor", "", dests );
	
				dests = new Array(
'LON','LGW','MAN');
			apts[86]		= new airport( false, "MBA", "Mombasa", "", dests );
	
				dests = new Array(
'LON','BFS','BHX','BOH','BRS','CWL','EMA','EXT','GLA','LBA','LGW','STN','MAN','NCL','NWI');
			apts[87]		= new airport( false, "MIR", "Monastir, Tunisia", "", dests );
	
				dests = new Array(
'LON','LGW','MAN');
			apts[88]		= new airport( false, "MBJ", "Montego Bay", "", dests );
	
				dests = new Array(
'LON','LHR','MAN');
			apts[89]		= new airport( false, "OSD", "Ostersund", "", dests );
	
				dests = new Array(
'LON','BFS','BHX','BRS','EMA','GLA','LGW','STN','MAN','NCL');
			apts[90]		= new airport( false, "SSH", "Sharm El Sheikh", "", dests );
	
				dests = new Array(
'MAN');
			apts[91]		= new airport( false, "SPU", "Split", "", dests );
	
				dests = new Array(
'LGW','MAN');
			apts[92]		= new airport( false, "DJE", "Tunisia - Djerba", "", dests );
	
				dests = new Array(
'ABZ','LON','BFS','BHX','BOH','BRS','CWL','DSA','EMA','EDI','EXT','GLA','HUY','LBA','LGW','STN','MAN','NCL','NWI');
			apts[93]		= new airport( true, "TUS", "Tunisia - Monastir/Enfhida", "", dests );
	
				return apts;
		}
    


	function captureDateText(dateText)
	{

		dateText.departDatePast	 			= "\nThe date you selected has already passed.\n\nClick OK to reset your date selection.\n";
		dateText.datesNotSameDate	 		= "\nThe dates are not the same.\n";
		dateText.datesNotFutureTime	 		= "\nThe time or date selected maybe the same or overlaps in the past. Please reselect the date or time.\n";
		dateText.datesOverlap1		 		= "Please make sure that your ";
		dateText.datesOverlap2		 		= "\nis not earlier than your ";
		dateText.datesOverlap3		 		= "\n\nClick OK to reset your ";
		dateText.datesOverlapDepart			= "depart date";
		dateText.datesOverlapReturn			= "return date";
		dateText.datesOverlapDepartCar		= "";
		dateText.datesOverlapReturnCar		= "";
		dateText.datesOverlapDepartHotel	= "";
		dateText.datesOverlapReturnHotel	= "";
		dateText.datesOverlapDepartAct		= "";
		dateText.datesOverlapReturnAct		= "";
		dateText.months 					= new Array();
		dateText.months[0]					= "January";
		dateText.months[1]					= "February";
		dateText.months[2]					= "March";
		dateText.months[3]					= "April";
		dateText.months[4]					= "May";
		dateText.months[5]					= "June";
		dateText.months[6]					= "July";
		dateText.months[7]					= "August";
		dateText.months[8] 					= "September";
		dateText.months[9]					= "October";
		dateText.months[10]					= "November";
		dateText.months[11]					= "December";
		dateText.sameDayWarning	 			= "Your return date is\nthe same as your departure date.\n\nIs such a short trip intentional?";

		// Invalid Date text
		dateText.invaliddepartDay1			= "\nYour departure date is invalid.\n";
		dateText.invaliddepartDay2			= "\nYour return date is invalid.\n";
		dateText.invalidcheckinDay1			= "\nYour checkin date is invalid.\n";
		dateText.invalidcheckoutDay1		= "\nYour checkout date is invalid.\n";
		dateText.invalidcarPickupDay		= "\nYour pick-up date is invalid.\n";
		dateText.invalidcarDropoffDay		= "\nYour drop-off date is invalid.\n";
		dateText.invalidactivityStartDay1	= "\nYour activity start date is invalid.\n";
		dateText.invalidactivityEndDay1		= "\nYour activity end date is invalid.\n";

		dateText.invalidMonthHasOnly		= " has only ";
		dateText.invalidMonthHasOnlyDays	= " days.\n";
	}


	function captureDatePrefs(datePrefs)
	{
	}




	function finalDate()
	{
		var okay	= true;




			var day_elem		= eval ('document.skylightsForm.departDay1');
			var mon_elem		= eval ('document.skylightsForm.departMonth1');
			var oDay		= day_elem.options[ day_elem.selectedIndex ].value
			var oYear		= mon_elem.options[ mon_elem.selectedIndex ].value.substr(0,4);
			var oMonth		= mon_elem.options[ mon_elem.selectedIndex ].value.substr(4,2);
			var oMonthYear		= "" + oYear + oMonth;


			if ( okay == true && oDay == 01 && oMonthYear == 200706 )
			{

				alert("\nBecause today\'s date has been selected, only \nflights that leave today at least 3 hours00 minutes\nfrom the current time will be shown on the next page.\n");

			}


		return okay;
	}

function returnNedstatURL(mod,pg)

{
	var whatProtocol = window.location.toString().substring(0,window.location.toString().indexOf(':'));
	var scriptbase = "";

	if(whatProtocol != 'https')
	{
		scriptbase = 'http://book.flythomascook.com/skylights/cgi-bin/skylights.cgi?sid=&language=EN&mode=';
	}
	else
	{
		scriptbase = 'https://book.flythomascook.com/skylights/cgi-bin/skylights.cgi?sid=&language=EN&mode=';
	}

	return scriptbase + '&module=' + mod + '&page=' + pg;
}







function captureUtilCustom(utilCustom)
	{
		utilCustom.popup_flight_or_orig_dest	= "Please either enter in a flight number or\nselect cities of origin and/or destination.";
		utilCustom.popup_invalid_city_pair		= "Your origin and destination cities\nare the same. Please change one or\nthe other.";


		utilCustom.loginModule				= "";
		utilCustom.loginPage 					= "";
		utilCustom.mpEnabled		= "on";
		utilCustom.flEnabled		= "on";
		utilCustom.ciEnabled		= "on";
	}




function checkLogin()
{

	var gone	= '';


		if (! filterEmailField(document.skylightsForm.email) )
		{
			return false;
		}
		if (! document.skylightsForm.email.value)
		{
			gone += '- Your E-mail Address' + '\n';
		}


	if (! document.skylightsForm.pw.value)
	{
	    gone += '- Your Password' + '\n';
	}

	if (gone != '')
	{
	    alert('\nPlease enter valid data for the \nfollowing mandatory field(s): \n\n' + gone);
	    return false;
	}

	return true;

}




	function captureFilterEmailText(filterEmailText)
	{
		filterEmailText.invalidEmailChars		= "The e-mail address you entered \ncontains one or more invalid characters.";
		filterEmailText.noEmailAtSign			= "The e-mail address you entered \nis missing its @ sign.";
		filterEmailText.excessEmailAtSigns		= "The e-mail address you entered \ncontains too many @ signs.";
		filterEmailText.noEmailExtension		= "The e-mail address you entered \nis missing its extension.";
		filterEmailText.badEmailExtension		= "The e-mail address you entered appears\nto use an invalid extension.";
		filterEmailText.popupFieldLength1		= "\nPlease enter a value \nthat is between ";
		filterEmailText.popupFieldLength2		= " and ";
		filterEmailText.popupFieldLength3		= " \ncharacters in length.\n";
	}



	function captureFilterText(filterText)
	{
		filterText.invalidCharPopup				= "\nThis field contains invalid characters.\n\nPlease avoid the use of non-standard \nascii characters, such as:\n     { } [ ] < > ! ^ | `\n\nPlease enter corrected information.\n";
		filterText.popupFieldFixedLength1		= "\nPlease enter a value that is\n";
		filterText.popupFieldFixedLength2		= " characters in length.\n";
		filterText.popupFieldLength1			= "\nPlease enter a value \nthat is between ";
		filterText.popupFieldLength2			= " and ";
		filterText.popupFieldLength3			= " \ncharacters in length.\n";
		filterText.mustUseNumbers				= "\nPlease enter a valid \nnumber in this field.\n";

		filterText.specialChar					= "";
	}



