
//#########################################################################
//#															     		  #
//#					function:fillcombo									  #
//#					Function to fill the date dropdowns					  #	
//#																		  #
//#########################################################################	
		function fillcombo(testreq)
		{
			var dDate = new Date();
			var curDate = dDate.getTime();
		var curYear = dDate.getFullYear();
		
			var increment = 86400000;
			var nDate = new Date();
			var dayConstant = 86400000;
			var strMonths = new Array();
			var strMonth = new Array();
			var strDay = new Array();
			var xDate1 = new Date(2004,03,18);
			var xDate2 = new Date(2004,03,30);
			var testtime = xDate1.getTime();
			//#if (testtime > curDate )
			//#{

			//#	curDate = testtime;

			//# }
			var nexDate=  curDate + increment * 601;
		
			nextDate = nexDate + increment ;
			
			strMonths[0]  = "January";
			strMonths[1]  = "February";
			strMonths[2]  = "March";
			strMonths[3]  = "April";
			strMonths[4]  = "May";
			strMonths[5]  =	"June";
			strMonths[6]  = "July";
			strMonths[7]  = "August";
			strMonths[8]  = "September";
			strMonths[9]  = "October";
			strMonths[10] = "November";
			strMonths[11] = "December";
			
			strDay[0] ="Sun";
			strDay[1] ="Mon";
			strDay[2] ="Tue";
			strDay[3] ="Wed";
			strDay[4] ="Thu";
			strDay[5] ="Fri";
			strDay[6] ="Sat";
			
			strMonth[0]  = "JAN";
			strMonth[1]  = "FEB";
			strMonth[2]  = "MAR";
			strMonth[3]  = "APR";
			strMonth[4]  = "MAY";
			strMonth[5]  =	"JUN";
			strMonth[6]  = "JUL";
			strMonth[7]  = "AUG";
			strMonth[8]  = "SEP";
			strMonth[9]  = "OCT";
			strMonth[10] = "NOV";
			strMonth[11] = "DEC";
			
				
			for (i =curDate;  i <= nexDate; i++ )
			{
				
				nDate.setTime(i);
				var curDatert=nDate.getDate();
				var curDay = strDay[nDate.getDay()];
				var curMonth= strMonths[nDate.getMonth()];
				var curMnth1	= strMonth[nDate.getMonth()];
				
				var curMnth = nDate.getMonth() +1;
				if (curMnth < 10)
				{
				 curMnth= "0" + curMnth;
				}
				
				if (curDatert <10)
				{
					curDatert= "0" + curDatert;
				}
				
				
				var strDate =  curDatert + " " + curMonth + " " +  nDate.getFullYear() + " - " +  curDay;
				var strDtVal = nDate.getFullYear() + "-"  + curMnth +  "-"  +  curDatert ;
				if (strDtVal==testreq)
				{
					
					var strBuild = "<option value = '" + strDtVal + "' selected >" + strDate + "</option>";
				}
				else
				{
					var strBuild = "<option value = '" + strDtVal + "'>" + strDate + "</option>";
				}
				//#var strBuild = "<option value = '" + strDtVal + "'>" + strDate + "</option>";
			
				
				document.write (strBuild);
				strBuild="";
				
				i= i + increment;
			}

		}  
		
	
//#########################################################################
//#																		  #		
//#			function:fourdigit											  #
//#			Convert 2 digit year to 4 digit year						  #
//#																		  #
//#########################################################################
		function fourdigits(number)
		{
				return (number < 1000) ? number + 1900 : number;
   		}


//#########################################################################
//#																		  #
//#				function:fillcomboski									  #	
//#	     Fill skidate dropdowns with ski dates							  #		
//#																		  #
//#########################################################################


		
				function fillcomboski()
		{
			var dDate = new Date();
			var curDate = dDate.getTime();
			var curYear = dDate.getFullYear();
			var curMonth = dDate.getMonth();
			//#if (curMonth < 4)
			//#curYear = curYear - 1;
			var increment = 86400000;
			var	 nDate = new Date();
			var dayConstant = 86400000;
			var strMonths = new Array();
			var strMonth = new Array();
			var strDay = new Array();
			var nexDate=  dDate.getTime() + increment * 365;
			 if (curMonth < 5)
			{
				var xDate1 = new Date(curYear,curMonth,01);
			}
			else
			{
				var xDate1 = new Date(curYear,10,01);
			}
			
			var xDate2 = new Date(curYear+1,04,30);
			var testtime = xDate1.getTime();
			var testtime2 = xDate2.getTime();


			if (testtime > curDate )
			{
				curDate = testtime;
			 }

			if (curDate > testtime2)
			{
				 testtime2=curDate ;
			}
			strMonths[0]  = "January";
			strMonths[1]  = "February";
			strMonths[2]  = "March";
			strMonths[3]  = "April";
			strMonths[4]  = "May";
			strMonths[5]  =	"June";
			strMonths[6]  = "July";
			strMonths[7]  = "August";
			strMonths[8]  = "September";
			strMonths[9]  = "October";
			strMonths[10] = "November";
			strMonths[11] = "December";
			strDay[0] ="Sun";
			strDay[1] ="Mon";
			strDay[2] ="Tue";
			strDay[3] ="Wed";
			strDay[4] ="Thu";
			strDay[5] ="Fri";
			strDay[6] ="Sat";
			strMonth[0]  = "JAN";
			strMonth[1]  = "FEB";
			strMonth[2]  = "MAR";
			strMonth[3]  = "APR";
			strMonth[4]  = "MAY";
			strMonth[5]  =	"JUN";
			strMonth[6]  = "JUL";
			strMonth[7]  = "AUG";
			strMonth[8]  = "SEP";
			strMonth[9]  = "OCT";
			strMonth[10] = "NOV";
			strMonth[11] = "DEC";

			for (i =curDate;  i <= testtime2; i++ )
			{
				nDate.setTime(i);
				var curDatert=nDate.getDate();
				var curDay = strDay[nDate.getDay()];
				var curMonth= strMonths[nDate.getMonth()];
				var curMnth1	= strMonth[nDate.getMonth()];

				var curMnth = nDate.getMonth() +1;
				if ((curMnth < 6) || (curMnth > 10))
				{
				
					if (curMnth < 10)
					{
					curMnth= "0" + curMnth;
					}
					if (curDatert <10)
					{
						curDatert= "0" + curDatert;
					}
					
					var strDate = curDatert + " " + curMonth + " " +  nDate.getFullYear() + " - " + curDay  ;
					var strDtVal =  nDate.getFullYear() + "-"  + curMnth + "-" + curDatert  ;
					
						var strBuild = "<option value = '" + strDtVal + "'>" + strDate + "</option>";
					

					document.write (strBuild);
					strBuild="";
				 }
				i= i + increment;
			}
		}  



		
//#########################################################################
//#																		  #
//#						function:matchFromDate(form)					  #
//#	Function to match the datedropdowns, changes the datedropdown  of the #
//#         departure dateto when departure datefrom is changed			  #
//#																		  #
//#########################################################################

		function matchFromDate(form1){
		 	var objForm = document.forms[form1]
			max = objForm.DeptDateTo.length;
			start_pos = objForm.DeptDateFrom.selectedIndex;
			fin_pos = start_pos + 7;
			if (fin_pos > max){
				objForm.DeptDateTo.selectedIndex = max-1;
			}
			else{
				if (fin_pos == max){
					objForm.DeptDateTo.selectedIndex = max-1;
				}
				else
				{
					objForm.DeptDateTo.selectedIndex = fin_pos-1;
					//#objForm.DeptDateTo.selectedIndex = start_pos;
			
				}
			}
		}
		
//#########################################################################
//#																		  #
//#						function:matchFromDate(form)					  #
//#	Function to match the datedropdowns, changes the datedropdown  of the #
//#         departure dateto when departure datefrom is changed			  #
//#																		  #
//#########################################################################

		function matchFromDateCuba(form1){
		 	var objForm = document.forms[form1]
			max = objForm.DeptDateTo.length;
			start_pos = objForm.DeptDateFrom.selectedIndex;
			fin_pos = start_pos + 12;
			if (fin_pos > max){
				objForm.DeptDateTo.selectedIndex = max-1;
			}
			else{
				if (fin_pos == max){
					objForm.DeptDateTo.selectedIndex = max-1;
				}
				else
				{
					objForm.DeptDateTo.selectedIndex = fin_pos-1;
					//#objForm.DeptDateTo.selectedIndex = start_pos;
			
				}
			}
		}
//#########################################################################
//#																		  #
//#						function:matchToDate(form)						  #
//#	Function to match the datedropdowns, changes the datedropdown  of the # 
//#          departure datefrom when departure dateto is changed		  #	
//#																		  #
//#########################################################################
		function matchToDate(form1){
			var objForm = document.forms[form1]
			//# If to Date is after from date set the to date to the from date	
			if( objForm.DeptDateFrom.selectedIndex  > objForm.DeptDateTo.selectedIndex )
			{
			objForm.DeptDateFrom.selectedIndex = objForm.DeptDateTo.selectedIndex;
			}
		}
//#########################################################################
//#																		  #
//#						function:matchdate(form)						  #
//#	Function to match the datedropdowns, changes the datedropdown  of the #
//#         departure dateto when departure datefrom is changed			  #
//#																		  #
//#########################################################################		

		function matchDate(form1){
		 	var objForm = document.forms[form1]
			start_pos = objForm.DeptDateFrom.selectedIndex;
		}
			


//#########################################################################
//#																		  #
//#						function:matchFromSkiDate(form)					  #
//#	Function to match the datedropdowns, changes the datedropdown  of the #
//#  departure dateto when departure datefrom is changed in ski forms	  #
//#																		  #
//#########################################################################

		function matchFromSkiDate(form1){
			
		 	var objDate1 =  document.getElementById('DeptDateMin');
			var objDate2 =  document.getElementById('DeptDateMax');
			max = objDate2.length
			start_pos = objDate1.selectedIndex;
			fin_pos = start_pos + 7;
			if (fin_pos > max){
				objDate2.selectedIndex = max-1;
			}
			else{
				if (fin_pos == max){
					objDate2.selectedIndex = max-1;
				}
				else
				{
					objDate2.selectedIndex = fin_pos-1;
					//#objForm.List_Date2.selectedIndex = start_pos;
			
				}
			}
		}

//#########################################################################
//#																		  #
//#						function:matchToSkiDate(form)					  #
//#	Function to match the datedropdowns, changes the datedropdown  of the #
//#  departure datefrom when departure dateto is changed in ski forms	  #
//#																		  #
//#########################################################################

		function matchToSkiDate(form1){
			var objDate1 =  document.getElementById('DeptDateMin');
			var objDate2 =  document.getElementById('DeptDateMax');

			//# If to Date is after from date set the to date to the from date	
			if( objDate1.selectedIndex  > objDate2.selectedIndex )
			{
			objDate1.selectedIndex = objDate2.selectedIndex;
			}
		}

//#########################################################################
//#																		  #
//#						function:matchDate1(form)						  #
//#	Function to match the datedropdowns, changes the datedropdown  of the #
//#  departure dateto when departure datefrom is changed in ski forms	  #
//#																		  #
//#########################################################################

		function matchDate1(form1){
		 	var objForm = document.forms[form1];
			start_pos = objForm.List_Date1.selectedIndex;
		}
			

//#########################################################################
//#																		  #
//#						function:matchFromDate1(form)					  #
//#	Function to match the datedropdowns, changes the datedropdown  of the #
//#  departure datefrom  when departure dateto is changed			 	  #
//#		Used where the dropdowns are called List_Date1 and List_Date2     #	
//#																		  #
//#########################################################################

		function matchFromDate1(form1){
			
		 	var objDate1 =  document.getElementById('List_Date1');
			var objDate2 =  document.getElementById('List_Date2');
			max = objDate2.length
			start_pos = objDate1.selectedIndex;
			fin_pos = start_pos + 7;
			if (fin_pos > max){
				objDate2.selectedIndex = max-1;
			}
			else{
				if (fin_pos == max){
					objDate2.selectedIndex = max-1;
				}
				else
				{
					objDate2.selectedIndex = fin_pos-1;
					//#objForm.List_Date2.selectedIndex = start_pos;
			
				}
			}
		}
		
//#########################################################################
//#																		  #
//#						function:matchToDate1(form)						  #
//#	Function to match the datedropdowns, changes the datedropdown  of the #
//#  departure dateto   when departure datefrom is changed			 	  #
//#		Used where the dropdowns are called List_Date1 and List_Date2     #	
//#																		  #
//#########################################################################

			function matchToDate1(form1){
			var objDate1 =  document.getElementById('List_Date1');
			var objDate2 =  document.getElementById('List_Date2');

			//# If to Date is after from date set the to date to the from date	
			if( objDate1.selectedIndex  > objDate2.selectedIndex )
			{
			objDate1.selectedIndex = objDate2.selectedIndex;
			}
		}
	
//#########################################################################
//#																		  #
//#						function:filldept(strDept)						  #
//#			Function to fill the departure dropdowns					  #
//#																		  #
//#########################################################################
																						

		function filldept(strDept)
			{
			var strDeptCode = new Array();
			var strDeptName = new Array();
			var strDeptHeader = new Array();
			
			strDeptCode[0]  = "";
			strDeptCode[1]  = "LGW,LGS,LGN,LHR,STN,LTN";
			strDeptCode[2]  = "LHR";
			strDeptCode[3]  = "LGW,LGS,LGN";
			strDeptCode[4]  = "LTN";
			strDeptCode[5]  = "STN";
			strDeptCode[6]  = "BOH,SOU";
			strDeptCode[7]  = "BOH";
			strDeptCode[8]  = "SOU";
			strDeptCode[9]  = "BRS,EXT";
			strDeptCode[10] = "BRS";
			strDeptCode[11] = "EXT";
			strDeptCode[12] = "BHX,EMA";
			strDeptCode[13] = "BHX";
			strDeptCode[14] = "EMA";
			strDeptCode[15] = "CVT";
			strDeptCode[16] = "BLK,LPL,MAN,MIT";
			strDeptCode[17] = "BLK";
			strDeptCode[18] = "LPL";
			strDeptCode[19] = "MAN,MIT";
			strDeptCode[20] = "DSA,HUY,LBA,NCL,MME";
			strDeptCode[21] = "DSA";
			strDeptCode[22] = "HUY";
			strDeptCode[23] = "LBA";
			strDeptCode[24] = "NCL";
			strDeptCode[25] = "MME";
			strDeptCode[26] = "NWI,STN";
			strDeptCode[27] = "NWI";
			strDeptCode[28] = "ABZ,EDI,GLA,PIK,INV";
			strDeptCode[29] = "ABZ";
			strDeptCode[30] = "EDI";
			strDeptCode[31] = "GLA";
			strDeptCode[32] = "INV";
			strDeptCode[33] = "PIK";
			strDeptCode[34] = "CWL";
			strDeptCode[35] = "CWL";
			strDeptCode[36] = "BFS";
			strDeptCode[37] = "BFS";
			
																
			
			strDeptName[0]  = "Any UK or Ireland Airports";
			strDeptName[1]  = "Any London Airports";
			strDeptName[2]  = "London Heathrow (LHR)";
			strDeptName[3]  = "London Gatwick (LGW)";
			strDeptName[4]  = "London Luton (LTN)";
			strDeptName[5]  = "London Stansted (STN)";
			strDeptName[6]  = "Any South-East";
			strDeptName[7]  = "Bournemouth (BOH)";
			strDeptName[8]  = "Southampton (SOU)";
			strDeptName[9]  = "Any South-West";
			strDeptName[10] = "Bristol (BRS)";
			strDeptName[11] = "Exeter (EXT)";
			strDeptName[12] = "Any Midlands";
			strDeptName[13] = "Birmingham (BHX)";
			strDeptName[14] = "East Midlands (EMA)";
			strDeptName[15] = "Coventry (CVT)";
			strDeptName[16] = "Any North-West";
			strDeptName[17] = "Blackpool (BLK)";
			strDeptName[18] = "Liverpool (LPL)";
			strDeptName[19] = "Manchester (MAN)";
			strDeptName[20] = "Any North-East";
			strDeptName[21] = "Doncaster Sheffield (DSA)";
			strDeptName[22] = "Humberside (HUY)";
			strDeptName[23] = "Leeds Bradford (LBA)";
			strDeptName[24] = "Newcastle (NCL)";
			strDeptName[25] = "Teesside (MME)";
			strDeptName[26] = "Any East Anglia";
			strDeptName[27] = "Norwich (NWI)";
			strDeptName[28] = "Any Scotland";
			strDeptName[29] = "Aberdeen (ABZ)";
			strDeptName[30] = "Edinburgh (EDI)";
			strDeptName[31] = "Glasgow (GLA)";
			strDeptName[32] = "Inverness (INV)";
			strDeptName[33] = "Prestwick (PIK)";
			strDeptName[34] = "Any Wales";
			strDeptName[35] = "Cardiff (CWL)";
			strDeptName[36] = "Any Northern Ireland";
			strDeptName[37] = "Belfast (BFS)";
		
		
			strDeptHeader[0]  = "";
			strDeptHeader[1]  = "ID=DropHeader";
			strDeptHeader[2]  = "";
			strDeptHeader[3]  = "";
			strDeptHeader[4]  = "";
			strDeptHeader[5]  = "";
			strDeptHeader[6]  = "ID=DropHeader";
			strDeptHeader[7]  = "";
			strDeptHeader[8]  = "";
			strDeptHeader[9]  = "ID=DropHeader";
			strDeptHeader[10] = "";
			strDeptHeader[11] = "";
			strDeptHeader[12] = "ID=DropHeader";
			strDeptHeader[13] = "";
			strDeptHeader[14] = "";
			strDeptHeader[15] = "";
			strDeptHeader[16] = "ID=DropHeader";
			strDeptHeader[17] = "";
			strDeptHeader[18] = "";
			strDeptHeader[19] = "";
			strDeptHeader[20] = "ID=DropHeader";
			strDeptHeader[21] = "";
			strDeptHeader[22] = "";
			strDeptHeader[23] = "";
			strDeptHeader[24] = "";
			strDeptHeader[25] = "";
			strDeptHeader[26] = "ID=DropHeader";
			strDeptHeader[27] = "";
			strDeptHeader[28] = "ID=DropHeader";
			strDeptHeader[29] = "";
			strDeptHeader[30] = "";
			strDeptHeader[31] = "";
			strDeptHeader[32] = "";
			strDeptHeader[33] = "";
			strDeptHeader[34] = "ID=DropHeader";
			strDeptHeader[35] = "";
			strDeptHeader[36] = "ID=DropHeader";
			strDeptHeader[37] = "";
		
			
			for (i =0;  i <= 37; i++ )
			
			{
				var curDeptCode= strDeptCode[i];
				var curDeptName	= strDeptName[i];	
				var curDeptHeader =	strDeptHeader[i];
				
				//#alert(strDept.length);
				//#alert(curDeptCode.length);
					
				//#alert(strDept.length);
				//#alert(curDeptCode.length);
				
				if (curDeptCode == strDept)
				{
					
					var strBuild = "<option value = '" + curDeptCode + "' selected" + curDeptHeader + "  >" + curDeptName + "</option>";	
				}
				else
				{
					var strBuild = "<option value = '" + curDeptCode + "'"  + curDeptHeader + " >" + curDeptName + "</option>";	
				}
				var pos= curDeptName.indexOf("Any")
				if (pos>=0 && i > 0 )
				{
					strBuild= "<option></option>" + strBuild;
				}
				document.write (strBuild);
				strBuild="";
				
			}
			
		}		
		
//#########################################################################
//#																		  #
//#					function:fillNights(strNights)						  #
//#			Function to fill the night dropdowns						  #
//#																		  #
//#########################################################################
			
			function fillNights(strNights)
		{
			var strNightCode = new Array();
			var strNightName = new Array();
			
							
			strNightCode[0]  = "0";
			strNightCode[1]  = "1,6";
			strNightCode[2]  = "7";
			strNightCode[3]  = "8,13";
			strNightCode[4]  = "14";
			strNightCode[5]  = "15,28";
		
			
			strNightName[0]  = "Any number of nights";
			strNightName[1]  = "1-6 nights";
			strNightName[2]  = "7 nights";
			strNightName[3]  = "8-13 nights";
			strNightName[4]  = "14 nights";
			strNightName[5]  = "15+ nights";
			
			
			
			for (i =0;  i <= 5; i++ )
			
			{
				var curNightCode= strNightCode[i];
				var curNightName	= strNightName[i];				
				if (curNightCode == strNights)
				{
					var strBuild = "<option value = '" + curNightCode + "' selected >" + curNightName + "</option>";	
				}
				else
				{
					var strBuild = "<option value = '" + curNightCode + "'>" + curNightName + "</option>";	
				}
				document.write (strBuild);
				strBuild="";
				
			}
			
		}
		
//#########################################################################
//#																		  #
//#					function:fillNightsWSP(strNights)						  #
//#			Function to fill the night dropdowns						  #
//#																		  #
//#########################################################################
			
			function fillNightsWSP(strNights)
		{
			var strNightCode = new Array();
			var strNightName = new Array();
			
							
			strNightCode[0]  = "1,28";
			strNightCode[1]  = "1,6";
			strNightCode[2]  = "7";
			strNightCode[3]  = "8,13";
			strNightCode[4]  = "14";
			strNightCode[5]  = "15,28";
		
			
			strNightName[0]  = "Any number of nights";
			strNightName[1]  = "1-6 nights";
			strNightName[2]  = "7 nights";
			strNightName[3]  = "8-13 nights";
			strNightName[4]  = "14 nights";
			strNightName[5]  = "15+ nights";
			
			
			
			for (i =0;  i <= 5; i++ )
			
			{
				var curNightCode= strNightCode[i];
				var curNightName	= strNightName[i];				
				if (curNightCode == strNights)
				{
					var strBuild = "<option value = '" + curNightCode + "' selected >" + curNightName + "</option>";	
				}
				else
				{
					var strBuild = "<option value = '" + curNightCode + "'>" + curNightName + "</option>";	
				}
				document.write (strBuild);
				strBuild="";
				
			}
			
		}
		
		
		
		
//#########################################################################
//#																		  #
//#					function:fillPrice(strPrice)						  #
//#			Function to fill the price dropdowns						  #
//#																		  #
//#########################################################################

	
				function fillPrice(strPrice)
		{
			var strPriceCode = new Array();
			var strPriceName = new Array();
				
							
			strPriceCode[0]  = "0";
			strPriceCode[1]  = "100";
			strPriceCode[2]  = "200";
			strPriceCode[3]  = "300";
			strPriceCode[4]  = "400";
			strPriceCode[5]  = "500";
			strPriceCode[6]  = "750";
			strPriceCode[7]  = "1000";
			
			
			strPriceName[0]  = "anything";
			strPriceName[1]  = "£100";
			strPriceName[2]  = "£200";
			strPriceName[3]  = "£300";
			strPriceName[4]  = "£400";
			strPriceName[5]  = "£500";
			strPriceName[6]  = "£750";
			strPriceName[7]  = "£1000";
			
			
			for (i =0;  i <= 7; i++ )
			
			{
				var curPriceCode= strPriceCode[i];
				var curPriceName	= strPriceName[i];				
				if (curPriceCode == strPrice)
				{
					var strBuild = "<option value = '" + curPriceCode + "' selected >" + curPriceName + "</option>";	
				}
				else
				{
					var strBuild = "<option value = '" + curPriceCode + "'>" + curPriceName + "</option>";	
				}
				document.write (strBuild);
				strBuild="";
				
			}
			
		}
		
		
//#########################################################################
//#																		  #
//#					function:filldest(strDest)							  #
//#			Function to fill the package destination dropdowns			  #
//#																		  #
//#########################################################################

		function filldest(strDest)
		{
			var strDestCode = new Array();
			var strDestName = new Array();
			if(strDest == '')
			{
				strDest=  "ACE,ADB,AGA,AGP,ALC,ATH,AYT,BCN,BJV,BOJ,CAI,CFU,CHQ,CTA,DBV,DLM,DXB,EFL,FAO,FNC,FUE,GRO,HER,HRG,IBZ,JMK,JSI,JTR,KGS,KLX,KVA,LCA,LEI,LPA,LXR,MAH,MCO,MIR,MJT,MLA,NPL,PFO,PMI,PUY,PVK,RAK,REU,RHO,RMI,SFB,SKG,SMI,SPC,SPU,SSH,TFN,TFS,TFS,TUN,VAR,VCE,VOL,XRY,ZTH";
			}
			
strDestCode[0]="";
strDestCode[1]="";
strDestCode[2]="ACE,ADB,AGA,AGP,ALC,ATH,AYT,BCN,BJV,BOJ,CAI,CFU,CHQ,CTA,DBV,DLM,DXB,EFL,FAO,FNC,FUE,GRO,HER,HRG,IBZ,JMK,JSI,JTR,KGS,KLX,KVA,LCA,LEI,LPA,LXR,MAH,MCO,MIR,MJT,MLA,NPL,PFO,PMI,PUY,PVK,RAK,REU,RHO,RMI,SFB,SKG,SMI,SPC,SPU,SSH,TFN,TFS,TFS,TUN,VAR,VCE,VOL,XRY,ZTH";
strDestCode[3]="FAO";
strDestCode[4]="IBZ,PMI,MAH";
strDestCode[5]="BOJ,VAR,SOF";
strDestCode[6]="ACE,FUE,TFS,LPA,SPC,TFN";
strDestCode[7]="AGP";
strDestCode[8]="ALC";
strDestCode[9]="PUY,DBV,SPU";
strDestCode[10]="LCA,PFO";
strDestCode[11]="DXB";
strDestCode[12]="SSH,LXR,HRG,CAI,TCP";
strDestCode[13]="FUE";
strDestCode[14]="ATH,CHQ,SKG,EFL,KGS,MJT,JMK,CFU,SMI,JTR,PVK,JSI,KLX,KVA,HER,VOL,ZTH,RHO";
strDestCode[15]="LPA";
strDestCode[16]="CTA,NPL,VCE,RMI,AHO,BGY,CAG,FLR,NIN,MXP,NAP,VRN";
strDestCode[17]="ACE";
strDestCode[18]="FNC";
strDestCode[19]="GRO,REU,ALC,AGP,LEI,XRY,BCN";
strDestCode[20]="PMI";
strDestCode[21]="MLA";
strDestCode[22]="AGA,RAK";
strDestCode[23]="MCO,SFB,MIA";
strDestCode[24]="TFS,TFN";
strDestCode[25]="MIR,TUN";
strDestCode[26]="AYT,DLM,BJV,ADB,IZM";
strDestCode[27]="";
strDestCode[28]="SEZ,MRU,BJL,MBA,NBO,WIL,NAI,CPT,DUR,JNB,ARK,VFA";
strDestCode[29]="BJL";
strDestCode[30]="CPT";
strDestCode[31]="DUR";
strDestCode[32]="JNB";
strDestCode[33]="MRU";
strDestCode[34]="MBA";
strDestCode[35]="NBO,WIL,NAI";
strDestCode[36]="SEZ";
strDestCode[37]="ARK";
strDestCode[38]="LUN";
strDestCode[39]="";
strDestCode[40]="MCO,SFB,BOS,CHI,DEN,LAX,LAS,MIA,WAS,JFK,EWR,LGA";
strDestCode[41]="BOS";
strDestCode[42]="CHI";
strDestCode[43]="DEN";
strDestCode[44]="LAX";
strDestCode[45]="LAS";
strDestCode[46]="MIA";
strDestCode[47]="JFK,EWR,LGA,HPN";
strDestCode[48]="MCO,SFB,MIA";
strDestCode[49]="MCO,SFB,MIA";
strDestCode[50]="WAS";
strDestCode[51]="";
strDestCode[52]="INN,SZG,VIE,GRZ,KLU,LNZ";
strDestCode[53]="INN";
strDestCode[54]="SZG";
strDestCode[55]="";
strDestCode[56]="IBZ,PMI,MAH";
strDestCode[57]="IBZ";
strDestCode[58]="PMI";
strDestCode[59]="MAH";
strDestCode[60]="";
strDestCode[61]="BOJ,VAR,SOF";
strDestCode[62]="BOJ";
strDestCode[63]="VAR";
strDestCode[64]="";
strDestCode[65]="ACE,FUE,TFS,LPA,SPC,TFN";
strDestCode[66]="FUE";
strDestCode[67]="LPA";
strDestCode[68]="SPC";
strDestCode[69]="ACE";
strDestCode[70]="TFS,TFN";
strDestCode[71]="";
strDestCode[72]="YVR,YTO,YYZ,YYC,YMQ,YUL,YMX";
strDestCode[73]="YVR";
strDestCode[74]="YTO,YYZ";
strDestCode[75]="YYC";
strDestCode[76]="YMQ";
strDestCode[77]="YUL";
strDestCode[78]="YMX";
strDestCode[79]="";
strDestCode[80]="ANU,AUA,BGI,VRA,MJB,KIN,SKB,POP,LRM,SKB,UVF,CCC,PUJ,HAV,HOG,SDQ,PMV,NAS,AXA,GCM,GND,SXM,TAB,PLS,EIS";
strDestCode[81]="AXA";
strDestCode[82]="ANU";
strDestCode[83]="AUA";
strDestCode[84]="NAS,FPO";
strDestCode[85]="BGI";
strDestCode[86]="BDA";
strDestCode[87]="FPO";
strDestCode[88]="GCM";
strDestCode[89]="GND";
strDestCode[90]="KIN,MBJ";
strDestCode[91]="LRM";
strDestCode[92]="PMV";
strDestCode[93]="POP";
strDestCode[94]="SKB";
strDestCode[95]="UVF";
strDestCode[96]="SXM";
strDestCode[97]="TAB";
strDestCode[98]="PLS";
strDestCode[99]="EIS";
strDestCode[100]="";
strDestCode[101]="BIA,FSC,CLY";
strDestCode[102]="BIA";
strDestCode[103]="CLY";
strDestCode[104]="FSC";
strDestCode[105]="";
strDestCode[106]="PUY,DBV,SPU";
strDestCode[107]="PUY,DBV";
strDestCode[108]="DBV";
strDestCode[109]="PUY";
strDestCode[110]="SPU";
strDestCode[111]="";
strDestCode[112]="VRA,HAV,HOG,CCC";
strDestCode[113]="CCC";
strDestCode[114]="HAV";
strDestCode[115]="HOG";
strDestCode[116]="SNV";
strDestCode[117]="VRA";
strDestCode[118]="";
strDestCode[119]="LCA,PFO";
strDestCode[120]="";
strDestCode[121]="POP,LRM,SDQ,PUJ";
strDestCode[122]="POP";
strDestCode[123]="PUJ";
strDestCode[124]="LRM";
strDestCode[125]="SDQ";
strDestCode[126]="PUJ";
strDestCode[127]="";
strDestCode[128]="DXB";
strDestCode[129]="";
strDestCode[130]="SSH,LXR,HRG,CAI,TCP";
strDestCode[131]="CAI";
strDestCode[132]="HRG";
strDestCode[133]="LXR";
strDestCode[134]="SSH";
strDestCode[135]="TCP";
strDestCode[136]="";
strDestCode[137]="HKT,BKK,DPS,HKG,KUL,SIN,BJS,BKI,KCH,LGK,PEN";
strDestCode[138]="BKK";
strDestCode[139]="DPS";
strDestCode[140]="BJS";
strDestCode[141]="HKG";
strDestCode[142]="KUL";
strDestCode[143]="BKI,KCH,KUA,LGK,PEN";
strDestCode[144]="PEN";
strDestCode[145]="HKT";
strDestCode[146]="SIN";
strDestCode[147]="";
strDestCode[148]="ATH,CHQ,SKG,EFL,KGS,MJT,JMK,CFU,SMI,JTR,PVK,JSI,KLX,KVA,HER,VOL,ZTH,RHO";
strDestCode[149]="ATH";
strDestCode[150]="CHQ";
strDestCode[151]="CFU";
strDestCode[152]="HER,CHQ";
strDestCode[153]="HER";
strDestCode[154]="SKG";
strDestCode[155]="KLX";
strDestCode[156]="EFL";
strDestCode[157]="KGS";
strDestCode[158]="KGS";
strDestCode[159]="PVK";
strDestCode[160]="MJT";
strDestCode[161]="JMK";
strDestCode[162]="JMK";
strDestCode[163]="PVK";
strDestCode[164]="JMK";
strDestCode[165]="PVK";
strDestCode[166]="CFU";
strDestCode[167]="RHO";
strDestCode[168]="SMI";
strDestCode[169]="JMK";
strDestCode[170]="JTR";
strDestCode[171]="PVK";
strDestCode[172]="JSI";
strDestCode[173]="JSI";
strDestCode[174]="KLX";
strDestCode[175]="KLX";
strDestCode[176]="KLX";
strDestCode[177]="KVA";
strDestCode[178]="VOL";
strDestCode[179]="ZTH";
strDestCode[180]="";
strDestCode[181]="GOI,MLE,CMB,TRV,DEL";
strDestCode[182]="GOI";
strDestCode[183]="TRV";
strDestCode[184]="MLE";
strDestCode[185]="CMB";
strDestCode[186]="";
strDestCode[187]="CTA,NPL,VCE,RMI,AHO,BGY,CAG,FLR,NIN,MXP,NAP,VRN";
strDestCode[188]="RMI";
strDestCode[189]="CTA";
strDestCode[190]="NIN,MXP";
strDestCode[191]="NAP";
strDestCode[192]="VRN";
strDestCode[193]="CTA";
strDestCode[194]="VCE";
strDestCode[195]="VRN";
strDestCode[196]="";
strDestCode[197]="MLA";
strDestCode[198]="MLA";
strDestCode[199]="";
strDestCode[200]="CUN,PVR,ACA,MEX";
strDestCode[201]="ACA";
strDestCode[202]="CUN";
strDestCode[203]="MEX";
strDestCode[204]="PVR";
strDestCode[205]="";
strDestCode[206]="AGA,RAK";
strDestCode[207]="AGA";
strDestCode[208]="RAK";
strDestCode[209]="";
strDestCode[210]="FAO,LIS,FNC";
strDestCode[211]="FAO";
strDestCode[212]="FAO";
strDestCode[213]="LIS";
strDestCode[214]="FNC";
strDestCode[215]="";
strDestCode[216]="AHO,CAG,OLB";
strDestCode[217]="AHO";
strDestCode[218]="CAG";
strDestCode[219]="OLB";
strDestCode[220]="";
strDestCode[221]="GRO,REU,ALC,AGP,LEI,XRY,BCN";
strDestCode[222]="ALC";
strDestCode[223]="GRO,BCN";
strDestCode[224]="LEI";
strDestCode[225]="XRY";
strDestCode[226]="AGP";
strDestCode[227]="REU";
strDestCode[228]="";
strDestCode[229]="RIO,SJO,LIM,SDE,SVZ";
strDestCode[230]="RIO,SSA,GIG,SDU";
strDestCode[231]="SJO";
strDestCode[232]="LIM";
strDestCode[233]="SDE";
strDestCode[234]="SVZ";
strDestCode[235]="";
strDestCode[236]="BKK,CNX,HHQ,USM,PYX,HKT";
strDestCode[237]="BKK";
strDestCode[238]="BKK,CNX";
strDestCode[239]="BKK,HHQ";
strDestCode[240]="BKK,USM";
strDestCode[241]="BKK,PYX";
strDestCode[242]="HKT,BKK";
strDestCode[243]="";
strDestCode[244]="MIR,TUN";
strDestCode[245]="MIR";
strDestCode[246]="TUN";
strDestCode[247]="";
strDestCode[248]="AYT,DLM,BJV,ADB,IZM";
strDestCode[249]="AYT";
strDestCode[250]="BJV";
strDestCode[251]="DLM";
strDestCode[252]="IZM";
strDestCode[253]="ADB";





strDestName[0]="All Destinations";
strDestName[1]="";
strDestName[2]="All Top Summer Destinations";
strDestName[3]="All Algarve";
strDestName[4]="All Balearics";
strDestName[5]="All Bulgaria";
strDestName[6]="All Canaries";
strDestName[7]="All Costa del Sol";
strDestName[8]="All Costa Blanca";
strDestName[9]="All Croatia";
strDestName[10]="All Cyprus";
strDestName[11]="All Dubai";
strDestName[12]="All Egypt";
strDestName[13]="All Fuerteventura";
strDestName[14]="All Greece";
strDestName[15]="All Gran Canaria";
strDestName[16]="All Italy";
strDestName[17]="All Lanzarote";
strDestName[18]="All Madiera";
strDestName[19]="All Mainland Spain";
strDestName[20]="All Majorca";
strDestName[21]="All Malta";
strDestName[22]="All Morocco";
strDestName[23]="All Orlando ";
strDestName[24]="All Tenerife";
strDestName[25]="All Tunisia";
strDestName[26]="All Turkey";
strDestName[27]="";
strDestName[28]="All Africa/Indian Ocean";
strDestName[29]="Gambia";
strDestName[30]="Capetown";
strDestName[31]="Durban";
strDestName[32]="J'burg";
strDestName[33]="Mauritius";
strDestName[34]="Mombasa";
strDestName[35]="Nairobi";
strDestName[36]="Seychelles";
strDestName[37]="Tanzania";
strDestName[38]="Zambia";
strDestName[39]="";
strDestName[40]="All America";
strDestName[41]="Boston";
strDestName[42]="Chicago";
strDestName[43]="Denver";
strDestName[44]="Los Angeles";
strDestName[45]="Las Vegas";
strDestName[46]="Miami";
strDestName[47]="New York";
strDestName[48]="Orlando International/Sanford";
strDestName[49]="Orlando - Sanford/Orlando International";
strDestName[50]="Washington";
strDestName[51]="";
strDestName[52]="All Austria";
strDestName[53]="Innsbruck";
strDestName[54]="Salzburg";
strDestName[55]="";
strDestName[56]="All Balearic Islands";
strDestName[57]="Ibiza";
strDestName[58]="Majorca";
strDestName[59]="Menorca";
strDestName[60]="";
strDestName[61]="All Bulgaria";
strDestName[62]="Bourgas";
strDestName[63]="Varna";
strDestName[64]="";
strDestName[65]="All Canary Islands";
strDestName[66]="Fuerteventura";
strDestName[67]="Gran Canaria";
strDestName[68]="La Palma";
strDestName[69]="Lanzarote";
strDestName[70]="Tenerife";
strDestName[71]="";
strDestName[72]="All Canada";
strDestName[73]="Vancouver";
strDestName[74]="Toronto";
strDestName[75]="Calgary/Banff";
strDestName[76]="Montreal";
strDestName[77]="Dorval/Montreal";
strDestName[78]="Mirabel/Montreal";
strDestName[79]="";
strDestName[80]="All Caribbean and Bermuda";
strDestName[81]="Anguilla";
strDestName[82]="Antigua";
strDestName[83]="Aruba";
strDestName[84]="Bahamas";
strDestName[85]="Barbados";
strDestName[86]="Bermuda";
strDestName[87]="Freeport";
strDestName[88]="Grand Cayman";
strDestName[89]="Granada";
strDestName[90]="Jamaica Kingston/Montego Bay";
strDestName[91]="La Romana";
strDestName[92]="Margerita";
strDestName[93]="Puerto Plata";
strDestName[94]="St. Kitts";
strDestName[95]="St. Lucia";
strDestName[96]="St. Marten";
strDestName[97]="Tobago";
strDestName[98]="Turks and Caicos";
strDestName[99]="Virgin Islands";
strDestName[100]="";
strDestName[101]="All Corsica";
strDestName[102]="Bastia";
strDestName[103]="Calvi";
strDestName[104]="Figari";
strDestName[105]="";
strDestName[106]="All Croatia";
strDestName[107]="Istrian Riviera";
strDestName[108]="Dubrovnik";
strDestName[109]="Pula";
strDestName[110]="Split";
strDestName[111]="";
strDestName[112]="All Cuba";
strDestName[113]="Cayo Coco(Cuba)";
strDestName[114]="Havana(Cuba)";
strDestName[115]="Holguin";
strDestName[116]="Cayo Santa Maria";
strDestName[117]="Varadero";
strDestName[118]="";
strDestName[119]="All Cyprus";
strDestName[120]="";
strDestName[121]="All Dominican Republic";
strDestName[122]="Puerto Plata";
strDestName[123]="South-East Dominican";
strDestName[124]="La Romana";
strDestName[125]="Santo Domingo";
strDestName[126]="Punta Cana";
strDestName[127]="";
strDestName[128]="All Dubai";
strDestName[129]="";
strDestName[130]="All Egypt";
strDestName[131]="Cairo";
strDestName[132]="Hurgada";
strDestName[133]="Luxor";
strDestName[134]="Sharm el Sheik";
strDestName[135]="Taba";
strDestName[136]="";
strDestName[137]="All Far East";
strDestName[138]="Bangkok";
strDestName[139]="Bali";
strDestName[140]="China - Beijing";
strDestName[141]="Hong Kong";
strDestName[142]="Kuala Lumpur";
strDestName[143]="Malaysia";
strDestName[144]="Penang";
strDestName[145]="Phuket";
strDestName[146]="Singapore";
strDestName[147]=" ";
strDestName[148]="All Greece";
strDestName[149]="Athens";
strDestName[150]="Chania";
strDestName[151]="Corfu";
strDestName[152]="Crete";
strDestName[153]="Heraklion";
strDestName[154]="Halkidiki";
strDestName[155]="Kalamata / Stoupa /Tolon";
strDestName[156]="Kefalonia";
strDestName[157]="Kelymnas";
strDestName[158]="Kos";
strDestName[159]="Lefkas / Sivota / Parka";
strDestName[160]="Lesvos";
strDestName[161]="Mykonos / Naxos / Paros / Syros";
strDestName[162]="Naxos / Mykonos / Paros / Syros";
strDestName[163]="Parka / Sivota / Lefkas";
strDestName[164]="Paros / Naxos / Mykonos / Syros";
strDestName[165]="Preveza";
strDestName[166]="Paxos";
strDestName[167]="Rhodes";
strDestName[168]="Samos";
strDestName[169]="Syros/ Paros / Naxos / Mykonos";
strDestName[170]="Santorini";
strDestName[171]="Sivota / Parka / Lefkas";
strDestName[172]="Skiathos";
strDestName[173]="Skopelos";
strDestName[174]="Staypa /Tolon /Kalamata ";
strDestName[175]="Stoupa";
strDestName[176]="Tolon / Kalamata / Staypa ";
strDestName[177]="Thassos";
strDestName[178]="Volos";
strDestName[179]="Zante";
strDestName[180]="";
strDestName[181]="All Indian Sub-Continent";
strDestName[182]="Goa";
strDestName[183]="Kerala - Trivandrum";
strDestName[184]="Maldives";
strDestName[185]="Sri Lanka";
strDestName[186]=" ";
strDestName[187]="All Italy";
strDestName[188]="Adriatic Riviera";
strDestName[189]="Catania";
strDestName[190]="Milan";
strDestName[191]="Neopolitan Riviera";
strDestName[192]="Italian Lakes";
strDestName[193]="Sicily";
strDestName[194]="Venetian Riviera";
strDestName[195]="Verona";
strDestName[196]="";
strDestName[197]="All Malta / Gozo";
strDestName[198]="Gozo";
strDestName[199]=" ";
strDestName[200]="All Mexico";
strDestName[201]="Acapulco";
strDestName[202]="Cancun";
strDestName[203]="Mexico City";
strDestName[204]="Puerto Vallata";
strDestName[205]=" ";
strDestName[206]="All Morocco";
strDestName[207]="Agadir";
strDestName[208]="Marrakech";
strDestName[209]=" ";
strDestName[210]="All Portugal";
strDestName[211]="Algarve";
strDestName[212]="Faro";
strDestName[213]="Lisbon";
strDestName[214]="Madeira";
strDestName[215]=" ";
strDestName[216]="All Sardinia";
strDestName[217]="Algero";
strDestName[218]="Cagliari";
strDestName[219]="Olbia";
strDestName[220]=" ";
strDestName[221]="All Mainland Spain";
strDestName[222]="CostaBlanca";
strDestName[223]="CostaBrava";
strDestName[224]="CostadeAlmeria";
strDestName[225]="CostadelaLuz";
strDestName[226]="CostadelSol";
strDestName[227]="CostaDorada";
strDestName[228]=" ";
strDestName[229]="All South America";
strDestName[230]="Brazil";
strDestName[231]="Costa Rica";
strDestName[232]="Peru";
strDestName[233]="Argentina";
strDestName[234]="Venezuela";
strDestName[235]="";
strDestName[236]="All Thailand";
strDestName[237]="Bangkok";
strDestName[238]="Chaing Mai";
strDestName[239]="Hua Hin";
strDestName[240]="Koh Samui";
strDestName[241]="Pattaya";
strDestName[242]="Phuket";
strDestName[243]="";
strDestName[244]="All Tunisia";
strDestName[245]="Monastir";
strDestName[246]="Tunis";
strDestName[247]=" ";
strDestName[248]="All Turkey";
strDestName[249]="Antalya";
strDestName[250]="Bodrum";
strDestName[251]="Dalaman";
strDestName[252]="Izma";
strDestName[253]="Izmir - Adnan Mendes";



			

			
		for (i =0;  i <= 253; i++ )
			
			{
				var curDestCode= strDestCode[i];
				var curDestName	= strDestName[i];
				var strBuild ="";
				var pos= curDestName.indexOf("All")
				
				if ((pos>=0 && i>26 ) || (pos>=0 && i==0 ) || (pos>=0 && i==2 ))
				{
					strBuild= "<option ID=DropHeader " ;
					
				}	
			
				else
				{
					strBuild= "<option " ;
				}			
				if (curDestCode == strDest) 
				{
					strBuild =strBuild +  " value = '" + curDestCode + "' selected >" + curDestName + "</option>";	
				}
				else if ((strDest == "") && (pos == 3))
				{
					strBuild =strBuild +  " value = '" + curDestCode + "' selected >" + curDestName + "</option>";	
				}
				
				else
				{
					 strBuild = strBuild + " value = '" + curDestCode + "'>" + curDestName + "</option>";	
				}
				document.write (strBuild);
				strBuild="";
				
			}
			
		}
		
		
//#########################################################################
//#																		  #
//#					function:FillcurrentDate()							  #
//#			Function to fill the date dropdowns which have seperate 	  #
//#			date month and year dropdowns								  #
//#																		  #
//#########################################################################

	rightnow = new Date(); 
	a = "<option value=\"";

		
	function FillcurrentDate() {
	tomorrow = new Date(rightnow.getTime()+(86400000));
	var firstDay = tomorrow.getDate()-1;
	var firstMonth = tomorrow.getMonth();
	document.package_search.D_Day.selectedIndex = firstDay;
	document.package_search.D_Month.selectedIndex = firstMonth;
}

//#########################################################################
//#																		  #
//#					function:FillselectDate(dtDate)						  #
//#			Function to fill the date dropdowns which have seperate 	  #
//#			date month and year dropdowns								  #
//#																		  #
//#########################################################################

	function FillselectDate(dtDate) {
	var newDate =dtDate.split("-");
	tomorrow = new Date(rightnow.getTime()+(86400000));
	var firstDay = tomorrow.getDate()-1;
	var firstMonth = tomorrow.getMonth();
	document.package_search.D_Day.selectedIndex = newDate[0]-1;
	document.package_search.D_Month.selectedIndex = newDate[1]-1;
}

//#########################################################################
//#																		  #
//#					function:function month(i,name)						  #
//#			Function to fill the date dropdowns which have seperate 	  #
//#			date month and year dropdowns gets 							  #
//#																		  #
//#########################################################################

function month(i,name) {
	var thisyear = rightnow.getFullYear();
	var nextyear = thisyear + 1;
	var a = "<option value=\"";
	(i<rightnow.getMonth()) ? a +=nextyear : a +=thisyear;
	(i<9) ? a += "0"+(i+1) : a +=(i+1);
	a += "\">"+name+" ";
	(i<rightnow.getMonth()) ? a +=(nextyear) : a +=(thisyear);
	a += "</option>\n";
	this.option = a;
}																		

//#########################################################################
//#																		  #
//#					function:fillMonths	()								  #
//#			Function to fill the date dropdowns which have seperate 	  #
//#			date month and year dropdowns gets 							  #
//#																		  #
//#########################################################################

function fillMonths()
{
	var months = new Array(new month(0,"Jan"), new month(1,"Feb"),new month(2,"Mar"),new month(3,"Apr"),new month(4,"May"), new month(5,"Jun"), new month(6,"Jul"), new month(7,"Aug"), new month(8,"Sep"), new month(9,"Oct"), new month(10,"Nov"), new month(11,"Dec"));
	for(var i=0;i<12;i++) document.write(months[i].option);
}



//#########################################################################
//#																		  #
//#					function:fillMonthsWSP	()								  #
//#			Function to fill the date dropdowns which have seperate 	  #
//#			date month and year dropdowns gets 							  #
//#																		  #
//#########################################################################

function fillMonthsWSP()
{
	var months = new Array(new month(0,"Jan"), new month(1,"Feb"),new month(2,"Mar"),new month(3,"Apr"),new month(4,"May"), new month(5,"Jun"), new month(6,"Jul"), new month(7,"Aug"), new month(8,"Sep"), new month(9,"Oct"), new month(10,"Nov"), new month(11,"Dec"));
	for(var i=0;i<4;i++) document.write(months[i].option);
}



//#########################################################################
//#																		  #
//#					function:filltourop	(strtourop)						  #
//#			Function to fill the tourop dropdowns					 	  #
//#											 							  #
//#																		  #
//#########################################################################

		function filltourop(strtourop)
		{
			var strTouropCode = new Array();
			var strTouropName = new Array();
				
			strTouropCode[0]  = "";
			strTouropCode[1]  = "AHL";
			strTouropCode[2]  = "ARG";	
     		strTouropCode[3]  = "ASP";	
			strTouropCode[4]  = "AVR";	
			strTouropCode[5]  = "BAL";	
    		strTouropCode[6]  = "BAS";		
			strTouropCode[7]  = "BLL";
			strTouropCode[8]  = "BUU";	
			strTouropCode[9]  = "CLB";	
			strTouropCode[10] = "CTT";	
			strTouropCode[11] = "FST";	
			strTouropCode[12] = "COS";	
			strTouropCode[13] = "CRY";	
			strTouropCode[14] = "ESC";	
			strTouropCode[15] = "FAU";
			strTouropCode[16] = "FIR";	
			strTouropCode[17] = "FIA";	
			strTouropCode[18] = "FIS";	
			strTouropCode[19] = "FIV";	
			strTouropCode[20] = "FRE";	
			strTouropCode[21] = "FST";
			strTouropCode[22] = "GSP";	
			strTouropCode[23] = "HAY";	
			strTouropCode[24] = "HOP";	
			strTouropCode[25] = "HFU";	
			strTouropCode[26] = "JCH";
			strTouropCode[27] = "JMC";	
			strTouropCode[28] = "JMV";	
			strTouropCode[29] = "JUS";	
			strTouropCode[30] = "KVH";	
			strTouropCode[31] = "KUO";	
			strTouropCode[32] = "LIB";	
			strTouropCode[33] = "LOC";	
			strTouropCode[34] = "MAN";
			strTouropCode[35] = "NEI";		
			strTouropCode[36] = "ODY";	
			strTouropCode[37] = "OLY";		
			strTouropCode[38] = "PAN";	
			strTouropCode[39] = "PAU";		
			strTouropCode[40] = "PAS";	
			strTouropCode[41] = "SOV";		
			strTouropCode[42] = "STY";	
			strTouropCode[43] = "SUQ";		
			strTouropCode[44] = "SET";	
			strTouropCode[45] = "SSP";		
			strTouropCode[46] = "SST";	
			strTouropCode[47] = "SYU";		
			strTouropCode[48] = "SWU";	
			strTouropCode[49] = "TCH";		
			strTouropCode[50] = "TOP";	
			strTouropCode[51] = "TSL";		
			strTouropCode[52] = "TWE";	
			strTouropCode[53] = "UNI";		
			strTouropCode[54] = "VIR";	
			strTouropCode[55] = "VIG";		

			
			strTouropName[0]  = "Any Tour Operator";
			strTouropName[1]  = "Airtours";
			strTouropName[2]  = "Argo";
			strTouropName[3]  = "Aspro";
			strTouropName[4]  = "Avro";
			strTouropName[5]  = "Balkan";
			strTouropName[6]  = "Balkan Ski";
			strTouropName[7]  = "Belleair";
			strTouropName[8]  = "Budget Ireland";
			strTouropName[9]  = "Club 18-30";
			strTouropName[10] = "Club 2000";
			strTouropName[11] = "Club Freestyle";
			strTouropName[12] = "Cosmos";
			strTouropName[13] = "Crystal";
			strTouropName[14] = "Escapades";
			strTouropName[15] = "Falcon Ireland";
			strTouropName[16] = "First Choice";
			strTouropName[17] = "First Choice All Inclusive";
			strTouropName[18] = "First Choice Ski";
			strTouropName[19] = "First Choice Villas";
			strTouropName[20] = "Freedom Flights";
			strTouropName[21] = "Freestyle Holidays";
			strTouropName[22] = "Globespan";
			strTouropName[23] = "Hayes and Jarvis";
			strTouropName[24] = "Holiday Options";
			strTouropName[25] = "Holidays 4 U";
			strTouropName[26] = "Jewel in The Crown";
			strTouropName[27] = "JMC";
			strTouropName[28] = "JMC Villas";
			strTouropName[29] = "Just";
			strTouropName[30] = "Kosmar";
			strTouropName[31] = "Kuoni";
			strTouropName[32] = "Libra";
			strTouropName[33] = "Loco flights";
			strTouropName[34] = "Manos";
			strTouropName[35] = "Neilson";
			strTouropName[36] = "Odyssey";
			strTouropName[37] = "Olympic";
			strTouropName[38] = "Panorama";
			strTouropName[39] = "Panorama Ireland";
			strTouropName[40] = "Panorama Ski";
			strTouropName[41] = "Sovreign";
			strTouropName[42] = "Style";
			strTouropName[43] = "Sunquest";
			strTouropName[44] = "Sunset";
			strTouropName[45] = "Sunspot";
			strTouropName[46] = "Sunstart";
			strTouropName[47] = "Sunway";
			strTouropName[48] = "Sunworld Ireland";
			strTouropName[49] = "Thomas Cook";
			strTouropName[50] = "Thomson";
			strTouropName[51] = "Thomson Lakes and Mountains";
			strTouropName[52] = "Twenties";
			strTouropName[53] = "Unijet";
			strTouropName[54] = "Virgin";
			strTouropName[55] = "Virgin Ski";
			
			
			for (i =0;  i <= 55; i++ )
			
			{
				var curTouropCode= strTouropCode[i];
				var curTouropName	= strTouropName[i];				
				if (curTouropCode == strtourop)
				{
					var strBuild = "<option value = '" + curTouropCode + "' selected >" + curTouropName + "</option>";	
				}
				else
				{
					var strBuild = "<option value = '" + curTouropCode + "'>" + curTouropName + "</option>";	
				}
				document.write (strBuild);
				strBuild="";
				
			}
			
		}
		
//#########################################################################
//#																		  #
//#					function:fillchrtDest(strdest)  					  #
//#			Function to fill the charter flights destination dropdowns	  #
//#											 							  #
//#																		  #
//#########################################################################

		function fillchrtDest(strdest)
		{
			var strChrtDestCode = new Array();
			var strChrtDestName = new Array();
			
			strChrtDestCode[0]=" ";
			strChrtDestCode[1]="CMB,CMB,GOI,MBA,MIR,MRU,SEZ,SFA,TUN";
			strChrtDestCode[2]="BOS,CUN,DEN,LAS,LAX,MCO,MIA,PMV,PVR,RNO,SFB,SFO,SLC,SSA,YEG,YHZ,YMX,YOW,YVR,YYC,YYZ";
			strChrtDestCode[3]="AVI,BAJ,BGI,BGI,FPO,FPO,GCM,GND,HAV,HOG,HOG,LRM,MBJ,MBJ,NAS,NAS,POP,POP,POS,RIO,SDQ,SKB,TAB,TAB,UVF,UVF,VRA";
			strChrtDestCode[4]="ACE,AGP,AGP,ALC,ALC,BCN,BCN,BLQ,BOJ,CAG,CAG,CIA,CTA,FAO,FAO,FUE,GRO,GRO,GVA,IBZ,LEI,LEI,LIS,LJU,LPA,LPA,MAH,MAH,MJV,MXP,NAP,OPO,OPO,PMI,PMI,PSA,PUY,PUY,REU,REU,RMI,SPC,SZG,TFS,TFS,TLS,TRN,USA,VAR,VCE";
			strChrtDestCode[5]="HKG,HKT,HNL,MJB,MLE,PEN,SIN,STT";
			strChrtDestCode[6]="ATH,AYT,BJV,CFU,CFU,CHQ,CHQ,DLM,EFL,FNC,FNC,HER,HER,JMK,JSI,JTR,KGS,KLX,KVA,LCA,LCA,MJT,MJT,MLA,PFO,PFO,PVK,RHO,RHO,SKG,SKG,SMI,VOL,ZTH";
			strChrtDestCode[7]="DXB,HRG,LXR,SSH,VDA";
			strChrtDestCode[8]="INN,SZG";
			strChrtDestCode[9]="BGI";
			strChrtDestCode[10]="BOJ,SOF,VAR";
			strChrtDestCode[11]="YHZ,YOW,YUL,YVR,YYC,YYZ";
			strChrtDestCode[12]="DBV,PUY";
			strChrtDestCode[13]="VRA";
			strChrtDestCode[14]="LCA,PFO";
			strChrtDestCode[15]="POP";
			strChrtDestCode[16]="HRG,LXR,SSH";
			strChrtDestCode[17]="BIA,CLY,CMF,GNB,LYS,TLS";
			strChrtDestCode[18]="BJL";
			strChrtDestCode[19]="ATH,CFU,CHQ,EFL,HER,JMK,JSI,JTR,KGS,KLX,KVA,MJT,PVK,RHO,SKG,SMI,ZTH";
			strChrtDestCode[20]="GND";
			strChrtDestCode[21]="GOI";
			strChrtDestCode[22]="BGY,CTA,MXP,NAP,PSA,TRN,VCE,VRN";
			strChrtDestCode[23]="MBJ";
			strChrtDestCode[24]="MBA";
			strChrtDestCode[25]="ANU";
			strChrtDestCode[26]="MLE";
			strChrtDestCode[27]="MLA";
			strChrtDestCode[28]="CUN,PVR";
			strChrtDestCode[29]="AGA";
			strChrtDestCode[30]="VDB";
			strChrtDestCode[31]="FAO,FNC,LIS,OPO";
			strChrtDestCode[32]="ACE,AGP,ALC,FUE,GRO,IBZ,LEI,LPA,MAH,PMI,REU,SPC,TFS";
			strChrtDestCode[33]="CMB";
			strChrtDestCode[34]="GVA";
			strChrtDestCode[35]="TAB";
			strChrtDestCode[36]="DJE,MIR";
			strChrtDestCode[37]="ADB,AYT,BJV,DLM";
			strChrtDestCode[38]="SFB";
			strChrtDestCode[39]="PMV";
			strChrtDestCode[40]="AGA";
			strChrtDestCode[41]="FAO";
			strChrtDestCode[42]="ALC";
			strChrtDestCode[43]="LEI";
			strChrtDestCode[44]="AYT";
			strChrtDestCode[45]="ANU";
			strChrtDestCode[46]="ACE";
			strChrtDestCode[47]="ATH";
			strChrtDestCode[48]="BJL";
			strChrtDestCode[49]="BGI";
			strChrtDestCode[50]="BIA";
			strChrtDestCode[51]="BGY";
			strChrtDestCode[52]="BJV";
			strChrtDestCode[53]="BOJ";
			strChrtDestCode[54]="BGI";
			strChrtDestCode[55]="YYC";
			strChrtDestCode[56]="CLY";
			strChrtDestCode[57]="CUN";
			strChrtDestCode[58]="CTA";
			strChrtDestCode[59]="CMF";
			strChrtDestCode[60]="CHQ";
			strChrtDestCode[61]="DBV";
			strChrtDestCode[62]="CMB";
			strChrtDestCode[63]="CFU";
			strChrtDestCode[64]="LEI";
			strChrtDestCode[65]="ALC";
			strChrtDestCode[66]="GRO";
			strChrtDestCode[67]="AGP";
			strChrtDestCode[68]="REU";
			strChrtDestCode[69]="CHQ";
			strChrtDestCode[70]="HER";
			strChrtDestCode[71]="PUY";
			strChrtDestCode[72]="DLM";
			strChrtDestCode[73]="DJE";
			strChrtDestCode[74]="POP";
			strChrtDestCode[75]="DBV";
			strChrtDestCode[76]="VDB";
			strChrtDestCode[77]="FAO";
			strChrtDestCode[78]="SFB";
			strChrtDestCode[79]="FUE";
			strChrtDestCode[80]="FNC";
			strChrtDestCode[81]="GVA";
			strChrtDestCode[82]="GRO";
			strChrtDestCode[83]="GOI";
			strChrtDestCode[84]="LPA";
			strChrtDestCode[85]="GND";
			strChrtDestCode[86]="GNB";
			strChrtDestCode[87]="YHZ";
			strChrtDestCode[88]="SKG";
			strChrtDestCode[89]="HER";
			strChrtDestCode[90]="HRG";
			strChrtDestCode[91]="IBZ";
			strChrtDestCode[92]="INN";
			strChrtDestCode[93]="ADB";
			strChrtDestCode[94]="MBJ";
			strChrtDestCode[95]="KLX";
			strChrtDestCode[96]="KVA";
			strChrtDestCode[97]="EFL";
			strChrtDestCode[98]="CFU";
			strChrtDestCode[99]="KGS";
			strChrtDestCode[100]="ACE";
			strChrtDestCode[101]="LCA";
			strChrtDestCode[102]="LPA";
			strChrtDestCode[103]="MJT";
			strChrtDestCode[104]="LIS";
			strChrtDestCode[105]="LXR";
			strChrtDestCode[106]="LYS";
			strChrtDestCode[107]="FNC";
			strChrtDestCode[108]="MAH";
			strChrtDestCode[109]="PMI";
			strChrtDestCode[110]="AGP";
			strChrtDestCode[111]="MLE";
			strChrtDestCode[112]="MLA";
			strChrtDestCode[113]="PMV";
			strChrtDestCode[114]="MAH";
			strChrtDestCode[115]="MXP";
			strChrtDestCode[116]="MBA";
			strChrtDestCode[117]="MIR";
			strChrtDestCode[118]="MBJ";
			strChrtDestCode[119]="YUL";
			strChrtDestCode[120]="JMK";
			strChrtDestCode[121]="MJT";
			strChrtDestCode[122]="NAP";
			strChrtDestCode[123]="OPO";
			strChrtDestCode[124]="SFB";
			strChrtDestCode[125]="YOW";
			strChrtDestCode[126]="PMI";
			strChrtDestCode[127]="PFO";
			strChrtDestCode[128]="PSA";
			strChrtDestCode[129]="BIA";
			strChrtDestCode[130]="PMV";
			strChrtDestCode[131]="OPO";
			strChrtDestCode[132]="PVK";
			strChrtDestCode[133]="POP";
			strChrtDestCode[134]="PVR";
			strChrtDestCode[135]="TFS";
			strChrtDestCode[136]="REU";
			strChrtDestCode[137]="RHO";
			strChrtDestCode[138]="RHO";
			strChrtDestCode[139]="CLY";
			strChrtDestCode[140]="SZG";
			strChrtDestCode[141]="SMI";
			strChrtDestCode[142]="SPC";
			strChrtDestCode[143]="JTR";
			strChrtDestCode[144]="SSH";
			strChrtDestCode[145]="JSI";
			strChrtDestCode[146]="SOF";
			strChrtDestCode[147]="CMB";
			strChrtDestCode[148]="TFS";
			strChrtDestCode[149]="KVA";
			strChrtDestCode[150]="SKG";
			strChrtDestCode[151]="TAB";
			strChrtDestCode[152]="YYZ";
			strChrtDestCode[153]="TLS";
			strChrtDestCode[154]="TAB";
			strChrtDestCode[155]="TRN";
			strChrtDestCode[156]="YVR";
			strChrtDestCode[157]="VRA";
			strChrtDestCode[158]="VAR";
			strChrtDestCode[159]="VCE";
			strChrtDestCode[160]="VRN";
			strChrtDestCode[161]="ZTH";
			
			strChrtDestName[0]="Any destination";
			strChrtDestName[1]="Africa And India";
			strChrtDestName[2]="Americas";
			strChrtDestName[3]="Caribbean And Bermuda";
			strChrtDestName[4]="Europe";
			strChrtDestName[5]="Far East And Pacific";
			strChrtDestName[6]="Mediterranean";
			strChrtDestName[7]="Middle East";
			strChrtDestName[8]="Austria";
			strChrtDestName[9]="Barbados";
			strChrtDestName[10]="Bulgaria";
			strChrtDestName[11]="Canada";
			strChrtDestName[12]="Croatia";
			strChrtDestName[13]="Cuba";
			strChrtDestName[14]="Cyprus";
			strChrtDestName[15]="Dominican Republic";
			strChrtDestName[16]="Egypt";
			strChrtDestName[17]="France";
			strChrtDestName[18]="Gambia";
			strChrtDestName[19]="Greece";
			strChrtDestName[20]="Grenada";
			strChrtDestName[21]="India";
			strChrtDestName[22]="Italy";
			strChrtDestName[23]="Jamaica";
			strChrtDestName[24]="Kenya";
			strChrtDestName[25]="Leeward Islands";
			strChrtDestName[26]="Maldives";
			strChrtDestName[27]="Malta";
			strChrtDestName[28]="Mexico";
			strChrtDestName[29]="Morocco";
			strChrtDestName[30]="Norway";
			strChrtDestName[31]="Portugal";
			strChrtDestName[32]="Spain";
			strChrtDestName[33]="Sri Lanka";
			strChrtDestName[34]="Switzerland";
			strChrtDestName[35]="Trinidad And Tobago";
			strChrtDestName[36]="Tunisia";
			strChrtDestName[37]="Turkey";
			strChrtDestName[38]="Usa";
			strChrtDestName[39]="Venezuela";
			strChrtDestName[40]="Agadir (AGA)";
			strChrtDestName[41]="Algarve (FAO)";
			strChrtDestName[42]="Alicante (ALC)";
			strChrtDestName[43]="Almeria (LEI)";
			strChrtDestName[44]="Antalya (AYT)";
			strChrtDestName[45]="Antigua (ANU)";
			strChrtDestName[46]="Arrecife (ACE)";
			strChrtDestName[47]="Athens (ATH)";
			strChrtDestName[48]="Banjul (BJL)";
			strChrtDestName[49]="Barbados (BGI)";
			strChrtDestName[50]="Bastia (BIA)";
			strChrtDestName[51]="Bergamo (BGY)";
			strChrtDestName[52]="Bodrum (BJV)";
			strChrtDestName[53]="Bourgas (BOJ)";
			strChrtDestName[54]="Bridgetown (BGI)";
			strChrtDestName[55]="Calgary (YYC)";
			strChrtDestName[56]="Calvi (CLY)";
			strChrtDestName[57]="Cancun (CUN)";
			strChrtDestName[58]="Catania (CTA)";
			strChrtDestName[59]="Chambery (CMF)";
			strChrtDestName[60]="Chania (CHQ)";
			strChrtDestName[61]="Cilipi (DBV)";
			strChrtDestName[62]="Colombo (CMB)";
			strChrtDestName[63]="Corfu (CFU)";
			strChrtDestName[64]="Costa Almeria (LEI)";
			strChrtDestName[65]="Costa Blanca (ALC)";
			strChrtDestName[66]="Costa Brava (GRO)";
			strChrtDestName[67]="Costa Del Sol (AGP)";
			strChrtDestName[68]="Costa Dorada (REU)";
			strChrtDestName[69]="Crete (CHQ)";
			strChrtDestName[70]="Crete (HER)";
			strChrtDestName[71]="Croatia (PUY)";
			strChrtDestName[72]="Dalaman (DLM)";
			strChrtDestName[73]="Djerba (DJE)";
			strChrtDestName[74]="Dominican Republic (POP)";
			strChrtDestName[75]="Dubrovnik (DBV)";
			strChrtDestName[76]="Fagernes (VDB)";
			strChrtDestName[77]="Faro (FAO)";
			strChrtDestName[78]="Florida (SFB)";
			strChrtDestName[79]="Fuerteventura (FUE)";
			strChrtDestName[80]="Funchal (FNC)";
			strChrtDestName[81]="Geneva (GVA)";
			strChrtDestName[82]="Gerona (GRO)";
			strChrtDestName[83]="Goa (GOI)";
			strChrtDestName[84]="Gran Canaria (LPA)";
			strChrtDestName[85]="Grenada (GND)";
			strChrtDestName[86]="Grenoble (GNB)";
			strChrtDestName[87]="Halifax (YHZ)";
			strChrtDestName[88]="Halkidiki (SKG)";
			strChrtDestName[89]="Heraklion (HER)";
			strChrtDestName[90]="Hurghada (HRG)";
			strChrtDestName[91]="Ibiza (IBZ)";
			strChrtDestName[92]="Innsbruck (INN)";
			strChrtDestName[93]="Izmir (ADB)";
			strChrtDestName[94]="Jamaica (MBJ)";
			strChrtDestName[95]="Kalamata (KLX)";
			strChrtDestName[96]="Kavala (KVA)";
			strChrtDestName[97]="Kefalonia (EFL)";
			strChrtDestName[98]="Kerkyra (CFU)";
			strChrtDestName[99]="Kos (KGS)";
			strChrtDestName[100]="Lanzarote (ACE)";
			strChrtDestName[101]="Larnaca (LCA)";
			strChrtDestName[102]="Las Palmas (LPA)";
			strChrtDestName[103]="Lesbos (MJT)";
			strChrtDestName[104]="Lisbon (LIS)";
			strChrtDestName[105]="Luxor (LXR)";
			strChrtDestName[106]="Lyon (LYS)";
			strChrtDestName[107]="Madeira (FNC)";
			strChrtDestName[108]="Mahon (MAH)";
			strChrtDestName[109]="Majorca (PMI)";
			strChrtDestName[110]="Malaga (AGP)";
			strChrtDestName[111]="Male (MLE)";
			strChrtDestName[112]="Malta (MLA)";
			strChrtDestName[113]="Margarita Island (PMV)";
			strChrtDestName[114]="Menorca (MAH)";
			strChrtDestName[115]="Milano (MXP)";
			strChrtDestName[116]="Mombasa (MBA)";
			strChrtDestName[117]="Monastir (MIR)";
			strChrtDestName[118]="Montego Bay (MBJ)";
			strChrtDestName[119]="Montreal (YUL)";
			strChrtDestName[120]="Mykonos (JMK)";
			strChrtDestName[121]="Mytilini (MJT)";
			strChrtDestName[122]="Naples (NAP)";
			strChrtDestName[123]="Oporto (OPO)";
			strChrtDestName[124]="Orlando (SFB)";
			strChrtDestName[125]="Ottawa (YOW)";
			strChrtDestName[126]="Palma (PMI)";
			strChrtDestName[127]="Paphos (PFO)";
			strChrtDestName[128]="Pisa (PSA)";
			strChrtDestName[129]="Poretta (BIA)";
			strChrtDestName[130]="Porlamar (PMV)";
			strChrtDestName[131]="Porto (OPO)";
			strChrtDestName[132]="Preveza (PVK)";
			strChrtDestName[133]="Puerto Plata (POP)";
			strChrtDestName[134]="Puerto Vallarta (PVR)";
			strChrtDestName[135]="Reina Sofia (TFS)";
			strChrtDestName[136]="Reus (REU)";
			strChrtDestName[137]="Rhodes (RHO)";
			strChrtDestName[138]="Rhodos (RHO)";
			strChrtDestName[139]="Sainte-Catherine (CLY)";
			strChrtDestName[140]="Salzburg (SZG)";
			strChrtDestName[141]="Samos (SMI)";
			strChrtDestName[142]="Santa Cruz De La Palma (SPC)";
			strChrtDestName[143]="Santorini (JTR)";
			strChrtDestName[144]="Sharm El Sheik (SSH)";
			strChrtDestName[145]="Skiathos (JSI)";
			strChrtDestName[146]="Sofia (SOF)";
			strChrtDestName[147]="Sri Lanka (CMB)";
			strChrtDestName[148]="Tenerife (TFS)";
			strChrtDestName[149]="Thassos (KVA)";
			strChrtDestName[150]="Thessaloniki (SKG)";
			strChrtDestName[151]="Tobago (TAB)";
			strChrtDestName[152]="Toronto (YYZ)";
			strChrtDestName[153]="Toulouse (TLS)";
			strChrtDestName[154]="Trinidad And Tobago (TAB)";
			strChrtDestName[155]="Turin (TRN)";
			strChrtDestName[156]="Vancouver (YVR)";
			strChrtDestName[157]="Varadero (VRA)";
			strChrtDestName[158]="Varna (VAR)";
			strChrtDestName[159]="Venice (VCE)";
			strChrtDestName[160]="Verona (VRN)";
			strChrtDestName[161]="Zakynthos (ZTH)";

			for (i =0;  i <= 161; i++ )
			
			{
				var curChrtDestCode	= strChrtDestCode[i];
				var curChrtDestName	= strChrtDestName[i];				
				if (curChrtDestCode == strdest)
				{
					var strBuild = "<option value = '" + curChrtDestCode + "' selected >" + curChrtDestName + "</option>";	
				}
				else
				{
					var strBuild = "<option value = '" + curChrtDestCode + "'>" + curChrtDestName + "</option>";	
				}
				document.write (strBuild);
				strBuild="";
				
			}
			
			
		}
		
				
//#########################################################################
//#																		  #
//#					function:fillskiDest(strdest)  						  #
//#			Function to fill the ski destination dropdowns				  #
//#											 							  #
//#																		  #
//#########################################################################

		function fillskiDest(strdest)
		{
			var strskicode = new Array();
			var strskiname = new Array();
			
			strskicode[0]="Andorra,Arinsal,Encamp,La Massana,Pas de la Casa,Soldeu";
			strskicode[1]="Arinsal";
			strskicode[2]="Encamp";
			strskicode[3]="La Massana";
			strskicode[4]="Pas de la Casa";
			strskicode[5]="Soldeu";
			strskicode[6]="Austria,Alpbach,Bad Hofgastein,Badgastein,Brand,Ellmau,Fuschl,Galtur,Hinterglemm,Igls,Ischgl,Itter,Kaprun,Kirchberg,Kitzbuhel,Kuhtai,Lech,Neustift,Niederau,Obergurgl,Obertauern,Saalbach,Scheffau,Seefeld,Solden,Soll,St Anton,St Gilgen,St Johann,St Wolfgang,Westendorf,Zell am See";
			strskicode[7]="Austria,Alpbach,Bad Hofgastein,Badgastein,Brand,Ellmau,Fuschl,Galtur,Hinterglemm,Igls,Ischgl,Itter,Kaprun,Kirchberg,Kitzbuhel,Kuhtai,Lech,Neustift,Niederau,Obergurgl,Obertauern,Saalbach,Scheffau,Seefeld,Solden,Soll,St Anton,St Gilgen,St Johann,St Wolfgang,Westendorf,Zell am See";
			strskicode[8]="Alpbach";
			strskicode[9]="Bad Hofgastein";
			strskicode[10]="Badgastein";
			strskicode[11]="Brand";
			strskicode[12]="Ellmau";
			strskicode[13]="Fuschl";
			strskicode[14]="Galtur";
			strskicode[15]="Hinterglemm";
			strskicode[16]="Igls";
			strskicode[17]="Ischgl";
			strskicode[18]="Itter";
			strskicode[19]="Kaprun";
			strskicode[20]="Kirchberg";
			strskicode[21]="Kitzbuhel";
			strskicode[22]="Kuhtai";
			strskicode[23]="Lech";
			strskicode[24]="Neustift";
			strskicode[25]="Niederau";
			strskicode[26]="Obergurgl";
			strskicode[27]="Obertauern";
			strskicode[28]="Saalbach";
			strskicode[29]="Scheffau";
			strskicode[30]="Seefeld";
			strskicode[31]="Solden";
			strskicode[32]="Soll";
			strskicode[33]="St Anton";
			strskicode[34]="St Gilgen";
			strskicode[35]="St Johann";
			strskicode[36]="St Wolfgang";
			strskicode[37]="Westendorf";
			strskicode[38]="Zell am See";
			strskicode[39]="Banff,Jasper,Lake Louise,Mont Tremblant,Whistler";
			strskicode[40]="Banff,Jasper,Lake Louise,Mont Tremblant,Whistler";
			strskicode[41]="Banff";
			strskicode[42]="Jasper";
			strskicode[43]="Lake Louise";
			strskicode[44]="Mont Tremblant";
			strskicode[45]="Whistler";
			strskicode[46]="Alpe d'Huez,Annecy,Avoriaz,Chamonix,Chatel,Courchevel,Flaine,La Clusaz,La Plagne,La Tania,Les Arcs,Les Deux-Alpes,Les Gets,Les Menuires,Megeve,Meribel,Mottaret,Montgenevre,Morzine,Serre-chevalier,Tignes,Val-d'Isere,Val-Thorens,Valmorel";
			strskicode[47]="Alpe d'Huez,Annecy,Avoriaz,Chamonix,Chatel,Courchevel,Flaine,La Clusaz,La Plagne,La Tania,Les Arcs,Les Deux-Alpes,Les Gets,Les Menuires,Megeve,Meribel,Mottaret,Montgenevre,Morzine,Serre-chevalier,Tignes,Val-d'Isere,Val-Thorens,Valmorel";
			strskicode[48]="Alpe d'Huez";
			strskicode[49]="Annecy";
			strskicode[50]="Avoriaz";
			strskicode[51]="Chamonix";
			strskicode[52]="Chatel";
			strskicode[53]="Courchevel";
			strskicode[54]="Flaine";
			strskicode[55]="La Clusaz";
			strskicode[56]="La Plagne";
			strskicode[57]="La Tania";
			strskicode[58]="Les Arcs";
			strskicode[59]="Les Deux-Alpes";
			strskicode[60]="Les Gets";
			strskicode[61]="Les Menuires";
			strskicode[62]="Megeve";
			strskicode[63]="Meribel,Mottaret";
			strskicode[64]="Montgenevre";
			strskicode[65]="Morzine";
			strskicode[66]="Serre-chevalier";
			strskicode[67]="Tignes";
			strskicode[68]="Val-d'Isere";
			strskicode[69]="Val-Thorens";
			strskicode[70]="Valmorel";
			strskicode[71]="Bardolino,Bardonecchia,Baveno,Bellagio,Bormio,Cadenabbia,Campitello,Canazei,Cervinia,Champoluc,Claviere,Cortina d'Ampezzo,Courmayeur,Desenzano del Garda,Garda,Gardone Riviera,Gressoney la Trinite,La Thuile,Limone sul Garda,Livigno,Macugnaga,Madesimo,Madonna di Campiglio,Malcestine,Menaggio,Pallanza,Passo del Tonale,Riva del Garda,,Santa Caterina Valfurva,Sauze d'Oulx,Selva di Val Gardena,,Sestriere,Sirmione,Stresa,Torbole";
			strskicode[72]="Bardolino,Bardonecchia,Baveno,Bellagio,Bormio,Cadenabbia,Campitello,Canazei,Cervinia,Champoluc,Claviere,Cortina d'Ampezzo,Courmayeur,Desenzano del Garda,Garda,Gardone Riviera,Gressoney la Trinite,La Thuile,Limone sul Garda,Livigno,Macugnaga,Madesimo,Madonna di Campiglio,Malcestine,Menaggio,Pallanza,Passo del Tonale,Riva del Garda,,Santa Caterina Valfurva,Sauze d'Oulx,Selva di Val Gardena,,Sestriere,Sirmione,Stresa,Torbole";
			strskicode[73]="Bardolino";
			strskicode[74]="Bardonecchia";
			strskicode[75]="Baveno";
			strskicode[76]="Bellagio";
			strskicode[77]="Bormio";
			strskicode[78]="Cadenabbia";
			strskicode[79]="Campitello";
			strskicode[80]="Canazei";
			strskicode[81]="Cervinia";
			strskicode[82]="Champoluc";
			strskicode[83]="Claviere";
			strskicode[84]="Cortina d'Ampezzo";
			strskicode[85]="Courmayeur";
			strskicode[86]="Desenzano del Garda";
			strskicode[87]="Garda";
			strskicode[88]="Gardone Riviera";
			strskicode[89]="Gressoney la Trinite";
			strskicode[90]="La Thuile";
			strskicode[91]="Limone sul Garda";
			strskicode[92]="Livigno";
			strskicode[93]="Macugnaga";
			strskicode[94]="Madesimo";
			strskicode[95]="Madonna di Campiglio";
			strskicode[96]="Malcestine";
			strskicode[97]="Menaggio";
			strskicode[98]="Pallanza";
			strskicode[99]="Passo del Tonale";
			strskicode[100]="Riva del Garda";
			strskicode[101]="Santa Caterina Valfurva";
			strskicode[102]="Sauze d'Oulx";
			strskicode[103]="Selva di Val Gardena";
			strskicode[104]="Sestriere";
			strskicode[105]="Sirmione";
			strskicode[106]="Stresa";
			strskicode[107]="Torbole";
			strskicode[108]="Formigal,Sierra Nevada";
			strskicode[109]="Formigal";
			strskicode[110]="Sierra Nevada";
			strskicode[111]="Switzerland,Adelboden,Arosa,Chateux-d'Oex,Crans-Montana,Davos,Grindelwald,Gstaad,Interlaken,Kandersteg,Klosters,Lausanne,Lenzerheide,Les Diablerets,Leysin,Lorcarno,Lucerne,Lugano,Montreux,Murren,Pontresina,Saas Fee,St Moritz,Verbier,Villars,Wengen,Zermatt";
			strskicode[112]="Switzerland,Adelboden,Arosa,Chateux-d'Oex,Crans-Montana,Davos,Grindelwald,Gstaad,Interlaken,Kandersteg,Klosters,Lausanne,Lenzerheide,Les Diablerets,Leysin,Lorcarno,Lucerne,Lugano,Montreux,Murren,Pontresina,Saas Fee,St Moritz,Verbier,Villars,Wengen,Zermatt";
			strskicode[113]="Adelboden";
			strskicode[114]="Arosa";
			strskicode[115]="Chateux-d'Oex";
			strskicode[116]="Crans-Montana";
			strskicode[117]="Davos";
			strskicode[118]="Grindelwald";
			strskicode[119]="Gstaad";
			strskicode[120]="Interlaken";
			strskicode[121]="Kandersteg";
			strskicode[122]="Klosters";
			strskicode[123]="Lausanne";
			strskicode[124]="Lenzerheide";
			strskicode[125]="Les Diablerets";
			strskicode[126]="Leysin";
			strskicode[127]="Lorcarno";
			strskicode[128]="Lucerne";
			strskicode[129]="Lugano";
			strskicode[130]="Montreux";
			strskicode[131]="Murren";
			strskicode[132]="Pontresina";
			strskicode[133]="Saas Fee";
			strskicode[134]="St Moritz";
			strskicode[135]="Verbier";
			strskicode[136]="Villars";
			strskicode[137]="Wengen";
			strskicode[138]="Zermatt";
			strskicode[139]="Aspen,Beaver Creek,Breckenridge,Copper Mountain,Crested Butte,Jackson Hole,Keystone,Killington,Lake Tahoe,Mammoth Lakes,Park City,Snowbird,Steamboat Springs,Stowe,Sugarbush,Sugarloaf,Sunday River,Telluride,Vail,Winter Park";
			strskicode[140]="Aspen,Beaver Creek,Breckenridge,Copper Mountain,Crested Butte,Jackson Hole,Keystone,Killington,Lake Tahoe,Mammoth Lakes,Park City,Snowbird,Steamboat Springs,Stowe,Sugarbush,Sugarloaf,Sunday River,Telluride,Vail,Winter Park";
			strskicode[141]="Aspen";
			strskicode[142]="Beaver Creek";
			strskicode[143]="Breckenridge";
			strskicode[144]="Copper Mountain";
			strskicode[145]="Crested Butte";
			strskicode[146]="Jackson Hole";
			strskicode[147]="Keystone";
			strskicode[148]="Killington";
			strskicode[149]="Lake Tahoe";
			strskicode[150]="Mammoth Lakes";
			strskicode[151]="Park City";
			strskicode[152]="Snowbird";
			strskicode[153]="Steamboat Springs";
			strskicode[154]="Stowe";
			strskicode[155]="Sugarbush";
			strskicode[156]="Sugarloaf";
			strskicode[157]="Sunday River";
			strskicode[158]="Telluride";
			strskicode[159]="Vail";
			strskicode[160]="Winter Park";
			

			strskiname[0]="Andorra";
			strskiname[1]="Arinsal";
			strskiname[2]="Encamp";
			strskiname[3]="La Massana";
			strskiname[4]="Pas de la Casa";
			strskiname[5]="Soldeu";
			strskiname[6]="";
			strskiname[7]="Austria";
			strskiname[8]="Alpbach";
			strskiname[9]="Bad Hofgastein";
			strskiname[10]="Badgastein";
			strskiname[11]="Brand";
			strskiname[12]="Ellmau";
			strskiname[13]="Fuschl";
			strskiname[14]="Galtur";
			strskiname[15]="Hinterglemm";
			strskiname[16]="Igls";
			strskiname[17]="Ischgl";
			strskiname[18]="Itter";
			strskiname[19]="Kaprun";
			strskiname[20]="Kirchberg";
			strskiname[21]="Kitzbuhel";
			strskiname[22]="Kuhtai";
			strskiname[23]="Lech";
			strskiname[24]="Neustift";
			strskiname[25]="Niederau";
			strskiname[26]="Obergurgl";
			strskiname[27]="Obertauern";
			strskiname[28]="Saalbach";
			strskiname[29]="Scheffau";
			strskiname[30]="Seefeld";
			strskiname[31]="Solden";
			strskiname[32]="Soll";
			strskiname[33]="St Anton";
			strskiname[34]="St Gilgen";
			strskiname[35]="St Johann";
			strskiname[36]="St Wolfgang";
			strskiname[37]="Westendorf";
			strskiname[38]="Zell am See";
			strskiname[39]="";
			strskiname[40]="Canada";
			strskiname[41]="Banff";
			strskiname[42]="Jasper";
			strskiname[43]="Lake Louise";
			strskiname[44]="Mont Tremblant";
			strskiname[45]="Whistler";
			strskiname[46]="";
			strskiname[47]="France";
			strskiname[48]="Alpe-d'Huez";
			strskiname[49]="Annecy";
			strskiname[50]="Avoriaz";
			strskiname[51]="Chamonix";
			strskiname[52]="Chatel";
			strskiname[53]="Courchevel";
			strskiname[54]="Flaine";
			strskiname[55]="La Clusaz";
			strskiname[56]="La Plagne";
			strskiname[57]="La Tania";
			strskiname[58]="Les Arcs";
			strskiname[59]="Les Deux-Alpes";
			strskiname[60]="Les Gets";
			strskiname[61]="Les Menuires";
			strskiname[62]="Megeve";
			strskiname[63]="Meribel-Mottaret";
			strskiname[64]="Montgenevre";
			strskiname[65]="Morzine";
			strskiname[66]="Serre-chevalier";
			strskiname[67]="Tignes";
			strskiname[68]="Val-d'Isere";
			strskiname[69]="Val-Thorens";
			strskiname[70]="Valmorel";
			strskiname[71]="";
			strskiname[72]="Italy";
			strskiname[73]="Bardolino";
			strskiname[74]="Bardonecchia";
			strskiname[75]="Baveno";
			strskiname[76]="Bellagio";
			strskiname[77]="Bormio";
			strskiname[78]="Cadenabbia";
			strskiname[79]="Campitello";
			strskiname[80]="Canazei";
			strskiname[81]="Cervinia";
			strskiname[82]="Champoluc";
			strskiname[83]="Claviere";
			strskiname[84]="Cortina d'Ampezzo";
			strskiname[85]="Courmayeur";
			strskiname[86]="Desenzano del Garda";
			strskiname[87]="Garda";
			strskiname[88]="Gardone Riviera";
			strskiname[89]="Gressoney la Trinite";
			strskiname[90]="La Thuile";
			strskiname[91]="Limone sul Garda";
			strskiname[92]="Livigno";
			strskiname[93]="Macugnaga";
			strskiname[94]="Madesimo";
			strskiname[95]="Madonna di Campiglio";
			strskiname[96]="Malcestine";
			strskiname[97]="Menaggio";
			strskiname[98]="Pallanza";
			strskiname[99]="Passo del Tonale";
			strskiname[100]="Riva del Garda";
			strskiname[101]="Santa Caterina Valfurva";
			strskiname[102]="Sauze d'Oulx";
			strskiname[103]="Selva di Val Gardena";
			strskiname[104]="Sestriere";
			strskiname[105]="Sirmione";
			strskiname[106]="Stresa";
			strskiname[107]="Torbole";
			strskiname[108]="SPAIN";
			strskiname[109]="Formigal";
			strskiname[110]="Sierra Nevada";
			strskiname[111]="";
			strskiname[112]="Switzerland";
			strskiname[113]="Adelboden";
			strskiname[114]="Arosa";
			strskiname[115]="Chateux-d'Oex";
			strskiname[116]="Crans-Montana";
			strskiname[117]="Davos";
			strskiname[118]="Grindelwald";
			strskiname[119]="Gstaad";
			strskiname[120]="Interlaken";
			strskiname[121]="Kandersteg";
			strskiname[122]="Klosters";
			strskiname[123]="Lausanne";
			strskiname[124]="Lenzerheide";
			strskiname[125]="Les Diablerets";
			strskiname[126]="Leysin";
			strskiname[127]="Lorcarno";
			strskiname[128]="Lucerne";
			strskiname[129]="Lugano";
			strskiname[130]="Montreux";
			strskiname[131]="Murren";
			strskiname[132]="Pontresina";
			strskiname[133]="Saas Fee";
			strskiname[134]="St Moritz";
			strskiname[135]="Verbier";
			strskiname[136]="Villars";
			strskiname[137]="Wengen";
			strskiname[138]="Zermatt";
			strskiname[139]="";
			strskiname[140]="U.S.A";
			strskiname[141]="Aspen";
			strskiname[142]="Beaver Creek";
			strskiname[143]="Breckenridge";
			strskiname[144]="Copper Mountain";
			strskiname[145]="Crested Butte";
			strskiname[146]="Jackson Hole";
			strskiname[147]="Keystone";
			strskiname[148]="Killington";
			strskiname[149]="Lake Tahoe";
			strskiname[150]="Mammoth Lakes";
			strskiname[151]="Park City";
			strskiname[152]="Snowbird";
			strskiname[153]="Steamboat Springs";
			strskiname[154]="Stowe";
			strskiname[155]="Sugarbush";
			strskiname[156]="Sugarloaf";
			strskiname[157]="Sunday River";
			strskiname[158]="Telluride";
			strskiname[159]="Vail";
			strskiname[160]="Winter Park";

			for (i =0;  i <= 160; i++ )
			
			{
				var curskicode	= strskicode[i];
				var curskiname	= strskiname[i];
							
				if (curskicode == strdest &&  strdest != "")
				{
					var strBuild = "<option value = \"" + curskicode + "\" selected >" + curskiname + "</option>";	
				}
				else
				{
					var strBuild = "<option value = \"" + curskicode + "\">" + curskiname + "</option>";	
				}
			
				document.write (strBuild);
				strBuild="";
				
			}
			
			
			
		}
		function fillMonths(strMonths)

{
  if ( strMonths.substr(4,1) == '0' )
 {
	strMonths= strMonths.substr(5,1)
}
	else
{
 strMonths= strMonths.substr(4,2)
}
strMonths=strMonths - 1;
  
		var months = new Array(new month(0,"Jan",strMonths), new month(1,"Feb",strMonths),new month(2,"Mar",strMonths),new month(3,"Apr",strMonths),new month(4,"May",strMonths), new month(5,"Jun",strMonths), new month(6,"Jul",strMonths), new month(7,"Aug",strMonths), new month(8,"Sep",strMonths), new month(9,"Oct",strMonths), new month(10,"Nov",strMonths), new month(11,"Dec",strMonths));
	for(var i=0;i<12;i++) document.write(months[i].option);
}


function fillDays(strDays)
{
	for (d=1;d<32;d++)
	{
	 if (d == strDays)
	 {
		document.write("<option value=\""+d+"\" selected >"+d+"</option>");
	 }
	 else
	 {
		document.write("<option value=\""+d+"\">"+d+"</option>");
	 }
	}
}
		