/*
*	Deux fonctions "maisons" pour les pop'up
*/
function OuvrePopup(page,largeur,hauteur,haut,gauche,ascenceur) {
	window.open(page,"","top="+haut+",left="+gauche+",toolbar=0,scrollbars="+ascenceur+",resizable=0,menuBar=0,height="+hauteur+",width="+largeur+"");
}
function FermePopup() {
	window.close();
}


/*
*	Fonction pour le Dico
*/

function openW(url){
	theFeatures = "status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=no,left=50,top=200,width=580,height=390";
	window.open(url,"MonPOPUP",theFeatures);
	return false;
}


/*
* Fonction pour afficher/masquer
* les réponses de la FAQ
*/
function AfficheMasque (tag_name,i, zone) {
	i--;
	var MyZone = document.getElementById(zone);		// La zone html où s'applique le masquage (en général un Div conteneur)
  	var MyList = MyZone.getElementsByTagName(tag_name);		// Les éléments à afficher ou masquer repérés par leur tag html
  	var MySize = MyList.length;		// Nb d'éléments retournés

	// Si l'élément est affiché, on le cache
   if (MyList[i].style.display == "block") {
	    	MyList[i].style.display = "none";
   }
   else {
   	// Sinon, on l'affiche tout en masquant les autres !
 		MyList[i].style.display = "block";
		for (n=0;n<MySize;n++) {
		    if (n != i) MyList[n].style.display = "none";
		}
   }

}