// PH composant modale win : gestion de window modale avec prototype window 
var modale_win;
var ComposantModale = Class.create();
ComposantModale.prototype = {
    initialize: function() { },
    open_window: function(name,url) { 
		modale_win = new Window( {
			minWidth: 945,
			minHeight: 500,
			width: 945,
			height: 500,
			className: "bluelighting",
			title: name,
			zIndex: 100,
			resizable: true,
			maximizable: true,
			showEffect: Effect.BlindDown,
			hideEffect: Effect.SwitchOff,
			draggable: true,
			wiredDrag: true,
			destroyOnClose: true, 
			url: url
		} );
		modale_win.showCenter(true);
		modale_win.show();
	},
    close_window: function() { parent.modale_win.close(modale_win); }
}

