/**
* author : Poich
* openCenteredWindow
* fonction qui ouvre une fenetre de width*heigth
* param : url
*/
function openSizableCenteredWindow(url,width,height,nomFenetre) {
	width=parseInt(width);
	height=parseInt(height);
    var left = parseInt((screen.availWidth/2) - (width/2));
    var top = parseInt((screen.availHeight/2) - (height/2));
    var windowFeatures = "width=" + width + ",height=" + height + 
        ",status,resizable=yes,left=" + left + ",top=" + top + 
        ",screenX=" + left + ",screenY=" + top;
    openSizableCenteredWindowWidthOption(url, nomFenetre, windowFeatures);
}

function openSizableCenteredWindowBiblio(url,width,height,nomFenetre) {
	width=parseInt(width);
	height=parseInt(height);
    var left = parseInt((screen.availWidth/2) - (width/2));
    var top = parseInt((screen.availHeight/2) - (height/2));
    var windowFeatures = "width=" + width + ",height=" + height + 
        ",status,resizable=no,left=" + left + ",top=" + top + 
        ",screenX=" + left + ",screenY=" + top+",scrollbars=yes";
    openSizableCenteredWindowWidthOption(url, nomFenetre, windowFeatures);
}

function openSizableCenteredWindowWidthOption(url,nomFenetre,windowFeatures) {
	window.open(url, nomFenetre, windowFeatures).focus();
}