	
	/* Project: Certus                  */
	/* Gemaakt door: Sjoerd Stottelaar  */
	/* Datum: december 2008             */
	
	// Maak xmlhttp
	function makeXmlHttp(){
        var xmlhttp = null;
        if(window.XMLHttpRequest){
        xmlhttp = new XMLHttpRequest();
        }else{
            try{
                xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
            }catch(e){
                window.alert("Uw browser ondersteunt het XMLHttpRequest object niet!");
            }
        }        
        return xmlhttp;
    }
	
	// Maak openPage
	function openPage(pageId){
		var xmlhttp = makeXmlHttp();				
		xmlhttp.open("GET", pageId + ".php", true);		
		xmlhttp.onreadystatechange = function(){			
			if(xmlhttp.readyState == 4){	
				document.getElementById("content_inhoud").innerHTML = xmlhttp.responseText;
			}
		}
		xmlhttp.send('');
	}