var g_poppy;

function poper(url, width, height, resize, noscrollbar)
{
	width = (width)?width:430;
	height = (height)?height:400;
	if((width==796 || width=="796") && !document.all)
		width=780;
	resize = (resize)?"yes":"no";
	//scrollbar = (scrollbar)?"yes":"no";
	if(noscrollbar == 'yes' || noscrollbar == 'no')
		scrollbar = noscrollbar; // Eh oui, ??a change compl??tement le sens. Compatibilit?? ascendante.
	else
		scrollbar = noscrollbar ? "no" : "yes";
	if(g_poppy && !g_poppy.closed)
		g_poppy.location.href = url;
	else
		g_poppy = window.open(url, 'CEA', 'height='+height+',width='+width+',menubar=no,location=no,resizable='+resize+',scrollbars='+scrollbar);
	if(window.focus)
		g_poppy.focus();
	return false;
}

function poperleger(url, l, h, avecredim, sansbarre)
{
	return poper('/layout/set/popup'+url.replace(/^http:\/\/[^/]*\//, '/').replace(/^.index.php/, '').replace(/^\/cea/, ''), l, h, avecredim, sansbarre);
}
