function validate( form )
{
	var valid = true;
	
	if ($("#txtPVoornaam").val().length < 2 && $("#txtZVoornaam").val().length < 2){
		$("#lblVoornaam").css('color','red').css('font-weight', 'bold');
		valid = false;
	}else{
		$("#lblVoornaam").css('color','black').css('font-weight', 'normal');
	}
	
	if ($("#txtPAchternaam").val().length < 2 && $("#txtZAchternaam").val().length < 2){
		$("#lblAchternaam").css('color','red').css('font-weight', 'bold');
		valid = false;
	}else{
		$("#lblAchternaam").css('color','black').css('font-weight', 'normal');
	}
	
	if ($("#txtPAdres").val().length < 2 && $("#txtZAdres").val().length < 2){
		$("#lblAdres").css('color','red').css('font-weight', 'bold');
		valid = false;
	}else{
		$("#lblAdres").css('color','black').css('font-weight', 'normal');
	}
	
	if ($("#txtPPlaats").val().length < 2 && $("#txtZPlaats").val().length < 2){
		$("#lblPlaats").css('color','red').css('font-weight', 'bold');
		valid = false;
	}else{
		$("#lblPlaats").css('color','black').css('font-weight', 'normal');
	}
	
	if ($("#txtPGSM").val().length < 2 && $("#txtZGSM").val().length < 2){
		$("#lblGSM").css('color','red').css('font-weight', 'bold');
		valid = false;
	}else{
		$("#lblGSM").css('color','black').css('font-weight', 'normal');
	}
	
	var regex = '^([0-9a-zA-Z]+[-._+])*[0-9a-zA-Z]+@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$';
	if ($("#txtPEmail").val().search(regex) == -1 && $("#txtZEmail").val().search(regex) == -1){
		$("#lblEmail").css('color','red').css('font-weight', 'bold');
		valid = false;
	}else{
		$("#lblEmail").css('color','black').css('font-weight', 'normal');
	}
	
	if ($("#contact-toegelaten")[0].checked == false){
		$("#lblContact").css('color','red').css('font-weight', 'bold');
		valid = false;
	}else{
		$("#lblContact").css('color','black').css('font-weight', 'normal');
	}
	
	if(!valid){
		$("#validation-failed").show();
	}
	
	return valid;
}