// 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);
	if(xWin!=null || xWin != undefined){
		xWin.xParent = self;
		if(parseInt(navigator.appVersion) >= 4){xWin.window.focus();}
		return(true);
	} else {
		return(false)
	}
}

function xOpenIndex(xId,xLg) {
	xPopped = xPopup('/newsletter/index.asp?IDindiceHTML='+xId+'&l='+xLg,'780','500','xDGCIndex',null,null,'scrollbars=yes,toolbar=no,location=no,status=no,menubar=no,resizable=no,dependent=no');
}
// note: 
//	Si 'xLeft' et 'xTop' ont une valeur de null, le popup est automatiquement centré dans le browser. 
// exemple de call:
// xPopped = xPopup('xPage','320','200','xWinName',null,null,'scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=no,dependent=no');