	// JavaScript Document
	
	function ajouterFavoris() {
		if ( navigator.appName != 'Microsoft Internet Explorer' )
		{ window.sidebar.addPanel("JMCL Distribution","http://www.jmcldistribution.com",""); }
		else { window.external.AddFavorite("http://www.jmcldistribution.com/","JMCL Distribution"); }
		}
		
		function recommander()
		{
		mail_str = "mailto:?subject=Recommandation du site internet JMCL Distribution"
		mail_str += "&body=Bonjour, le site internet JMCL Distribution pourrait t'int%E9resser. Voici le lien pour le visiter  http://www.jmcldistribution.com"
		
		location.href = mail_str;
	}
	
	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 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 popup(page,largeur,hauteur,options) {     var top=(screen.height-hauteur)/2;     var left=(screen.width-largeur)/2;     window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options); }  //exemple utilisation : <a href='javascript:popupcentree("popup.html",250,300,"menubar=no,scrollbars=no,statusbar=no")'>Popup</a> 
	
	/*function goSelectionMarque(targ,selObj,restore){ 
	eval(targ+".location='recherche_marque-"+selObj.options[selObj.selectedIndex].value+"-golf.html'");
	eval(targ+".location='liste_produit_marque.php?search_marque="+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
	}*/
