var mp3Window;

function openMP3Window( resource, text ){

    if( ! mp3Window ){

        mp3Window = new Ext.Window({
            title: text,
            width: 300,
            height: 128,
            closable: true,
            buttonAlign: 'center',
            resizable: false,

            items:[{
                border:false,
                html:'<center><EMBED SRC="'+ resource +'" HEIGHT=55 WIDTH=244></center>'
            }],

            buttons:[{
                minWidth:70,
                text:'Cerrar',
                handler: function(){
                    mp3Window.close();
                    mp3Window = null;
                }
            }]
        });

    }

    mp3Window.show(this);

}