// JavaScript Document
function getNewHTTPObject1()
{
        var xmlhttp;

        /** Special IE only code ... */
        /*@cc_on
          @if (@_jscript_version >= 5)
              try
              {
                  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
              }
              catch (e)
              {
                  try
                  {
                      xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
                  }
                  catch (E)
                  {
                      xmlhttp = false;
                  }
             }
          @else
             xmlhttp = false;
        @end @*/

        /** Every other browser on the planet */
        if (!xmlhttp && typeof XMLHttpRequest != 'undefined')
        {
            try
            {
                xmlhttp = new XMLHttpRequest();
            }
            catch (e)
            {
                xmlhttp = false;
            }
        }

        return xmlhttp;
}
function showdests1(val)
{
//alert(p);
//alert("a");
   var strURL="getairports.asp?cntry="+val;
//alert("b");
//var xmlhttp1 = new ActiveXObject("Msxml2.XMLHTTP");
//var xmlhttp1 =new xmlhttpRequest();
var xmlhttp1 = getNewHTTPObject1();

//alert("c");
   if (xmlhttp1)
   {
//alert("d");
     xmlhttp1.onreadystatechange = function()
     {
      if (xmlhttp1.readyState == 4)
      {
	 // only if “OK”
	 if (xmlhttp1  if (xmlhttp1)
   {
     xmlhttp1.onreadystatechange = function()
     {
      if (xmlhttp1.readyState == 4)
      {
	 // only if “OK”
	 if (xmlhttp1.status == 200)
         {
			 if(xmlhttp1.responseText=='error')
			 {
				//alert("Please enter correct destination. Format of destonation is like:" + "\n" + "Spain - Majorca - Bendinat or Spain - Majorca");
				document.getElementById("errormsg").value=xmlhttp1.responseText;
			 }
			 else
			 {
				 document.getElementById("errormsg").value="";
			 }
	 } else {
   	   alert("There was a problem while using XMLHTTP:\n" + xmlhttp1.statusText);
	 }
       }
      }
   xmlhttp1.open("GET", strURL, true);
   xmlhttp1.send(null);
   }
}
function destinations(country,dest)
{
	if(dest=='')
	{
		document.getElementById("zones_dropdown").innerHTML="<select name=Zones1 id=Zones1 style=width:160px class=fields><option value=->--All--</option><option value=->--Select Destination--</option></select>";
	}
	cntry_arr=country.split('-');
	document.getElementById('Available_Countries').value=cntry_arr[1];
	var strURL="destinations_dropdown.asp?country="+cntry_arr[0]+"&dest="+dest;
	var xmlhttp1 = getNewHTTPObject1();

   if (xmlhttp1)
   {
     xmlhttp1.onreadystatechange = function()
     {
      if (xmlhttp1.readyState == 4)
      {
	 // only if “OK”
	 if (xmlhttp1.status == 200)
         {
				document.getElementById("dest_dropdown").innerHTML=xmlhttp1.responseText;
			//	alert(xmlhttp1.responseText);
	 } else {
   	   alert("There was a problem while using XMLHTTP:\n" + xmlhttp1.statusText);
	 }
       }
      }
   xmlhttp1.open("GET", strURL, true);
   xmlhttp1.send(null);
   }	
}
function zones_dropd(dest,zone)
{
	dest_arr=dest.split('-');
	
	var strURL="zones_dropdown.asp?destid="+dest_arr[1]+"&dest="+dest_arr[0]+"&zone="+zone;
	var xmlhttp1 = getNewHTTPObject1();

   if (xmlhttp1)
   {
     xmlhttp1.onreadystatechange = function()
     {
      if (xmlhttp1.readyState == 4)
      {
	 // only if “OK”
	 if (xmlhttp1.status == 200)
         {
			// alert(xmlhttp1.responseText);
			document.getElementById("zones_dropdown").innerHTML=xmlhttp1.responseText;
			
	 } else {
   	   alert("There was a problem while using XMLHTTP:\n" + xmlhttp1.statusText);
	 }
       }
      }
   xmlhttp1.open("GET", strURL, true);
   xmlhttp1.send(null);
   }
}esponseText;
			//	alert(xmlhttp1.responseText);
	 } else {
   	   alert("There was a problem while using XMLHTTP:\n" + xmlhttp1.statusText);
	 }
       }
      }
   xmlhttp1.open("GET", strURL, true);
   xmlhttp1.send(null);
   }	
}
function zones_dropd(dest,zone)
{
	dest_arr=dest.split('-');
	
	var strURL="zones_dropdown.asp?destid="+dest_arr[1]+"&dest="+dest_arr[0]+"&zone="+zone;
	var xmlhttp1 = getNewHTTPObject1();

   if (xmlhttp1)
   {
     xmlhttp1.onreadystatechange = function()
     {
      if (xmlhttp1.readyState == 4)
      {
	 // only if “OK”
	 if (xmlhttp1.status == 200)
         {
			// alert(xmlhttp1.responseText);
			document.getElementById("zones_dropdown").innerHTML=xmlhttp1.responseText;
			
	 } else {
   	   alert("There was a problem while using XMLHTTP:\n" + xmlhttp1.statusText);
	 }
       }
      }
   xmlhttp1.open("GET", strURL, true);
   xmlhttp1.send(null);
   }
}--Select Destination--</option></select>";
	}
	cntry_arr=country.split('-');
	document.getElementById('Available_Countries').value=cntry_arr[1];
	var strURL="destinations_dropdown.asp?country="+cntry_arr[0]+"&dest="+dest;
	var xmlhttp1 = getNewHTTPObject1();

   if (xmlhttp1)
   {
     xmlhttp1.onreadystatechange = function()
     {
      if (xmlhttp1.readyState == 4)
      {
	 // only if “OK”
	 if (xmlhttp1.status == 200)
         {
				document.getElementById("dest_dropdown").innerHTML=xmlhttp1.r