/*
 Cree & affiche une fenetre (si non ouverte)
 E: 	it : Nom de la page XSL
	receptor : champ de la fiche parent recevant la saisie.
 S: 0
*/ 

function ShowUniversalModalWindow(receptorName,it,t,h,w,r,top,left)
{	
	winTop = (top) ? top : (screen.availHeight - h)/2;
	winLeft = (left) ? left : (screen.availWidth - w)/2;
	
	if (r)
		/* reziable window */
		var newWind=window.open(it , null, "scrollbars,modal=1,width="+w+",height="+h+",ScreenY="+winTop+",ScreenX="+winLeft+",Resizable=Yes");
	else
		/* no reziable window */
		var newWind=window.open(it , null, "scrollbars,modal=1,width="+w+",height="+h+",ScreenY="+winTop+",ScreenX="+winLeft+",Center=Yes");
}
function ShowUniversalModalWindowPath(path,receptorName,it,t,h,w,r,i,top,left)
{	
	winTop = (top) ? top : (screen.availHeight - h)/2;
	winLeft = (left) ? left : (screen.availWidth - w)/2;

	if (r)
		/* reziable window */
		var newWind=window.open(path+it , null, "scrollbars,modal=1,width="+w+",height="+h+",ScreenY="+winTop+",ScreenX="+winLeft+",Resizable=Yes");
	else
		/* no reziable window */
		var newWind=window.open(path+it , null, "scrollbars,modal=1,width="+w+",height="+h+",ScreenY="+winTop+",ScreenX="+winLeft+",Center=Yes");
}
