// function to validate the input of the contact form.

function validateandsubmit() {
var ok = true

if (document.contactform.email.value == "") 
{
	alert("Gelieve uw emailadres in te vullen")
	ok = false
	return false
}

if (document.contactform.vraag.value == "") 
{
	alert("Gelieve uw vraag in te vullen")
	ok = false
	return false;
}

if (ok = true) 
{
	// send the form for processing
	document.contactform.submit()
}
}

//----------------------------------------------
function sendrequest() {

var invok = "PHP/process_form.php?voornaam="+document.contactform.voornaam.value+"&naam="+document.contactform.naam.value+"&email="+document.contactform.email.value+"&vraag="+document.contactform.vraag.value+"&postcode="+document.contactform.postcode.value
ajaxpage(invok, 'dyncontent')
}
//----------------------------------------------