var _gaq = _gaq || [];
_gaq.push([ '_setAccount', 'UA-8582403-1' ]);
_gaq.push([ '_trackPageview' ]);

(function() {
	var ga = document.createElement('script');
	ga.type = 'text/javascript';
	ga.async = true;
	ga.src = ('https:' == document.location.protocol ? 'https://ssl'
			: 'http://www')
			+ '.google-analytics.com/ga.js';
	var s = document.getElementsByTagName('script')[0];
	s.parentNode.insertBefore(ga, s);
})();

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

function check() {
	var msg = "";

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

if (document.formulaire.name.value == "")	{
		msg += "Veuillez saisir votre nom\n";
		document.formulaire.name.style.backgroundColor = "#F3C200";
	}

if (document.formulaire.msg.value == "")	{
		msg += "Veuillez saisir votre message\n";
		document.formulaire.msg.style.backgroundColor = "#F3C200";
	}

	if (msg == "") return(true);
	else	{
		alert(msg);
		return(false);
	}
}


