function pubsByYear(year) {
  if (year) {
    document.location="/publications/search/by_year.cgi?year="+year;
  }
}

function displayRecord(pubnumber) {
  newWindow=window.open('/publications/search/?display_record='+pubnumber, 'pubrecord', 'height=400,width=500,toolbar=no,scrollbars=yes');
}

function writeEmail(host,username,text,extra) {
  document.write("<a href=\"mailto:"+username+"@"+host+"\" "+extra+">");
  if (text) {
    document.write(text);
  } else {
    document.write(username+"@"+host);
  }
  document.write("</a>");
}
