// var addMediaServerDialog = null; function addMediaServer(){ if( addMediaServerDialog == null ){ addMediaServerDialog = new Ext.Window({ modal: true, title: 'GetLabel("_ADD_MEDIA_SERVER_");?>', width: 800, height: 600, layout: 'fit', closeAction: 'hide', items:{ xtype: 'panel', html: 'KOKO' },bbar: [{ text: 'GetLabel("_CANCEL_");?>', handler: function(){ addMediaServerDialog.hide(); } },{ id: 'con_to_src', text: 'GetLabel("_ADD_");?>', disabled: false, handler: connectToSeleced }] }); }; addMediaServerDialog.show(); };