// JavaScript Document

// DispAirport
// change here
// oldvar = DispAirport
// newvar = apa apa aje


var xmlHttpDispAirport;

function GetXmlHttpObjectDispAirport() {
	var xmlHttpDispAirport=null;
	try {
		// Firefox, Opera 8.0+, Safari
		xmlHttpDispAirport=new XMLHttpRequest();
	}
	catch (e) {
		// Internet Explorer
		try {
			xmlHttpDispAirport=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e) {
			xmlHttpDispAirport=new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	return xmlHttpDispAirport;
}



function stateChangedDispAirport()  { 
	if (xmlHttpDispAirport.readyState==4) { 
		document.getElementById("dispAirport").innerHTML=xmlHttpDispAirport.responseText;
	}
}

function dispAirport(str1) {
	xmlHttpDispAirport=GetXmlHttpObjectDispAirport();
	if (xmlHttpDispAirport==null) {
		alert ("Your browser does not support AJAX!");
		return;
	} 
	var url="__disp_airport.php";
	url=url+"?u="+str1;
	url=url+"&sid="+Math.random();
	xmlHttpDispAirport.onreadystatechange=stateChangedDispAirport;
	xmlHttpDispAirport.open("GET",url,true);
	xmlHttpDispAirport.send(null);
}
