//ouvre une fenetre
function OpenWindow(page,largeur,hauteur,scrollbars){
	if(scrollbars == undefined){
		scrollbars="yes";
	}
	var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;    // true if we're on ie
	var isWin = (navigator.appVersion.indexOf("Windows") != -1) ? true : false; // true if we're on windows
	
	// This is a js1.1 code block, so make note that js1.1 is supported.
	jsVersion = 1.1;
	
	// Write vbscript detection on ie win. IE on Windows doesn't support regular
	// JavaScript plugins array detection.
	xdecal=((screen.availWidth-largeur)/2);
	ydecal=((screen.availHeight-hauteur)/2);
	  if(isIE){
	    //mac:ie
		params = 'width='+(largeur)+',height='+(hauteur)+',alwaysraised=1,scrollbars='+scrollbars+',status=no,toolbar=no,top='+ydecal+',left='+xdecal;
	  }else{
	    //mac:safari mozilla, etc.
	    params = 'width='+(largeur)+',height='+(hauteur)+',alwaysraised=1,scrollbars='+scrollbars+',status=no,toolbar=no,screenX='+xdecal+',screenY='+ydecal;
	  }
	window.open(page,'esf',params);
};