// remplace une image par une autre - ex:rollover
function fChangeImage(sImageNom,sImageURL)
{
	document.getElementById(sImageNom).src = sImageURL;
}

// affiche les articles correspondants aux rubriques
function fAfficheMenu(iMenu)
{
	for (iLoop = 1; iLoop <= 4; iLoop ++)
	{
		if (iLoop == iMenu)
		{
			document.getElementById("Deroulant"+iLoop).style.visibility = "visible";
		}
		else
		{
			if (document.getElementById("Deroulant"+iLoop) != undefined)
			{
				document.getElementById("Deroulant"+iLoop).style.visibility = "hidden";
			}
		}
	}
}

// lance la recherche
function fLanceRecherche()
{
	document.fRecherche.submit();
}

// ouvre la popup public concerne
function fOuvrePublic(id_article)
{
	window.open("popup375c.html?id_article="+id_article,"popup","top=50,left=50,width=700,height=550,scrollbars=1");
}

// ferme la fenetre
function fFermePopup()
{
	top.close();
}


function printPage(url){
	var h = screen.height;
	var l = screen.width;
	window.open(""+url+"","Print","width=705,height=550,left="+((l-705)/2)+",top="+((h-550)/2)+",scrollbars=yes");
}
