var user; var domain; var suffix;

function jemail(user, domain, suffix){
    document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + '">' + user + '@' + domain + '.' + suffix + '</a>');
}

function jemailnoshow(user, domain, suffix){
    document.write('<a  class="comment" href="' + 'mailto:' + user + '@' + domain + '.' + suffix + '">' + 'email' + '</a>');
}

function jcomments() {
    document.write('For comments or suggestions ');
    jemailnoshow("chengs", "phy.ucsf", "edu"); 
    document.write(' me.');
}

function jlinklist(dir) {
    dir= (typeof(dir)=="undefined") ? "" : dir + "/";
    document.write('<a href="'+dir+'computer.html">computer</a> | ');
    document.write('<a href="'+dir+'shopping.html">e-Business</a> | ');
    document.write('<a href="'+dir+'fun.html">fun stuff</a> | ');
    document.write('<a href="'+dir+'info.html">info</a> | ');
    document.write('<a href="'+dir+'local.html">local</a> | ');
    document.write('<a href="'+dir+'neuro.html">neuroscience</a> | ');
    document.write('<a href="'+dir+'org.html">organizations</a> | ');
    document.write('<a href="'+dir+'physics.html">physics</a> | ');
    document.write('<a href="'+dir+'scholar.html">science</a> | ');
    document.write('<a href="'+dir+'travel.html">travel</a> | ');
    document.write('<a href="'+dir+'misc.html">misc</a>');
}

function jmenuitem(no, dir, file, text) {
    document.write('<td class="nav'+no+'" align="center" valign="middle"> <a class="head" target="_top" href="'+dir+file+'">'+text+'</a> </td>');
}

function jmenu(dir) {
    dir= (typeof(dir)=="undefined") ? "" : dir + "/";
    jmenuitem('1', dir, 'index.html', 'Home');
    jmenuitem('2', dir, 'research.html', 'Research');
    jmenuitem('3', dir, 'software.html', 'Software');
    jmenuitem('4', dir, 'w/doku.php?id=fun:links:links', 'Links');
}

function jmenu2(dir) {
    document.write('<tr>');
    jmenu(dir);
    document.write('</tr>');
    document.write('<tr> <td colspan="4" class=current align="center" valign="middle"> &nbsp; </td> </tr>');
}
