function getDepartures(){	

  var xmldata;
  var xmlDepPath;
  
  xmldata = "";
  xmlDepPath = "";

  xmldata = document.getElementById("sentalias").value;
  
  if (xmldata == "transat"){

    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/transat.xml";
	
  }
  
  if (xmldata == "sunwing"){

    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/sunwing_flights.xml";
	
  }
  
  else if (xmldata == "ret"){

    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/departures/departures_city.xml";
	
  }
  
  else if (xmldata == "api"){

    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/api_dep/departures_city.xml";
	
  }
  
  else if(xmldata == "llx"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/transat_dep/departures_city.xml"
	  
  }
  
  else if(xmldata == "snw"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/sunwing_dep/departures_city.xml"
	  
  }
  
  else if(xmldata == "acv"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/aircanada_dep/departures_city.xml"
	  
  }
  
  else if(xmldata == "cye"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/conquest_dep/departures_city.xml"
	  
  }
  
  else if(xmldata == "mop"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/hola_dep/departures_city.xml"
	  
  }
  
  else if(xmldata == "jkd"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/noli_dep/departures_city.xml"
	  
  }
  
  else if(xmldata == "lfm"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/signature_dep/departures_city.xml"
	  
  }
  
  else if(xmldata == "sun"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/sunquest_dep/departures_city.xml"
	  
  }
  
  else if(xmldata == "sqq"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/sunquest_que_dep/departures_city.xml"
	  
  }
  
  else if(xmldata == "eur"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/europe_dep/departures_city.xml"
	  
  }
  
  else if(xmldata == "lvg"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/vegas_dep/departures_city.xml"
	  
  }
  
  else if(xmldata == "san"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/san/departures_city.xml"
	  
  }
  
  else if(xmldata == "bea"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/bea/departures_city.xml"
	  
  }
  
  else if(xmldata == "bzs"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/bzs/departures_city.xml"
	  
  }
  
  else if(xmldata == "swf"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/sunwing_flights/departures_city.xml"
	  
  }
  
  else if(xmldata == "swf"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/sunwing_flights/departures_city.xml"
	  
  }
  
  else if(xmldata == "999"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/99giveaway/departures_city.xml"
	  
  }
	
  var mozillaFlag = false;

  var XMLHttpRequestObject = false;

  if(window.XMLHttpRequest){

    XMLHttpRequestObject = new XMLHttpRequest();

    //XMLHttpRequestObject.overrideMimeType("text/xml");  

    mozillaFlag = true;

  }

  else if(window.ActiveXObject){

    XMLHttpRequestObject = new ActiveXObject("Microsoft.XMLHTTP");

  }

  if(XMLHttpRequestObject){

    XMLHttpRequestObject.open("GET",xmlDepPath, true);

    XMLHttpRequestObject.onreadystatechange = function(){

      if(XMLHttpRequestObject.readyState == 4 && XMLHttpRequestObject.status == 200){

	    var xmlDocument = XMLHttpRequestObject.responseXML;

	    if(mozillaFlag){

	      removeWhitespace(xmlDocument);

	    }

	    displayDeparture(xmlDocument);

      }

    }

    XMLHttpRequestObject.send(null);

  }

}


function getDestinations(){

  var xmldata;
  var xmlDepPath;
  
  xmldate = "";
  xmlDepPath = "";

  xmldata = document.getElementById("sentalias").value;
  
  file_loc = document.getElementById("sentcode").value;
  
  if (xmldata == "transat"){

    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/transat.xml";
	
  }
  
  if (xmldata == "sunwing"){

    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/sunwing_flights.xml";
	
  }
  
  else if (xmldata == "ret"){

    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/departures/" + file_loc + ".xml";
	
  }
  
  else if (xmldata == "api"){

    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/api_dep/" + file_loc + ".xml";
	
  }
  
  else if(xmldata == "llx"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/transat_dep/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "snw"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/sunwing_dep/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "acv"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/aircanada_dep/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "cye"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/conquest_dep/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "mop"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/hola_dep/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "jkd"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/noli_dep/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "lfm"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/signature_dep/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "sun"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/sunquest_dep/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "sqq"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/sunquest_que_dep/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "eur"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/europe_dep/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "lvg"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/vegas_dep/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "san"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/san/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "bea"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/bea/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "bzs"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/bzs/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "swf"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/sunwing_flights/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "999"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/99giveaway/" + file_loc + ".xml"
	  
  }

  var mozillaFlag = false;

  var XMLHttpRequestObject = false;
  
  //alert(xmlDesPath);

  if(window.XMLHttpRequest){

    XMLHttpRequestObject = new XMLHttpRequest();

    //XMLHttpRequestObject.overrideMimeType("text/xml");  
  
    mozillaFlag = true;

  }

  else if(window.ActiveXObject){

    XMLHttpRequestObject = new ActiveXObject("Microsoft.XMLHTTP");

  }

  if(XMLHttpRequestObject){

    XMLHttpRequestObject.open("GET", xmlDepPath, true);

    XMLHttpRequestObject.onreadystatechange = function(){

      if(XMLHttpRequestObject.readyState == 4 && XMLHttpRequestObject.status == 200){

	    var xmlDocument = XMLHttpRequestObject.responseXML;

	    if(mozillaFlag){

	      removeWhitespace(xmlDocument);

	    }

	    displayDestination(xmlDocument);
		
		 displayDestination(xmlDocument);

      }

    }

    XMLHttpRequestObject.send(null);

  }

}

function getDestinations2(){
  
  var xmldata;
  var xmlDepPath;
  
  xmldate = "";
  xmlDepPath = "";

  xmldata = document.getElementById("sentalias").value;
  
  var indexId = document.forms["searchForm"]["departureList"];

  file_loc = indexId[indexId.selectedIndex].value;
  
  document.forms['searchForm']['sentcode'].value = file_loc;
  
  if (xmldata == "transat"){

    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/transat.xml";
	
  }
  
  if (xmldata == "sunwing"){

    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/sunwing_flights.xml";
	
  }
  
  else if (xmldata == "ret"){

    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/departures/" + file_loc + ".xml";
	
  }
  
  else if (xmldata == "api"){

    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/api_dep/" + file_loc + ".xml";
	
  }
  
  else if(xmldata == "llx"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/transat_dep/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "snw"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/sunwing_dep/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "acv"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/aircanada_dep/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "cye"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/conquest_dep/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "mop"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/hola_dep/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "jkd"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/noli_dep/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "lfm"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/signature_dep/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "sun"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/sunquest_dep/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "sqq"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/sunquest_que_dep/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "eur"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/europe_dep/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "lvg"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/vegas_dep/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "san"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/san/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "bea"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/bea/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "bzs"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/bzs/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "swf"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/sunwing_flights/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "999"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/99giveaway/" + file_loc + ".xml"
	  
  }

  var mozillaFlag = false;

  var XMLHttpRequestObject = false;
  
  //alert(xmlDesPath);

  if(window.XMLHttpRequest){

    XMLHttpRequestObject = new XMLHttpRequest();

    //XMLHttpRequestObject.overrideMimeType("text/xml");  
  
    mozillaFlag = true;

  }

  else if(window.ActiveXObject){

    XMLHttpRequestObject = new ActiveXObject("Microsoft.XMLHTTP");

  }

  if(XMLHttpRequestObject){

    XMLHttpRequestObject.open("GET", xmlDepPath, true);

    XMLHttpRequestObject.onreadystatechange = function(){

      if(XMLHttpRequestObject.readyState == 4 && XMLHttpRequestObject.status == 200){

	    var xmlDocument = XMLHttpRequestObject.responseXML;

	    if(mozillaFlag){

	      removeWhitespace(xmlDocument);

	    }

	    displayDestination(xmlDocument);
		
		 displayDestination(xmlDocument);

      }

    }

    XMLHttpRequestObject.send(null);

  }

}

function getAirportCode(){

  var xmldata;
  var xmlDepPath;
  
  xmldate = "";
  xmlDepPath = "";

  xmldata = document.getElementById("sentalias").value;
  
  if (xmldata == "transat"){

    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/transat.xml";
	
  }
  
  if (xmldata == "sunwing"){

    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/sunwing_flights.xml";
	
  }
  
  else if (xmldata == "ret"){

    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/departures/departures_city.xml";
	
  }
  
  else if (xmldata == "api"){

    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/api_dep/departures_city.xml";
	
  }
  
  else if(xmldata == "llx"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/transat_dep/departures_city.xml"
	  
  }
  
  else if(xmldata == "snw"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/sunwing_dep/departures_city.xml"
	  
  }
  
  else if(xmldata == "acv"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/aircanada_dep/departures_city.xml"
	  
  }
  
  else if(xmldata == "cye"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/conquest_dep/departures_city.xml"
	  
  }
  
  else if(xmldata == "mop"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/hola_dep/departures_city.xml"
	  
  }
  
  else if(xmldata == "jkd"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/noli_dep/departures_city.xml"
	  
  }
  
  else if(xmldata == "lfm"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/signature_dep/departures_city.xml"
	  
  }
  
  else if(xmldata == "sun"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/sunquest_dep/departures_city.xml"
	  
  }
  
  else if(xmldata == "sqq"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/sunquest_que_dep/departures_city.xml"
	  
  }
  
  else if(xmldata == "eur"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/europe_dep/departures_city.xml"
	  
  }
  
  else if(xmldata == "lvg"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/vegas_dep/departures_city.xml"
	  
  }
  
  else if(xmldata == "san"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/san/departures_city.xml"
	  
  }
  
  else if(xmldata == "bea"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/bea/departures_city.xml"
	  
  }
  
  else if(xmldata == "bzs"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/bzs/departures_city.xml"
	  
  }
  
  else if(xmldata == "swf"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/sunwing_flights/departures_city.xml"
	  
  }
  
  else if(xmldata == "999"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/99giveaway/departures_city.xml"
	  
  }

  var mozillaFlag = false;

  var XMLHttpRequestObject = false;
  

  if(window.XMLHttpRequest){

    XMLHttpRequestObject = new XMLHttpRequest();

    //XMLHttpRequestObject.overrideMimeType("text/xml");  
  
    mozillaFlag = true;

  }

  else if(window.ActiveXObject){

    XMLHttpRequestObject = new ActiveXObject("Microsoft.XMLHTTP");

  }

  if(XMLHttpRequestObject){

    XMLHttpRequestObject.open("GET", xmlDepPath, true);

    XMLHttpRequestObject.onreadystatechange = function(){

      if(XMLHttpRequestObject.readyState == 4 && XMLHttpRequestObject.status == 200){

	    var xmlDocument = XMLHttpRequestObject.responseXML;

	    if(mozillaFlag){

	      removeWhitespace(xmlDocument);

	    }

	    displayAirportCode(xmlDocument);

      }

    }

    XMLHttpRequestObject.send(null);

  }

}

function getHotelCode(){
	
 var xmldata;
  var xmlDepPath;
  
  xmldate = "";
  xmlDepPath = "";

  xmldata = document.getElementById("sentalias").value;
  
  var indexId = document.forms["searchForm"]["departureList"];

  file_loc = indexId[indexId.selectedIndex].value;
  
  if (xmldata == "ret"){

    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/departures/" + file_loc + ".xml";
	
  }
  
  if (xmldata == "api"){

    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/api_dep/" + file_loc + ".xml";
	
  }
  
  else if(xmldata == "llx"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/transat_dep/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "snw"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/sunwing_dep/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "acv"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/aircanada_dep/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "cye"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/conquest_dep/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "mop"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/hola_dep/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "jkd"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/noli_dep/" + file_loc + ".xml"
	  
  }
   
  else if(xmldata == "lfm"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/signature_dep/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "sun"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/sunquest_dep/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "sqq"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/sunquest_que_dep/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "eur"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/europe_dep/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "lvg"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/vegas_dep/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "san"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/san/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "bea"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/bea/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "bzs"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/bzs/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "swf"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/sunwing_flights/" + file_loc + ".xml"
	  
  }
  
  else if(xmldata == "999"){
	
    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/99giveaway/" + file_loc + ".xml"
	  
  }

  var mozillaFlag = false;

  var XMLHttpRequestObject = false;

  if(window.XMLHttpRequest){

    XMLHttpRequestObject = new XMLHttpRequest();

    //XMLHttpRequestObject.overrideMimeType("text/xml");  
  
    mozillaFlag = true;

  }

  else if(window.ActiveXObject){

    XMLHttpRequestObject = new ActiveXObject("Microsoft.XMLHTTP");

  }

  if(XMLHttpRequestObject){

    XMLHttpRequestObject.open("GET", xmlDepPath, true);

    XMLHttpRequestObject.onreadystatechange = function(){

      if(XMLHttpRequestObject.readyState == 4 && XMLHttpRequestObject.status == 200){

	    var xmlDocument = XMLHttpRequestObject.responseXML;

	    if(mozillaFlag){

	      removeWhitespace(xmlDocument);

	    }
		
	    getHotels(xmlDocument);

      }

    }

    XMLHttpRequestObject.send(null);

  }

}

function getHotelName(){
	
  xmldata = document.getElementById("sentalias").value;
	
  if(xmldata == "llx"){

    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/transat_dep/hotels.xml";
	
  }
  
  else if(xmldata == "jkd"){

    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/noli_dep/hotels.xml";
	
  }
  
  else if(xmldata == "cye"){

    xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/conquest_dep/hotels.xml";
	
  }

  else{

  xmlDepPath = "http://www.redtag.ca/search_engine/scripts/xml_files/departures/hotels.xml";
	
  }
  var mozillaFlag = false;

  var XMLHttpRequestObject = false;

  if(window.XMLHttpRequest){

    XMLHttpRequestObject = new XMLHttpRequest();

    //XMLHttpRequestObject.overrideMimeType("text/xml");  
  
    mozillaFlag = true;

  }

  else if(window.ActiveXObject){

    XMLHttpRequestObject = new ActiveXObject("Microsoft.XMLHTTP");

  }

  if(XMLHttpRequestObject){

    XMLHttpRequestObject.open("GET", xmlDepPath, true);

    XMLHttpRequestObject.onreadystatechange = function(){

      if(XMLHttpRequestObject.readyState == 4 && XMLHttpRequestObject.status == 200){

	    var xmlDocument = XMLHttpRequestObject.responseXML;

	    if(mozillaFlag){

	      removeWhitespace(xmlDocument);

	    }

	    getHotelsNames(xmlDocument);

      }

    }

    XMLHttpRequestObject.send(null); 

  }

}


