var xmlhttp

function getData(f){
 xmlhttp=GetXmlHttpObject();
 if (xmlhttp==null){
  alert ("Your browser does not support AJAX!");
  return;
  }
 var url=f;
 xmlhttp.onreadystatechange=loadXml;
 xmlhttp.open("GET",'/xmlFiles/'+url,true);
 xmlhttp.send(null);
}

function loadXml(){
 if (xmlhttp.readyState==4){
  document.getElementById("bubbelBody").innerHTML=xmlhttp.responseText;
 }
}

function GetXmlHttpObject() {
 var xmlHttp=null;
 try{
  xmlHttp=new XMLHttpRequest();
 }catch (e){
  try {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }catch (e){
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
 return xmlHttp;
}