function GetXmlHttpObject(){xmlHttp=null;try{xmlHttp=new XMLHttpRequest();}catch(e){try{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");};};return xmlHttp;};function getData(targetId,functionCall,url,params){var xmlHttp=GetXmlHttpObject();if(xmlHttp==null){alert("Browser ondersteunt geen AJAX!");return;};if(typeof functionCall!="undefined"&&functionCall!=null){xmlHttp.onreadystatechange=function(){stateChanged(targetId,functionCall,xmlHttp);};};if(typeof params=="undefined"||params==null){xmlHttp.open("GET",url+"&date="+new Date(),true);xmlHttp.send(null);}else{xmlHttp.open("POST",url+"&date="+new Date(),true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");var paramString="";for(var i=0;i<params.length;i++){paramString+=params[i]+"="+escapeAmpersand(params[++i])+"&";};xmlHttp.send(paramString.substr(0,paramString.length-1));};};function stateChanged(targetId,functionCall,xmlHttp){if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){if(targetId==null){functionCall(xmlHttp.responseText);}else{functionCall(targetId,xmlHttp.responseText);};};return;};function escapeAmpersand(url){if(typeof url=="string"){return replace(url,"&","%26");};return url;}
