
	// Vérifie que les champs nom, prenom, email, organisation, password, confirm_password sont remplis
	// Vérifie la validité de l'email aussi
	// Par Frédérick Parent
	
	function validerTexte (Objet, txtStr) {
		alert (txtStr)
			Objet.focus();
		return;
	}
	
	function testerBoite(form) {
		if (document.form_acha.nom.value == "") {
			validerTexte(document.form_acha.nom, "SVP inscrivez votre nom...");
			return (false);
		}
		if (document.form_acha.prenom.value == "") {
			validerTexte(document.form_acha.prenom, "SVP inscrivez votre prénom...");
			return (false);
		}
		if (document.form_acha.email.value == "") {
			validerTexte(document.form_acha.email, "SVP inscrivez votre adresse email...");
			return (false);
		}
		if (document.form_acha.email.value != "") {
			if(document.form_acha.email.value.indexOf('@', 0) == -1 || document.form_acha.email.value.indexOf('.',0) == -1 || document.form_acha.email.value.indexOf(' ',0) != -1 || document.form_acha.email.value.indexOf(',',0) != -1 )
				{
				alert('\nL\'adresse email n\'est pas valide.\nElle doit avoir cette forme : nom@votreserveur.com\n');
				document.form_acha.email.focus();
				return (false);
				}
		}
		if (document.form_acha.province.value == "") {
			validerTexte(document.form_acha.province, "SVP inscrivez votre province, État ou département");
			return (false);
		}
		
		return(true);
	}
	function Soumettre (form)  {
		if (!testerBoite(form)) return(false);
		return(true);
	}

	function Total (){
	document.form_acha.total.value = (
	(1 * document.form_acha.Qte_affiche.selectedIndex) +
	(2 * document.form_acha.Qte_tshirt.selectedIndex) +
	(3 * document.form_acha.Qte_livre.selectedIndex) +
	(4 * document.form_acha.Qte_programme.selectedIndex) +'.00')
	}

