/*
 * $Id: global.js,v 1.37 2003/09/23 18:12:52 brian Exp $
 */

function showNote(name, content, width, height)
{    
    if(isNaN(width))
        width = 300;
    if(isNaN(height))
        height = 300;

    var w = window.open("", "_blank", "width="
        + width + ",height=" + height +
            ",toolbar=no,location=no,status=no,resizable=no,scrollbars=no");

    with(w.document)
    {    open();
        write("<html><head><title>");
        write(name)
        write("</title>")
        write("<style type=\"text/css\">p#note, a#close {  font-family: Arial, Helvetica, sans-serif; font-size: 16px; }</style>");
        write("</head><body><p id=\"note\">");
        write(content);
        write("<\p>");
        
        write("<div align=\"right\"><a href=\"javascript\" onclick=\"self.close()\" id=\"close\">Close</a></div></body></html>");
        close();
    }
}

function openWindow(URL, name, width, height, toolbar, location, directories, scrollbars, status, menubar, resizable) {
        newWindow = window.open(URL, name, 'toolbar=' + toolbar + ',location=' + location + ',directories=' + directories + ',scrollbars=' + scrollbars + ',status=' + status + ',menubar=' + menubar + ',resizable=' + resizable + ',width=' + width + ',height=' + height );
}
