/**
 * A place to put common code for the brt javascript
 *
 */

Ext.namespace( 'com.bankruptcytest' );

com.bankruptcytest = function() {

    Ext.QuickTips.init();

    var newsWindow = null;


    //
    // public functions
    //
    return {
        init: function() {
        },
        showNewsWindow: function( title, html ) {
            newsWindow = new Ext.Window( {
                width: 600,
                height: 200,
                title: title,
                shadow: true,
                modal: true,
                draggable: false,
                resizable: false,
                html: html
/*                buttonAlign: 'right',
                fbar: new Ext.Toolbar( {
                    items: [{
                        text: 'Close',
                        handler: function( button, event ) {
                            newsWindow.close();
                        }
                    }]
                }) */
            } );

            newsWindow.show();
        }
    }
}();

