function popUp (url, title) 
{
        mywindow = window.open(url, title, "width=640,height=480,left=20,top=20,resizable=yes");
        mywindow.focus();
}

function resizeInner (pictureWidth, pictureHeight)
{
        var win = window;
        if (typeof win.innerWidth != 'undefined')
        {
                my_inner_width = win.innerWidth;
                my_inner_height = win.innerHeight;
        }
        else
        {
                var obj = getBody(win);
                my_inner_width = parseInt(obj.clientWidth);
                my_inner_height = parseInt(obj.clientHeight);
        }
        completeWidth = pictureWidth - my_inner_width;
        completeHeight = pictureHeight - my_inner_height;
        window.resizeBy (completeWidth, completeHeight);
}
function getBody(w)
{
        return (w.document.compatMode && w.document.compatMode == "CSS1Compat") ? w.document.documentElement : w.document.body || null;
}
