function OpenWindow(link, title, width, height, scroll)
{
    var winHeight = height + 5;
    
    if (window.XMLHttpRequest) {
        if(document.all) //IE7
        {
            winHeight = height + 27;
        }
    }
    else // IE6, older browsers
    {
        winHeight = height + 27;
    }
    if ( scroll == undefined || scroll == 0){
      scroll = 'no';
    }
    else{
      scroll = 'yes';
    }
    var win = new Ext.Window({
        layout: 'fit',
        title: title,
        width: width + 16,
        height: winHeight,
        modal: true,
        closeAction: 'hide',
        resizable: false,
        plain: true,
        tools: [
        {
            id: 'textclose',
            scope: this,
            handler: function(event, toolEl, panel){
                panel.close();
            }
        }],
        items: new Ext.Panel({
            deferredRender: false,
            border: false,
            html: '<IFRAME src="' + link + '" scrolling="' + scroll + '" width="100%" height="100%" frameborder="0">Your browser doesn\'t support iframe.</IFRAME>'
        })
    });
    win.show();
}
