function contact(a) {
document.getElementById("error").innerHTML="versturen van de aanmeld gegevens .. ";	
//encode post values
var data = encodePOST(a);
// all forms handled now post the request	
httpRequest("POST","/index.php",true,handlecontact,data);	
return true;
}

function handlecontact() {
var regexp1 = /ERROR:/g;	
	if (request.readyState == 4) {
		if (request.status == 200) {
        if (request.responseText.match(regexp1)) {
			  document.getElementById("error").innerHTML=request.responseText;
		    } else {
			  document.getElementById("content").innerHTML=request.responseText;
        }
		  } else {
		  alert("problem with page returned " + request.status);
		}
	}
}