	function submitFormContact() 
	{
		
		etatIsNull 		= false;
		errors 			= "";
		etatACorriger 	= false;

		var att1 = document.getElementById('nom_contact').value;var label1 = "Votre nom";
		var att2 = document.getElementById('prenom_contact').value;var label2 = "Votre prénom";
		var att3 = document.getElementById('email_contact').value;var label3 = "Votre email";
		var att4 = document.getElementById('id_objet').value;var label4 = "L'objet de votre contact";
		var att5 = document.getElementById('texte_contact').value;var label5 = "Votre message";
		
		isNull(att1,label1);
		isNull(att2,label2);
		isNull(att3,label3);
		isNull(att4,label4);
		isNull(att5,label5);
				
		var ret = verifErrors ();
		
		return ret;
	}

	function confirmPassword(password1,password2,label) {
	
		if (!etatIsNull && password1!="" && password2!="") {
	
			if(password1 != password2) {
				etatACorriger=true;errors+="\t- "+label+"\n"; 
			}
		}
	}

	function confirmEmail(email1,email2,label) {

		if (!etatIsNull && email1!="" && email2!="") {
			if(email1 != email2) {
				etatACorriger=true;errors+="\t- "+label+"\n"; 
			}
		}
	}

	function isNull (champs,message) {
		
		if (champs=='') { 
			errors+="\t- "+message+"\n";
			etatIsNull=true;
		}
	}

	function isGoodMail(chaine,label) {
	
		if (!etatIsNull && chaine!="") {
	
		var adresse = chaine;

		var place = adresse.indexOf("@",1);
		var point = adresse.indexOf(".",place+1);
			
			if ((place > -1)&&(adresse.length >2)&&(point > 1)) {
				
			}
			else {
				etatACorriger=true;errors+="\t- "+label+"\n"; 
			}
		}
	}

	function verifErrors() {

		var tmp = "";
		
		if (etatIsNull) {
			tmp = errors;
			errors = "";
			errors+="Vous devez remplir les champs suivant pour passer à l'étape suivante :\n\n";
			errors += tmp;
		}
		else if(etatACorriger) { 
			tmp = errors;
			errors = "";
			errors+="Vous avez saisi des données non compatibles dans les champs suivants :\n";
			errors += tmp;
		}
			
		if (errors != '') { alert (errors); return false; }
		else {
				return true; 
		}
	}
