function checkForm(){
	var theForm = document.ajout_message;
	if (( !theForm.civ[0].checked) && (!theForm.civ[1].checked) && (!theForm.civ[2].checked)) {	
		alert("Please fill in your title");
		return;
	}
	if (theForm.nom.value=="") {
		alert("Please fill in your Last name");
		theForm.nom.focus();
		return;
	}
	if (theForm.prenom.value=="") {
		alert("Please fill in your First name");
		theForm.prenom.focus();
		return;
	}
	if (theForm.pays.value=="") {
		alert("Please fill in your Country of residence");
		theForm.pays.focus();
		return;
	}
	if (theForm.mail.value!=""){
		var exclude=/[^@\-\.\w]|^[_@\.\-]|[\._\-]{2}|[@\.]{2}|(@)[^@]*\1/;
		var check=/@[\w\-]+\./;
		var checkend=/\.[a-zA-Z]{2,3}$/;
		var bEmailCheck = true ;
		if(((theForm.mail.value.search(exclude) != -1)||(theForm.mail.value.search(check)) == -1)||(theForm.mail.value.search(checkend) == -1)){
			alert("The e-mail address is not valid");
			theForm.mail.focus();
			return;
		}
	} else {
		alert("Please fill in your e-mail address");
		theForm.mail.focus();
		return;
	}
	if (theForm.message.value=="") {
		alert("Please fill in your message");
		theForm.message.focus();
		return;
	}

	theForm.action="index.php";
	theForm.submit();
}