function createXMLHttp(){

	var vers = ["MSXML2.XMLHttp.5.0","MSXML2.XMLHttp.4.0","MSXML2.XMLHttp.3.0","MSXML2.XMLHttp","Microsoft.XMLHttp"];

	for(i=0;i<vers.length;i++){
		try{
			xmlHttp = new ActiveXObject(vers[i]);
			return xmlHttp;
		}catch(err){
						
		}
	}

}

function asyncLoad(url,id){
	var xmlHttp = createXMLHttp();
	
	xmlHttp.open("get",url,true);

	xmlHttp.onreadystatechange = function(){
		if(xmlHttp.readyState==4){
			if(xmlHttp.status ==200){
				document.getElementById(id).innerHTML = xmlHttp.responseText;
			}else{
				document.getElementById(id).innerHTML = xmlHttp.statusText;				
			}
		}
	}
	
	xmlHttp.send();
}
