
    
     // The server-side script
	   function handleHttpResponse() {	
		if (http.readyState == 4) {
			  if(http.status==200) {
			  	var results=http.responseText;
			  document.getElementById('divCustomerInfo').innerHTML = results;
			  }
  			}
		}
		
	    function requestCustomerInfo() {
	    var url = "http://www.denieuwbouwcentrale.be/admin/catalogus/functies2.php?";      
      var sZoekterm = document.getElementById("zoekterm").value;
			var sProvincie = document.getElementById("provincie").value;
			http.open("GET", url + "zoekterm=" + escape(sZoekterm) + "&provincie=" + escape(sProvincie) +"&zoeken=Zoeken",  true);
			http.onreadystatechange = handleHttpResponse;
			try{
			http.send(null);
			}catch(error){
			
			}
        }
        
      function requestCustomerMoreInfo(prodid) {
	    var url = "http://www.denieuwbouwcentrale.be/admin/catalogus/functies2.php?";      
 			http.open("GET", url + "id=&prodid=" + escape(prodid),  true);
			http.onreadystatechange = handleHttpResponse;
			try{
			http.send(null);
			}catch(error){
			
			}
        }
function getHTTPObject() {
  var xmlhttp;
 
  if(window.XMLHttpRequest){
    xmlhttp = new XMLHttpRequest();
  }
  else if (window.ActiveXObject){
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    if (!xmlhttp){
        xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
    
}
  return xmlhttp;

  
}
var http = getHTTPObject(); // We create the HTTP Object