<!--
function openWin ( nomsite, nomtitre, width, height, top, left ) 
{
windowVar1 = window.open( nomsite, nomtitre, "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=" + width + ",height=" + height +",top=" + top +",left=" + left);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  xWin = window.open(theURL,winName,features);
  if (xWin.oParent == null) xWin.oParent = self;
  if(xWin!=null || xWin != undefined){if(parseInt(navigator.appVersion) >= 4){xWin.window.focus();}}
}

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.xParent == null) xWin.xParent = self;
	if(xWin!=null || xWin != undefined){if(parseInt(navigator.appVersion) >= 4){xWin.window.focus();}}
}
function xChangeMain(xUrl,xClose) {
		self.location = xUrl;
		if(xClose!=null || xClose != undefined){xWin.close();}
	}
// 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>
//-->
