function getHTTPObject(){
	if (window.XMLHttpRequest) return new XMLHttpRequest();
	else if (window.ActiveXObject) return new ActiveXObject("Microsoft.XMLHTTP");
	else {
		alert("Your browser does not support AJAX.");
		return null;
	}
}

//deze functie bepaald de verschillende acties bij een status
function setOutputShowIt(){
	if(httpObjectShowIt.readyState == 4){
		if(httpObjectShowIt.responseText == 'error'){
			document.getElementById('kavel2').innerHTML = 'Error loading data';
		} else {
			document.getElementById('kavel2').innerHTML = httpObjectShowIt.responseText;
		}
	}
}

//bij het aanroepen van deze functie wordt se parsing in werking gezet
function doWorkShowIt(n){
	httpObjectShowIt = getHTTPObject();
	if (httpObjectShowIt != null) {	

		httpObjectShowIt.open('GET', 'cms/'+n+'.html?' + Math.random(), true);
		httpObjectShowIt.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
		httpObjectShowIt.send(null);
		httpObjectShowIt.onreadystatechange = setOutputShowIt;
	}
}


var httpObjectShowIt = null;
//-->
