// JavaScript Document
// for vmx vintage mx parts
// by frizbee.be

function formcheck_contact(){
	
	
	if (document.formname.ab.value==""){
	  alert("Gelieve uw naam en voornaam in te vullen.");
	  document.formname.ab.focus();
	  document.getElementById("cf_naamvoornaam").style.color="#FF0000";
	  return false
	}
	else document.getElementById("cf_naamvoornaam").style.color="";


	if (document.formname.telefoonnummer.value==""){
	  alert("Gelieve een telefoonnummer in te vullen.");
	  document.formname.telefoonnummer.focus();
	  document.getElementById("cf_tel").style.color="#FF0000";
	  return false
	}
	else document.getElementById("cf_tel").style.color="";
	
	
	if (!checkMail(document.formname.bem.value)){
	  alert("Gelieve een geldig emailadres in te vullen.");
	  document.formname.bem.focus();
	  document.getElementById("cf_email").style.color="#FF0000";
	  return false
	}
	else document.getElementById("cf_email").style.color="";
	
	
	if (document.formname.validator.value==""){
	  alert("Gelieve de code in te vullen.");
	  document.formname.validator.focus();
	  document.getElementById("cf_validator").style.color="#FF0000";
	  return false
	}
	else document.getElementById("cf_validator").style.color="";
	
	
	if (document.formname.message.value==""){
	  alert("Gelieve een bericht in te vullen.");
	  document.formname.message.focus();
	  document.getElementById("cf_message").style.color="#FF0000";
	  return false
	}
	else document.getElementById("cf_message").style.color="";
	
	
}
