var xmlHttp;

function createXMLHttpRequest()
{
    if (window.ActiveXObject)
	{
     xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    } 
    else if (window.XMLHttpRequest)
	{
     xmlHttp = new XMLHttpRequest();
    }
}
    
function haalReaktie(Nr)
{
    createXMLHttpRequest();
    xmlHttp.onreadystatechange = handleStateChange;
    xmlHttp.open('GET', 'leesReaktie.php?volgnr=' + Nr, true);
	xmlHttp.setRequestHeader('Content-Type', 'text/xml');
    xmlHttp.send(null);
}
    
function handleStateChange()
{
 if(xmlHttp.readyState == 4)
 {
   if(xmlHttp.status == 200)
   {
      document.getElementById("herinnvar").innerHTML = xmlHttp.responseText;
   }
 } 
}

