var xmlhttp,alerted
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
  try {
  xmlhttp=new ActiveXObject("Msxml2.XMLHTTP")
 } catch (e) {
  try {
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
  } catch (e) {
   alert("Je browser moet Microsofts XML parsers beschikbaar hebben")
  }
 }
@else
 alert("Je browser moet minstens JScript 5 ondersteunen.")
 xmlhttp=false
 alerted=true
@end @*/
if (!xmlhttp && !alerted) {
 try {
  xmlhttp = new XMLHttpRequest();
 } catch (e) {
  alert("Je hebt een browser nodig die het XMLHttpRequest object ondersteunt.")
 }
}

function getData(URL) {
 if (xmlhttp) { 
  xmlhttp.open("GET", URL, true);
  xmlhttp.onreadystatechange=verwerk;
  xmlhttp.send(null);
 }
}

function postData(URL) {
 if (xmlhttp) { 
  xmlhttp.open("POST", URL, true);
  xmlhttp.onreadystatechange=verwerk;
  xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  xmlhttp.send(URL);
 }
}
function verwerk() {
 if (xmlhttp.readyState==4) 
 {
	if (xmlhttp.status==200)
	{
  		document.getElementById('content').innerHTML=xmlhttp.responseText
  	}
  	else
  		alert("Problem retrieving data:" + xmlhttp.statusText)
//   alert(xmlhttp.responseText);
 }
}