function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

// E-mail Form - Validator
function checkData(){
	var correct = true
	var regexpemail =/^[a-zA-Z0-9\-\.\_]+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/; //regexp for e-mail address
	var str = document.form1.email.value; // value to compare
	if (document.form1.naam.value == '') {correct = false; alert("Vul uw naam in.");document.form1.naam.focus(); return correct}
	//if (document.form1.bedrijf.value == '') {correct = false; alert("Vul de naam van uw school of bedrijf in.");document.form1.bedrijf.focus(); return correct}
	//if (document.form1.adres.value == '') {correct = false; alert("Vul uw adres in.");document.form1.adres.focus(); return correct}
	//if (document.form1.postcode.value == '') {correct = false; alert("Vul uw postcode in.");document.form1.postcode.focus(); return correct}
	//if (document.form1.plaatsnaam.value == '') {correct = false; alert("Vul een plaatsnaam in.");document.form1.plaatsnaam.focus(); return correct}
	//if (document.form1.telefoonnummer.value == '') {correct = false; alert("Vul uw telefoonnummer in.");document.form1.telefoonnummer.focus(); return correct}
	if (regexpemail.test(str) == false){
	correct = false; alert("Vul s.v.p een geldig e-mail adres in.");document.form1.email.focus(); return correct}
	//if (document.form1.opmerking.value == '') {correct = false; alert("Vul s.v.p. uw vraag of opmerking in.");document.form1.opmerking.focus(); return correct}
	return correct;
}

// E-mail Form - Validator
function checkBeachForm(){
	var correct = true
	var regexpemail =/^[a-zA-Z0-9\-\.\_]+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/; //regexp for e-mail address
	var str = document.form1.email.value; // value to compare
	if (document.form1.naam.value == '') {correct = false; alert("Vul uw naam in.");document.form1.naam.focus(); return correct}
	if (document.form1.geboortedatum.value == 'DD-MM-JJJJ') {correct = false; alert("Vul uw geboortedatum in.");document.form1.geboortedatum.focus(); return correct}
	if (document.form1.adresveld.value == '') {correct = false; alert("Vul uw adres in.");document.form1.adresveld.focus(); return correct}
	if (document.form1.postcode.value == '') {correct = false; alert("Vul uw postcode in.");document.form1.postcode.focus(); return correct}
	if (document.form1.plaatsnaam.value == '') {correct = false; alert("Vul een plaatsnaam in.");document.form1.plaatsnaam.focus(); return correct}
	if (document.form1.telefoonnummer.value == '') {correct = false; alert("Vul uw telefoonnummer in.");document.form1.telefoonnummer.focus(); return correct}
	if (document.form1.akkoord.checked == false) {correct = false; alert("U dient ermee akoord te gaan dat de organisatie van de European Beach Challenge 2005 op geen enkele wijze aansprakelijk kan worden gesteld.");document.form1.akkoord.focus(); return correct}
	if (regexpemail.test(str) == false){
	correct = false; alert("Vul s.v.p een geldig e-mail adres in.");document.form1.email.focus(); return correct}
	//if (document.form1.opmerking.value == '') {correct = false; alert("Vul s.v.p. uw vraag of opmerking in.");document.form1.opmerking.focus(); return correct}
	return correct;
}