function create_window (url, width, height) {
    var window_name = 'grfr';
    switch (arguments.length)
    {
        case 3:
            break;
        case 4:
            window_name = arguments[3];
            break;
        default:
            throw new Error('Invalid number of arguments passed to create_window()');
    }
    // Add some pixels to the width and height:
    width = width + 40;
    height = height + 50;
    var specs = "location=yes, scrollbars=yes, menubar=yes, toolbar=yes, resizable=yes, left=0, top=0, width=" + width + ", height=" + height;
    var popup = window.open(url, window_name, specs);
    popup.focus();
}

function scroll2topWindow()
{
    window.scrollTo(0,0);
}
