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

