
function couleur(obj) {
     obj.style.backgroundColor = "#FFFFFF";
}

function a()
{
alert('fqtsd');
}
function check1() {
	var msg = "";
 
		if (document.formInfos.email.value != "")	{
		indexAroba = document.formInfos.email.value.indexOf('@');
		indexPoint = document.formInfos.email.value.indexOf('.');
		if ((indexAroba < 0) || (indexPoint < 0))		{
		document.formInfos.email.style.backgroundColor = "#F3C200";
			msg += "Le mail est incorrect \r\n";
		}
	}
	else	{
		document.formInfos.email.style.backgroundColor = "#F3C200";
		msg += "Veuillez saisir votre mail. \r\n";
	}
 
if (document.formInfos.nom.value == "")	{
		msg += "Veuillez saisir votre nom \r\n";
		document.formInfos.nom.style.backgroundColor = "#F3C200";
	}
	
	
if (document.formInfos.prenom.value == "")	{
		msg += "Veuillez saisir votre prenom \r\n";
		document.formInfos.prenom.style.backgroundColor = "#F3C200";
	}

	if (msg == "") return(true);
	else	{
		//alert(msg);
		alert("Merci de vérifier les champs colorés. ");
		return(false);
	}
}


function check2() {
	var msg = "";
 
		if (document.formRecrutement.email.value != "")	{
		indexAroba = document.formRecrutement.email.value.indexOf('@');
		indexPoint = document.formRecrutement.email.value.indexOf('.');
		if ((indexAroba < 0) || (indexPoint < 0))		{
		document.formRecrutement.email.style.backgroundColor = "#F3C200";
			msg += "Le mail est incorrect \r\n";
		}
	}
	else	{
		document.formRecrutement.email.style.backgroundColor = "#F3C200";
		msg += "Veuillez saisir votre mail. \r\n";
	}
 
if (document.formRecrutement.nom.value == "")	{
		msg += "Veuillez saisir votre nom \r\n";
		document.formRecrutement.nom.style.backgroundColor = "#F3C200";
	}
	
	
if (document.formRecrutement.prenom.value == "")	{
		msg += "Veuillez saisir votre prenom \r\n";
		document.formRecrutement.prenom.style.backgroundColor = "#F3C200";
	}
if (document.formRecrutement.telephone.value == "")	{
		msg += "Veuillez saisir votre prenom \r\n";
		document.formRecrutement.telephone.style.backgroundColor = "#F3C200";
	}
	if (document.formRecrutement.adresse.value == "")	{
		msg += "Veuillez saisir votre prenom \r\n";
		document.formRecrutement.adresse.style.backgroundColor = "#F3C200";
	}
	if (document.formRecrutement.codePostal.value == "")	{
		msg += "Veuillez saisir votre prenom \r\n";
		document.formRecrutement.codePostal.style.backgroundColor = "#F3C200";
	}
	if (document.formRecrutement.ville.value == "")	{
		msg += "Veuillez saisir votre prenom \r\n";
		document.formRecrutement.ville.style.backgroundColor = "#F3C200";
	}
	
	if (document.formRecrutement.pays.value == "")	{
		msg += "Veuillez saisir votre prenom \r\n";
		document.formRecrutement.pays.style.backgroundColor = "#F3C200";
	}
	
	
	
	
	if (msg == "") return(true);
	else	{
		//alert(msg);
		alert("Merci de vérifier les champs colorés. ");
		return(false);
	}
}

function check3() {
	var msg = "";
 
		if (document.formDistributeur.email.value != "")	{
		indexAroba = document.formDistributeur.email.value.indexOf('@');
		indexPoint = document.formDistributeur.email.value.indexOf('.');
		if ((indexAroba < 0) || (indexPoint < 0))		{
		document.formDistributeur.email.style.backgroundColor = "#F3C200";
			msg += "Le mail est incorrect \r\n";
		}
	}
	else	{
		document.formDistributeur.email.style.backgroundColor = "#F3C200";
		msg += "Veuillez saisir votre mail. \r\n";
	}
 
if (document.formDistributeur.nom.value == "")	{
		msg += "Veuillez saisir votre nom \r\n";
		document.formDistributeur.nom.style.backgroundColor = "#F3C200";
	}
	
	
if (document.formDistributeur.prenom.value == "")	{
		msg += "Veuillez saisir votre prenom \r\n";
		document.formDistributeur.prenom.style.backgroundColor = "#F3C200";
	}

	if (msg == "") return(true);
	else	{
		//alert(msg);
		alert("Merci de vérifier les champs colorés. ");
		return(false);
	}
}

function check4() {
	var msg = "";
 
		if (document.formDesabonnement.email.value != "")	{
		indexAroba = document.formDesabonnement.email.value.indexOf('@');
		indexPoint = document.formDesabonnement.email.value.indexOf('.');
		if ((indexAroba < 0) || (indexPoint < 0))		{
		document.formDesabonnement.email.style.backgroundColor = "#F3C200";
			msg += "Le mail est incorrect \r\n";
		}
	}
	else	{
		document.formDesabonnement.email.style.backgroundColor = "#F3C200";
		msg += "Veuillez saisir votre mail. \r\n";
	}
 
if (document.formDesabonnement.nom.value == "")	{
		msg += "Veuillez saisir votre nom \r\n";
		document.formDesabonnement.nom.style.backgroundColor = "#F3C200";
	}
	
	
if (document.formDesabonnement.prenom.value == "")	{
		msg += "Veuillez saisir votre prenom \r\n";
		document.formDesabonnement.prenom.style.backgroundColor = "#F3C200";
	}

	if (msg == "") return(true);
	else	{
		//alert(msg);
		alert("Merci de vérifier les champs colorés. ");
		return(false);
	}
}



function check5() {
	var msg = "";
 
		if (document.formAutre.email.value != "")	{
		indexAroba = document.formAutre.email.value.indexOf('@');
		indexPoint = document.formAutre.email.value.indexOf('.');
		if ((indexAroba < 0) || (indexPoint < 0))		{
		document.formAutre.email.style.backgroundColor = "#F3C200";
			msg += "Le mail est incorrect \r\n";
		}
	}
	else	{
		document.formAutre.email.style.backgroundColor = "#F3C200";
		msg += "Veuillez saisir votre mail. \r\n";
	}
 
if (document.formAutre.nom.value == "")	{
		msg += "Veuillez saisir votre nom \r\n";
		document.formAutre.nom.style.backgroundColor = "#F3C200";
	}
	
	
if (document.formAutre.prenom.value == "")	{
		msg += "Veuillez saisir votre prenom \r\n";
		document.formAutre.prenom.style.backgroundColor = "#F3C200";
	}

	if (msg == "") return(true);
	else	{
		//alert(msg);
		alert("Merci de vérifier les champs colorés. ");
		return(false);
	}
}
