function force_resize( elm_id, width, height )
{
    $(document).ready(  doResize );
    $(window).resize( doResize );
    function doResize()
    {

        $('#'+elm_id).width( $(window).width() < width ? width+'px' : $(window).width()+'px' );
        $('#'+elm_id).height( $(window).height() < height ? height+'px' : $(window).height()+'px' );
        // stupid ie8 does understand the resize, but draws it right after a click... so a quick hide and show, forces a redraw.
        if ( $.browser.msie == 8 )
            $('#'+elm_id).css('display', 'none').css('display', 'block');
    }
}

