// JavaScript Document

	function validate()
	{
	var el = document.frmMail;
	var pn = el.prenom;
	var no = el.nom;
	var ad = el.adresse;
	var vi = el.ville;
	var te = el.telephone;
	var co = el.courriel;
	
	if(pn.value =="")
		{
			alert('Il est nécessaire que tu remplis ton prénom.');
			pn.focus();
			pn.style.backgroundColor = "#f8b9b3";
			return false;		
		}
		else
		{
			pn.style.backgroundColor = "#ffffff";
			true;
		}
		
	if(no.value =="")
		{
			alert('Il est nécessaire que tu remplis ton nom.');
			no.focus();
			no.style.backgroundColor = "#f8b9b3";
			return false;		
		}
		else
		{
			no.style.backgroundColor = "#ffffff";
			true;
		}
		
	if(ad.value =="")
		{
			alert('Il est nécessaire que tu remplis ton adresse.');
			ad.focus();
			ad.style.backgroundColor = "#f8b9b3";
			return false;		
		}
		else
		{
			ad.style.backgroundColor = "#ffffff";
			true;
		}
		
	if(vi.value =="")
		{
			alert('Il est nécessaire que tu remplis ton ville.');
			vi.focus();
			vi.style.backgroundColor = "#f8b9b3";
			return false;		
		}
		else
		{
			vi.style.backgroundColor = "#ffffff";
			true;
		}
		
	if(te.value =="")
		{
			alert('Il est nécessaire que tu remplis ton téléphone.');
			te.focus();
			te.style.backgroundColor = "#f8b9b3";
			return false;		
		}
		else
		{
			te.style.backgroundColor = "#ffffff";
			true;
		}
	
	if(co.value.match(/^[a-zA-Z0-9._-]+@([a-zA-Z0-9.-]+\.)+[a-zA-Z0-9.-]{2,4}$/))
		{
			co.style.backgroundColor = "#ffffff";
			true;
		}
		else
		{
			alert('Il est nécessaire que tu remplis ton courriel.'); 
			co.focus();
			co.style.backgroundColor = "#f8b9b3";
			return false;
		}
	}
