//AJAXvar xmlhttp = null;if (window.XMLHttpRequest){	// If IE7, Mozilla, Safari, etc: Use native object	xmlhttp = new XMLHttpRequest(); // no var}else if (window.ActiveXObject){	// ...otherwise, use the ActiveX control for IE5.x and IE6	xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); // no var}else{	// no XMLHTTP... leave as null}//Ajax, zoeken naar bestandenfunction verkooppunten(){    	//Put the form data into a variable       	var plaatsnaam = document.zoek.plaatsnaam.value;				//Change the content of the "result" DIV to "Searching..."		document.getElementById('resultaten').innerHTML = "Zoeken...";		        //This sets a variable with the URL (and query strings) to our PHP script		var pst="plaatsnaam="+escape(plaatsnaam);        		//Open the URL above "asynchronously" (that's what the "true" is for) using the GET method		xmlhttp.open('POST', 'ccmstemplates/19-Home/ajax_verkooppunten.php', true);		xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");        //Check that the PHP script has finished sending us the result		xmlhttp.onreadystatechange = function() {			if(xmlhttp.readyState == 4 && xmlhttp.status == 200){                //Replace the content of the "result" DIV with the result returned by the PHP script				document.getElementById('resultaten').innerHTML = xmlhttp.responseText;			}else{                //If the PHP script fails to send a response, or sends back an error, display a simple user-friendly notification				//document.getElementById('resultaten').innerHTML = 'Er is een fout opgetreden.';			}		}		xmlhttp.send(pst);}