function affiche(n) {var x = document.getElementById("R"+n);var y = document.getElementById("Q"+n);if (x.style.display == "none") {x.style.display = "block";  y.className= "Ouvert";}else {x.style.display = "none";   y.className = ""}}


function imprimer(){if(window.print)	{	document.write('<A HREF="javascript:window.print()">Imprimer cette page</A>');	}}function openwin() {var taillex = 750;var tailley = 600;var posx = (screen.width - taillex) / 2;var posy = (screen.height - tailley) / 2;var conf ="toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width="+taillex+",height="+tailley+",left="+posx+",top="+posy;window.open('print.html','',conf);}sfHover = function() {	var sfEls = document.getElementById("menu").getElementsByTagName("LI");	for (var i=0; i<sfEls.length; i++) {		sfEls[i].onmouseover=function() {			this.className+=" sfhover";		}		sfEls[i].onmouseout=function() {			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");		}	}}if (window.attachEvent) window.attachEvent("onload", sfHover);function bascule(id) {var d = document.getElementById(id);var y =document.getElementById("onglet_"+id)	for (var i = 1; i<=10; i++) {		if (document.getElementById('liste'+i)){		document.getElementById('liste'+i).style.display='none';		document.getElementById('onglet_liste'+i).className= "";		}	}if (d) {	d.style.display='block';	y.className= "active";}}function redirect (catid){	var pro_id = eval("document.form"+catid+".product"+catid+"["+eval("document.form"+catid+".product"+catid+".selectedIndex")+"].value");		if (pro_id != 'x')	{		window.location = "products.php?id="+pro_id;	}}
