function validateForm(tForm){

	x = 0;

if ( tForm.contactname.value.length < 4 ) {
	tForm.contactname.style.backgroundColor = "red";
	tForm.contactname.style.color = "white";
	x = 1;
}
else{
	tForm.contactname.style.backgroundColor = "white";
	tForm.contactname.style.color = "black";
}

if ( tForm.telefon.value.length < 4 ) {
	tForm.telefon.style.backgroundColor = "red";
	tForm.telefon.style.color = "white";
	x = 1;
}
else{
	tForm.telefon.style.backgroundColor = "white";
	tForm.telefon.style.color = "black";
}

if ( tForm.contactemail.value.length < 7 ) {
	tForm.contactemail.style.backgroundColor = "red";
	tForm.contactemail.style.color = "white";
	x = 1;
}
else{
	tForm.contactemail.style.backgroundColor = "white";
	tForm.contactemail.style.color = "black";
}

if ( tForm.subject.value.length < 4 ) {
	tForm.subject.style.backgroundColor = "red";
	tForm.subject.style.color = "white";
	x = 1;
}
else{
	tForm.subject.style.backgroundColor = "white";
	tForm.subject.style.color = "black";
}	
	if(x==1) return false;
}
