$(document).ready(function() {

	/* Fancybox */
	
	$("a.formzoom").fancybox({
		'width'			: 500,
		'height'		: 720,
		'padding'		: 0,
		'autoScale'		: false,
		'type'			: 'iframe'
	});
	
	$("a.quotezoom").fancybox({
		'width'			: 500,
		'height'		: 480,
		'padding'		: 0,
		'autoScale'		: false,
		'type'			: 'iframe'
	});
	
	$("a.productzoom").fancybox();
	
});



function Valideer()
{
	var isGoed = true;
	var isGoedMelding = '';
	
	if (document.getElementById('naam').value == '') {
		isGoed = false;
		isGoedMelding += '\r\n- Vul a.u.b. alle velden in.'
	}
	
	var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
	if (!reg.test(document.getElementById('email').value)) {
		isGoed = false;
		isGoedMelding += '\r\n- Vul een geldig e-mailadres in.'
	}
	
	if (!isGoed) {
		alert('U heeft niet alle verplichte velden correct ingevuld:' + isGoedMelding);
		return false;
	}
	else {
		return true;
	}
}
