// JavaScript Document
	function confirmer(texte){
		return confirm(texte);
	}

	function multiplierPoint(champ,points){
		 quantite = $F(champ);
		 pointsTotal = quantite*points;
		 $('points').value = pointsTotal;
	}

function loading(divTarget,divUrl)
{new Effect.Fade(divTarget,
{duration    : 0.4,
afterFinish : function()
{new Ajax.Updater(divTarget, divUrl,
{onComplete : function()
{new Effect.Appear(divTarget);}
});
}
});
}
	

	function cacher(){
		if(document.getElementById('erreur').style.display=="none"){
			return false;
		}else{
			//alert('coucou');
			//document.getElementById('erreur').style.display = 'none';
			Effect.Fade('erreur',{duration:0.4});
			//Effect.multiple('erreur', Effect.DropOut, {speed:0.07, afterFinishInternal:function(){Effect.Fade('erreur',{duration:0.4})}}); return false;
		}
	}
	
	function verifForm(formulaire){
		elements=$$('.obli');
		toto=true;
		elements.each(function(n){
			if($F(n)==""){
				n.focus();
				alert("Tous les champs * sont obligatoires !")
				toto=false;
				throw $break;
				throw $break;
			}
		});
		return toto;
	}
	
		function rollon(id, queue){
		//id.color = $(id).style.backgroundColor;
		new Effect.Highlight(id,{queue:{scope:queue, position:'end'},duration:0.4, startcolor:'#EEEEEE'});
	}
	
	function changeCouleur(ligne){
		this.color=ligne.style.backgroundColor;
		ligne.style.backgroundColor="#EEEEEE";
	}

	function remetCouleur(ligne){
		//ligne.bgColor = '#FFFFFF';
		ligne.style.backgroundColor=this.color;
	}


