//---------------------------------------------------------------------------------------------------------------------
function open_popup(x,y,page)
	{
	t=window.open(page,x+'x'+y,'top='+(((screen.height)/2)-(y/2))+',left='+(((screen.width)/2)-(x/2))+',toolbar=no,scrollbars=no,menu=no,width='+x+',height='+y);
	t.focus();
	}

//---------------------------------------------------------------------------------------------------------------------
function open_popup_scroll(x,y,page)
	{
	t=window.open(page,x+'x'+y,'top='+(((screen.height)/2)-(y/2))+',left='+(((screen.width)/2)-(x/2))+',toolbar=no,scrollbars=yes,menu=no,resizable=yes,width='+x+',height='+y);
	t.focus();
	}


//---------------------------------------------------------------------------------------------------------------------
// Fonction ouvrir le details (fieldset) => Ferme les autres calques pour ouvrir le nouveau
//---------------------------------------------------------------------------------------------------------------------
var old='';
function open_detail(id)
	{
	//if(old!='') document.getElementById(old).style.display = "none";	// Cache l'ancien
	//document.getElementById(id).style.display = "block";			// Montre le nouveau

	if(old!='') $(old).hide();
	$(id).show();

	old=id;
	}