// V 2.3 | 09.12.2004

var xWin = null;
function xPopup(xPage,xWidth,xHeight,xWinName,xLeft,xTop,xFeatures){
	var xWinLeft;
	var xWinTop;
	(xLeft!=null)?xWinLeft=xLeft : xWinLeft=(screen.width-xWidth)/2;
	(xTop!=null)?xWinTop=xTop : xWinTop=(screen.height-xHeight)/2;
	xSettings='width='+xWidth+',height='+xHeight+',top='+xWinTop+',left='+xWinLeft+','+xFeatures+'';
	xWin=window.open(xPage,xWinName,xSettings);
}

// note: 
//	Si 'xLeft' et 'xTop' ont une valeur de null, le popup est automatiquement centré dans le browser. 
// exemple de lien:
// <a href="javascript:xPopup('xPage','300','200','xWinName',100,100,'scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=no,dependent=no')">Popup code</a>
