
/* ------------------------------------------------------------------- */
/*  PLUGIN JS DECLARATION                                              */
/*                                                                     */
/*  To Include this file in a JSP:                                     */
/*  - jcmsContext.addJSHeader("plugins/{Name}/js/plugin.js");         */
/*                                                                     */
/*  You can also use implements PortalPolicyFilter.setupHeaders()      */
/*                                                                     */
/* ------------------------------------------------------------------- */


	function popupCentre(page, nomPage) {
		popupCentre(page, nomPage, 190, 620);
	}

	function popupCentre(page, nomPage, width, height) {
		var nbTop=(screen.height-height)/2;
		var nbLeft=(screen.width-width)/2;
		// Version débuggage
		//var OpenWin = this.open(page, nomPage, "width=" + width + ", height=" + height + ", top=" + nbTop + ", left=" + nbLeft + ",toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes");
		// Version finale
		var OpenWin = this.open(page, nomPage, "width=" + width + ", height=" + height + ", top=" + nbTop + ", left=" + nbLeft + ",toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes");
		if (OpenWin) {
			OpenWin.focus();
		}
	}
	