function AlleenCijfers(evt){  //onkeypress="return AlleenCijfers(event)"
	var charCode = (evt.which) ? evt.which : event.keyCode
	if (charCode > 31 && (charCode < 48 || charCode > 57))
	{
		return false;
	}
	return true;
}

function Controleer(){
	var Foutmelding = '';
	submitOK = true;
	var email = this.Email.value;
	var emailFilter = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
	
	$('input[type=text]').css({'border-color': '#000'});
	
	if (this.Aanhef != null){
		var AantalRadioButtons = this.Aanhef.length;
		var Checked = false;
		for( i=0; i<AantalRadioButtons; i++){
			if( this.Aanhef[i].checked == true ) {
				Checked = true;
			}
		}
		if( Checked == false ){
			Foutmelding = Foutmelding + '- Aanhef.\n';
			submitOK= false;
		}
	}
	
	if (this.Voorletter != null && this.Voorletter.value.length==0){
		Foutmelding = Foutmelding + '- Uw voorletter(s).\n';
		this.Voorletter.style.border = '1px solid #ff0000';
		submitOK= false;
	}
	if (this.Achternaam != null && this.Achternaam.value.length==0){
		Foutmelding = Foutmelding + '- Uw achternaam.\n';
		this.Achternaam.style.border = '1px solid #ff0000';
		submitOK= false;
	}
	
	if (this.Straat != null && this.Straat.value.length==0){
		Foutmelding = Foutmelding + '- Uw straatnaam.\n';
		this.Straat.style.border = '1px solid #ff0000';
		submitOK= false;
	}
	if (this.Huisnummer != null && this.Huisnummer.value.length==0){
		Foutmelding = Foutmelding + '- Uw huisnummer.\n';
		this.Huisnummer.style.border = '1px solid #ff0000';
		submitOK= false;
	}
	
	if (this.Postcode != null && this.Postcode.value.length==0){
		Foutmelding = Foutmelding + '- Uw postcode.\n';
		this.Postcode.style.border = '1px solid #ff0000';
		submitOK= false;
	}
	
	if (this.Woonplaats != null && this.Woonplaats.value.length==0){
		Foutmelding = Foutmelding + '- Uw woonplaats.\n';
		this.Woonplaats.style.border = '1px solid #ff0000';
		submitOK= false;
	}
	
	if (!emailFilter.test(email)) {
		Foutmelding = Foutmelding + '- U dient een geldig emailadres in te voeren.\n';
		this.Email.style.border = '1px solid #ff0000';
		submitOK= false;
	}
	
	if (this.Oogpunt != null){
		var AantalRadioButtons = this.Oogpunt.length;
		var Checked = false;
		for( i=0; i<AantalRadioButtons; i++){
			if( this.Oogpunt[i].checked == true ) {
				Checked = true;
			}
		}
		if( Checked == false ){
			Foutmelding = Foutmelding + '- Vanuit welk oogpunt bent u geinteresseerd in Weekamp Deuren?\n';
			submitOK= false;
		}
		if(document.getElementById("Professional").checked && this.Bedrijfsnaam.value.length==0){
			Foutmelding = Foutmelding + '- Uw bedrijfsnaam.\n';
			this.Bedrijfsnaam.style.border = '1px solid #ff0000';
			submitOK= false;
		}
	}
	var CheckedCheckboxes = false;
	if(this.Brochures_Livingdoors!=null){
		if(!CheckedCheckboxes){
			CheckedCheckboxes = this.Brochures_Livingdoors.checked;
		}
	}
	if(this.Brochures_Voordeuren!=null){
		if(!CheckedCheckboxes){
			CheckedCheckboxes = this.Brochures_Voordeuren.checked;
		}
	}	
	if(this.Brochures_Terrasdeuren!=null){
		if(!CheckedCheckboxes){
			CheckedCheckboxes = this.Brochures_Terrasdeuren.checked;
		}
	}
	if(this.Brochures_Stapeldorpel!=null){
		if(!CheckedCheckboxes){
			CheckedCheckboxes = this.Brochures_Stapeldorpel.checked;
		}
	}
	if(this.Driepuntsslot!=null){
		if(!CheckedCheckboxes){
			CheckedCheckboxes = this.Driepuntsslot.checked;
		}
	}
	if(this.Atelierservice!=null){
		if(!CheckedCheckboxes){
			CheckedCheckboxes = this.Atelierservice.checked;
		}
	}
	if(this.Formuleservice!=null){
		if(!CheckedCheckboxes){
			CheckedCheckboxes = this.Formuleservice.checked;
		}
	}
	if(this.StabielComfort!=null){
		if(!CheckedCheckboxes){
			CheckedCheckboxes = this.StabielComfort.checked;
		}
	}
	if(this.Koperskeuze!=null){
		if(!CheckedCheckboxes){
			CheckedCheckboxes = this.Koperskeuze.checked;
		}
	}
	if(this.Brochures_Livingdoors!=null){
		if(!CheckedCheckboxes){
			submitOK= false;
			Foutmelding = Foutmelding + '- Brochure en prijslijst / leaflets.\n';
		}							
	}
	if (submitOK== false ){
		alert('De volgende velden dient u in te vullen:\n' + Foutmelding);
		return false;
	}else if( this.name == 'BrochurePerPost'){
		if( this.Oogpunt[0].checked == true ){
			if( this.Fax.value.length==0 ){
				var agree = confirm('U heeft uw faxnummer nog niet ingevuld, maar dit is niet verplicht.\n\nKlik [OK] als u het formulier wilt versturen.\nKlik [Annuleren] als u uw faxnummer nog wilt invoeren.');
				if (agree){
					return true;
				}else{
					this.Fax.focus();
					return false;
				}
			}else{
				return true;
			}
		}
	}
}
