Window size arses

Browsers insist on rendering content at different sizes, popup windows are either inadequate or too large. The simple answer is to make window.open wrapper functions that adjust window sizes based on browser detection. They only need a few pixels:

function nicewindow(url, x, y) {
    var scroll = "auto";
    var n = navigator.appName.toLowerCase();
    if (n.indexOf("internet explorer") != -1 || n.indexOf("msie") != -1) scroll = "yes";
    if (document.layers) { x += 161; }
    else if (n.indexOf("netscape") != -1 && parseInt(navigator.appVersion) > 4)
        { x -= 100; y -= 70; }
    else if (n.indexOf("mac") != -1) { x -= 100; y -= 40; }
    return window.open(url, "sometitle",
        "width="+x+",height="+y+",scrollbars="+scroll+",menubar=no,toolbar=no");
}