function clearSearch() {
	if (document.searchform.s.value=="Zoeken...") {
		document.searchform.s.value="";
	}	
}

function search() {
	if (document.searchform.s.value=="Zoeken..." || document.searchform.s.value=="") {
		alert("U heeft nog geen zoekwoord opgegeven!")
		document.searchform.s.focus();
		document.searchform.s.value="";
	} else {
		 window.document.searchform.submit();
		return true ;
	}
}

function checkformContact ()
{
  // see http://www.thesitewizard.com/archive/validation.shtml
  // for an explanation of this script and how to use it on your
  // own website

  // ** START **
  var fout = 0;
  
  if (document.form_contact.name.value == "") {
    alert( "U heeft geen naam ingevuld!" );
		
    document.form_contact.name.style.color="Red";
	document.form_contact.name.focus();
	return false ;
	fout = 1;
  } 
  
   if (document.form_contact.email.value == "") {
    alert( "U heeft geen emailadres ingevuld!" );
		
    document.form_contact.email.style.color="Red";
	document.form_contact.email.focus();
	return false ;
	fout = 1;
  } 
  
   if (document.form_contact.body.value == "") {
    alert( "U heeft geen opmerking ingevuld!" );
		
    document.form_contact.body.style.color="Red";
	document.form_contact.body.focus();
	return false ;
	fout = 1;
  } 
  
  	var email = document.form_contact.email.value;
	var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (!filter.test(email)) {
		alert('U heeft geen geldig emailadres ingevuld!');
		document.form_contact.email.style.color="Red";
		document.form_contact.email.focus();
		return false;
		fout = 1
	}
  
 	if (fout == 0) {

	
	var answer = confirm("Is uw emailadres correct? " + document.form_contact.email.value)
			if (answer){
				//alert("Bye bye!")
				 window.document.form_contact.submit();
					return true ;
          		 return true ;
			}
			else{
				alert("U kunt uw emailadres aanpassen.")
				document.form_contact.email.focus();
				document.form_contact.email.value=email;
			}

	}
  	
}

