//=========================================================
// Fonction gnriques :::::
// Frdric.caron@nurun.com :::::
// copyright nurun inc 2002 ::
//=========================================================

function desLiens(){
	formulaire =  document._ServerForm.liensBrands
	hurle=formulaire.options[formulaire.selectedIndex].value
	if(/*(hurle.indexOf("armani")>=0)||*/(hurle.indexOf("labogarnier")>=0)){
		parent.location = hurle	
	}
	else{
		window.open(hurle,"marques","width=800,height=600,top=0,left=0,status=1,location=1,directories=1,menubar=1,toolbar=1,scrollbars=1")
	}
}

function desLiensEncore(){
	formulaire =  document._ServerForm.shopeuonline
	hurle=formulaire.options[formulaire.selectedIndex].value
	if((hurle.indexOf("armani")>=0)||(hurle.indexOf("garnier")>=0)||(hurle.indexOf("rocheposay")>=0)){
		parent.location = hurle	
	}
	else{
		window.open(hurle,"marques","width=800,height=600,top=0,left=0,status=1,location=1,directories=1,menubar=1,toolbar=1,scrollbars=1")
	}
}

function apply()
	{
	top.location = "framesetredirect.aspx?url_dest=http://193.149.122.188/or/cand/candportal.aspx?lid=2";
	}

// Modify the Top Navigation Frame to show the appropriate Header.
function header(sect,txt,bg)
	{
	if (top.navloaded) 
		{	
		setTimeout("top.frames[1].changeHeader('" + sect + "','" + txt + "','" + bg + "')",500);
		}
	else 
		{
		setTimeout("top.frames[1].changeHeader('" + sect + "','" + txt + "','" + bg + "')",5000);
		}
	}
	
// Generic Roll Over
function roll(id,state)
	{
	state = (state) ? "_on" : "_off";
	eval("document." + id + ".src = \"img/" + id + state + ".gif\"");
	}

// LeftNav Roll Over
function rollLeftN(id,state,init,subs)
	{
	if ( init == 'on' || init == 'top') return false
	state = (state) ? "_on" : "_off";
	if (document.layers){ eval("document.layers.leftnav.document['roll_" + id + subs + "'].src = \"img/nav_1" + subs + state + ".gif\""); }
	else { eval("document['roll_" + id + subs + "'].src = \"img/nav_1" + subs + state + ".gif\""); }
	}
// Fix for Netscape (doesnt work for 4.08)
function Nfix()
	{
	bVer='';
	bName = navigator.appName.toLowerCase();
    bVer=navigator.appVersion.substring(0,3);
    if(bName == "netscape" && bVer>= '4.08')
		{
		document.location = document.location
		}
	}	
// Select Ressources humaines
function setPage (newAddress)
	{
	if(newAddress!="")
		{window.location.href=newAddress;
		}
	}

// Select Home Page
function setPageHome (newAddress)
	{
	/*if(newAddress!="")
		{window.top.location.href=newAddress;
		}*/
	if(newAddress.indexOf("kiehls")>=0)
	{
	window.open(newAddress,"kiehls","width=800,height=600,top=0,left=0,status=1,location=1,directories=1,menubar=1,toolbar=1,scrollbars=1,resizable=1");
	}
	else top.location.href=newAddress;
	}
	
// Patch Sunprotection Section Career	
function checke(){return false}

// Rollover Section Career
function ovn(id)
    {
    eval("document.images.bt_" + id  + ".src = \"img/bt_" + id + "_on.gif\"");
    }

function otn(id)
    {
    eval("document.images.bt_" + id + ".src = \"img/bt_" + id + ".gif\"");
    }
	
// PopUp Section Career	
function popUp(url)
    {
    fenetre=window.open(url,"int","resizable=no,width=390,height=487,scrollbars=yes");
    }		

function Sezame(page,larg,haut,scraul){
	var posXpop = (screen.availWidth-larg)/2
	var posYpop = (screen.availHeight-haut)/2
	param = "width="+larg+",height="+haut+",left="+posXpop+",top="+posYpop+",scrollbars="+scraul
	popup = window.open(page,"pop",param)
}