function pop(path, w, h, popName, scrollbars, resizable, menubar, toolbar) {
    if (!scrollbars) scrollbars=0;
    if (!resizable) resizable=0;
    if (!menubar) menubar=0;
    if (!toolbar) toolbar=0;

    p = window.open(path,popName,'width=' + w + ',height=' + h + ',location=0,directories=0,status=0,menubar=' + menubar + ',toolbar=' + toolbar + ',scrollbars=' + scrollbars + ',resizable=' + resizable);
    p.focus();
}

function popGlossary(letter, id, root) {
    if (!root) root = "";
    anchor = "";
    if (id) {
        anchor = '#term' + id;
    }
    pop(root + 'index.asp?con=3&cmd=1&letter=' + letter + anchor, 460, 520, 'glossary', 0, 1, 0, 0);
}

function popBio(id, root) {
    if (!root) root = "";
    pop(root + 'index.asp?con=10&cmd=1&uid=' + id, 460, 520, 'biography', 0, 1, 0, 0);
}

function popExhibitBio(id, root) {
    if (!root) root = "";
    pop(root + 'index.asp?con=10&cmd=1&eid=' + id, 460, 520, 'biography', 0, 1, 0, 0);
}


function popCredits( root ) {
    if (!root) root = "";
    pop(root + 'credits.asp', 521, 460, 'credits', 1, 0, 0, 0);
}
function popAbout( root ) {
    if (!root) root = "";
    pop(root + 'about.asp', 521, 460, 'about', 1, 0, 0, 0);
}
function popHelp( root ) {
    if (!root) root = "";
    pop(root + 'help.asp', 632, 460, 'help', 0, 0, 0, 0);
}


function popAsk(url, root) {
    if (!root) root = "";
    url = root + url;
    pop(url, 460, 400, 'ask', 0, 1, 0, 0);
}

function popComments(url, root) {
    if (!root) root = "";
    url = root + url;
    pop(url, 460, 520, 'comments', 0, 1, 0, 0);
}

function popTellAFriend(root) {
    if (!root) root = "";
    pop(root + 'index.asp?con=14&cmd=1', 460, 460, 'tellAFriend', 0, 1, 0, 0);
}

