
	function verif_saisie() {
		
		var valide=0;

		
		//Test du champ mail expediteur
		ok = false ;
		var adr=document.getElementById('mail_expediteur').value;

		for (var j=1 ; j<(adr.length) ; j++) {
			if (adr.charAt(j)=='@') {
				if (j<(adr.length-4)){
					for (var k=j ; k<(adr.length-2) ; k++) {
						if (adr.charAt(k)=='.') 
							ok = true;
					}
				}
			}
		}
		if (ok==true){
			document.getElementById('mail_expediteur').style.backgroundColor="#ffffff";
			valide++;
		}
		else{
			document.getElementById('mail_expediteur').style.backgroundColor="#ffdfdf";
		}
		
		//Test du champ mail destinataire
		ok = false ;
		var adr=document.getElementById('mail_destinataire').value;

		for (var j=1 ; j<(adr.length) ; j++) {
			if (adr.charAt(j)=='@') {
				if (j<(adr.length-4)){
					for (var k=j ; k<(adr.length-2) ; k++) {
						if (adr.charAt(k)=='.') 
							ok = true;
					}
				}
			}
		}
		if (ok==true){
			document.getElementById('mail_destinataire').style.backgroundColor="#ffffff";
			valide++;
		}
		else{
			document.getElementById('mail_destinataire').style.backgroundColor="#ffdfdf";
		}
		

		if(valide<2){
			alert("Veuillez saisir correctement la totalité des champs annotés d'un astérisque.");
			return false;
		}
		else{
			return true;
		}
	}
	

