/**
* author : ABN
* openCenteredWindow
* fonction qui ouvre une fenetre de width*heigth
* param : url
* returns : l'objet window
* see TreeView.jsp, url = arrivee.do
*/
function giveSizableCenteredWindow(url,width,height) {
	return openSizableCenteredWindow(url,width,height,"subWind");
}

/**
* author : GSP
* openCenteredWindow
* fonction qui ouvre une fenetre de width*heigth
* param : url
*/
function giveSizableCenteredWindow(url,width,height,nomFenetre) {
	width=parseInt(width,10);
	height=parseInt(height,10);
    var left = parseInt((screen.availWidth/2) - (width/2),10);
    var top = parseInt((screen.availHeight/2) - (height/2),10);
    var windowFeatures = "width=" + width + ",height=" + height + 
        ",status=no,resizable=yes,scrollbars=yes,left=" + left + ",top=" + top + 
        ",screenX=" + left + ",screenY=" + top;
    var winPopUp = window.open(url, nomFenetre, windowFeatures)
    winPopUp.focus();
    return winPopUp;
}

/**
* author : GSP
* openCenteredWindow
* fonction qui ouvre une fenetre de width*heigth
* param : url
*/
function giveSizableCenteredWindowNoResize(url,width,height,nomFenetre) {
	width=parseInt(width,10);
	height=parseInt(height,10);
    var left = parseInt((screen.availWidth/2) - (width/2),10);
    var top = parseInt((screen.availHeight/2) - (height/2),10);
    var windowFeatures = "width=" + width + ",height=" + height + 
        ",status,resizable=no,scrollbars=yes,left=" + left + ",top=" + top + 
        ",screenX=" + left + ",screenY=" + top;
    var winPopUp = window.open(url, nomFenetre, windowFeatures)
    winPopUp.focus();
    return winPopUp;
}

