function valideageAccueil()
{

	if (window.document.RECHERCHE.FILTREAGE.options[window.document.RECHERCHE.FILTREAGE.selectedIndex].value=='02')
		{
			window.document.location='/choisircommander/critere.asp?n0=521&filtreage=02&home=searchage'
		}
	if (window.document.RECHERCHE.FILTREAGE.options[window.document.RECHERCHE.FILTREAGE.selectedIndex].value=='25')
		{
			window.document.location='/choisircommander/critere.asp?n0=1000&filtreage=25&home=searchage'
		}
	if (window.document.RECHERCHE.FILTREAGE.options[window.document.RECHERCHE.FILTREAGE.selectedIndex].value=='58')
		{
			window.document.location='/choisircommander/critere.asp?n0=1001&filtreage=58&home=searchage'
		}
	if (window.document.RECHERCHE.FILTREAGE.options[window.document.RECHERCHE.FILTREAGE.selectedIndex].value=='8P')
		{
			window.document.location='/choisircommander/critere.asp?n0=1002&filtreage=8P&home=searchage'
		}
}

//***********************************************************************
// PAGE : fonctionEntete()
// DESCRIPTION : Entete de page  
//		- valideage
//		- Cstr
//		- Replace
//		- oWindow
// DATE : 16/05/06
// AUTEUR : VK
//***********************************************************************

//-----------------------------------------------------------------------
// NOM : valideage
// DESCRIPTION : Validation des critères d'âge sur la barre de navigation 
// ENTREE/SORTIE : 
// DATE : 16/05/06
// AUTEUR : VK
//-----------------------------------------------------------------------
function valideage()
{
	if (window.document.RECHERCHE.FILTREAGE.options[window.document.RECHERCHE.FILTREAGE.selectedIndex].value=='02')
		{
			window.document.location='/choisircommander/critere.asp?n0=521&filtreage=02'
		}
	if (window.document.RECHERCHE.FILTREAGE.options[window.document.RECHERCHE.FILTREAGE.selectedIndex].value=='25')
		{
			window.document.location='/choisircommander/critere.asp?n0=1000&filtreage=25'
		}
	if (window.document.RECHERCHE.FILTREAGE.options[window.document.RECHERCHE.FILTREAGE.selectedIndex].value=='58')
		{
			window.document.location='/choisircommander/critere.asp?n0=1001&filtreage=58'
		}
	if (window.document.RECHERCHE.FILTREAGE.options[window.document.RECHERCHE.FILTREAGE.selectedIndex].value=='8P')
		{
			window.document.location='/choisircommander/critere.asp?n0=1002&filtreage=8P'
		}
}

//-----------------------------------------------------------------------
// NOM : Cstr
// DESCRIPTION : Retourne une chaine de caractere vide  
// ENTREE/SORTIE : 
//			- value : valeur de type str
// DATE : 16/05/06
// AUTEUR : VK
//-----------------------------------------------------------------------
function CStr(value)
{
    return (value + "");
}

//-----------------------------------------------------------------------
// NOM : replace
// DESCRIPTION : fonction de remplacement (??)  
// ENTREE/SORTIE : 
//		- s : ??
//		- t : ??
//		- u : ??
// AUTEUR : VK
//-----------------------------------------------------------------------
function replace(s, t, u) {
	var i;
	var r;
	var stringvar;
	stringvar=CStr(s);
	i = stringvar.indexOf(t);
	r = "";
	if (i == -1) return s;
	r += stringvar.substring(0,i) + u;
	if ( i + t.length < stringvar.length)
	  r += replace(stringvar.substring(i + t.length,stringvar.length), t, u);
	return r;
}
 
//-----------------------------------------------------------------------
// NOM : oWindow
// DESCRIPTION : Ouverture de popUp  
// ENTREE/SORTIE : 
//		- URL : lien
//		- w : largeur
//		- h : hauteur
// AUTEUR : VK
//----------------------------------------------------------------------- 
function oWindow(url,w,h){
	var x = (screen.availWidth/2)-(w/2);
	var y = (screen.availHeight/2)-(h/2);
	var param = 'width='+w+',height='+h+',left='+x+',top='+y;
	window.open(url,'',param);
}

function closePopIn(DivName) 
{
document.getElementById(DivName).style.visibility='hidden';
}

//-----------------------------------------------------------------------
// NOM : fenetre
// DESCRIPTION : Ouverture de popUp Fiche produit 
// ENTREE/SORTIE : 
//		- URL : lien
//		- NOM : libelle
// AUTEUR : VK
//-----------------------------------------------------------------------
function fenetre(URL,Nom){
if (Nom=="recommander"){window.open(URL,Nom,"toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,width=550,height=400");}
else{if (Nom=='catalogue'){window.open(URL,Nom,"toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,width=650,height=250,top=200,left=130");
}else{window.open(URL,Nom,"toolbar=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=550,height=400");}}}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}

// Barre de nav 
function BarreNav1(valeur)
{
ValImg = valeur.id
affImg = document.getElementById(ValImg);
affImg.style.background="url(/graphismes/barreNav/" + ValImg + "2.gif)"
affImg.style.color="yellow"
}

// Barre de nav 
function BarreNav2(valeur)
{
ValImg = valeur.id
affImg = document.getElementById(ValImg);
affImg.style.background="url(/graphismes/barreNav/" + ValImg + "1.gif)"
}
