function valideren(contactfrm)
{
	if (document.contactfrm.frm_bedrijf.value=="")
	{
	alert ("Gelieve de naam van uw bedrijf in te vullen.");
	document.contactfrm.frm_bedrijf.style.backgroundColor='#eeffd7';
	document.contactfrm.frm_bedrijf.style.borderColor='#8cc63e';
	document.contactfrm.frm_bedrijf.focus();
	return false;
	}
	

	
	if (document.contactfrm.frm_naam.value=="")
	{
	alert ("Gelieve uw naam in te vullen.");
	document.contactfrm.frm_naam.style.backgroundColor='#eeffd7';
	document.contactfrm.frm_naam.style.borderColor='#8cc63e';
	document.contactfrm.frm_naam.focus();
	return false;
	}
	
	if (document.contactfrm.frm_straat.value=="")
	{
	alert ("Gelieve de naam van uw straat in te vullen.");
	document.contactfrm.frm_straat.style.backgroundColor='#eeffd7';
	document.contactfrm.frm_straat.style.borderColor='#8cc63e';
	document.contactfrm.frm_straat.focus();
	return false;
	}
	
	if (document.contactfrm.frm_nr.value=="")
	{
	alert ("Gelieve het huisnummer in te vullen.");
	document.contactfrm.frm_nr.style.backgroundColor='#eeffd7';
	document.contactfrm.frm_nr.style.borderColor='#8cc63e';
	document.contactfrm.frm_nr.focus();
	return false;
	}
	
	if (document.contactfrm.frm_postcode.value=="")
	{
	alert ("Gelieve uw postcode in te vullen.");
	document.contactfrm.frm_postcode.style.backgroundColor='#eeffd7';
	document.contactfrm.frm_postcode.style.borderColor='#8cc63e';
	document.contactfrm.frm_postcode.focus();
	return false;
	}
	
	if (document.contactfrm.frm_gemeente.value=="")
	{
	alert ("Gelieve uw gemeente in te vullen.");
	document.contactfrm.frm_gemeente.style.backgroundColor='#eeffd7';
	document.contactfrm.frm_gemeente.style.borderColor='#8cc63e';
	document.contactfrm.frm_gemeente.focus();
	return false;
	}

	if (document.contactfrm.frm_tel.value=="")
	{
	alert ("Gelieve uw telefoonnummer in te vullen.");
	document.contactfrm.frm_tel.style.backgroundColor='#eeffd7';
	document.contactfrm.frm_tel.style.borderColor='#8cc63e';
	document.contactfrm.frm_tel.focus();
	return false;
	}
	
	if (document.contactfrm.frm_email.value=="")
	{
	alert ("Gelieve uw e-mailadres in te vullen.");
	document.contactfrm.frm_email.style.backgroundColor='#eeffd7';
	document.contactfrm.frm_email.style.borderColor='#8cc63e';
	document.contactfrm.frm_email.focus();
	return false;
	}
	
	if (document.contactfrm.frm_bericht.value=="")
	{
	alert ("Gelieve een berichtje na te laten.");
	document.contactfrm.frm_bericht.style.backgroundColor='#eeffd7';
	document.contactfrm.frm_bericht.style.borderColor='#8cc63e';
	document.contactfrm.frm_bericht.focus();
	return false;
	}


	if (document.contactfrm.frm_captcha.value=="")
	{
	alert ("Gelieve de code over te tikken.");
	document.contactfrm.frm_captcha.style.backgroundColor='#eeffd7';
	document.contactfrm.frm_captcha.style.borderColor='#8cc63e';
	document.contactfrm.frm_captcha.focus();
	return false;
	}
	
	if (document.contactfrm.frm_captcha.value != "")
	{
	var captchavalue = (document.contactfrm.frm_captcha.value);
	var spamvalue = (document.contactfrm.spamcode.value);
		if(spamvalue != captchavalue){
		alert ("Gelieve de code te controleren.");
		document.contactfrm.frm_captcha.style.backgroundColor='#eeffd7';
		document.contactfrm.frm_captcha.style.borderColor='#8cc63e';
		document.contactfrm.frm_captcha.focus();
		return false;
		}
	}
}
