// Form validation

		
function checkFields() {
				
	missinginfo = "";
					
	if (document.contactForm.name.value == "first name*") {
	missinginfo += "\n     -  firstname";
	}	
	
	if (document.contactForm.surname.value == "surname*") {
	missinginfo += "\n     -  surname";
	}
	
	if (document.contactForm.telephone.value == "contact number*") {
	missinginfo += "\n     -  contact number";
	}
					
	if (missinginfo != "") {
	missinginfo ="_____________________________\n" +
	"You failed to correctly fill in your:\n" +
	missinginfo + "\n_____________________________" +
	"\nPlease re-enter and submit again!";
					
	alert(missinginfo);
				
return false;
}
else document.contactForm.submit() ;;
}
				

function getsupport ( selectedtype )
{
  document.contactForm.supporttype.value = selectedtype ;
  checkFields() ;
}
