function Ajax(bestand, elem) {
	
	if (document.getElementById) {
		var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
	}
	
	if (x) {
		x.onreadystatechange = function() {
			if (x.readyState == 4 && x.status == 200){
				el = document.getElementById(elem);
				el.innerHTML = x.responseText;
			}
		}
		
		x.open("GET", bestand, true);
		x.send(null);
	}
}

function AjaxReturn(bestand) {
	
	if (document.getElementById) {
		var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
	}
	
	if (x) {
		x.open("GET", bestand, false);
		x.send(null);
		return x.responseText;
	}
}

function AjaxSynchroon(bestand, elem) {
	
	if (document.getElementById) {
		var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
	}
	
	if (x) {
		x.open("GET", bestand, false);
		x.send(null);

		el = document.getElementById(elem);
		el.innerHTML = x.responseText;
	}
}
