function goOver(tdID) {
// Parameters: tdID: "ID" attribute of table cell to change bg color on
// Purpose: change the bg color of a table cell when its link is moused-over

  var td = document.getElementById(tdID);
  td.style.backgroundColor = "#f2f2f2";
}

function goOut(tdID) {
// Parameters: tdID: "ID" attribute of table cell to change bg color on
// Purpose: change the bg color of a table cell when its link is moused-out of

  var td = document.getElementById(tdID);
  td.style.backgroundColor = "#ffffff";
}

function writeEmailLinkFormatted(user,domain,text,inAnchorCode,openFormatTags,closeFormatTags) {
//Parameters: user: the e-mail user name
//            domain: the e-mail domain (including suffix)
//            text: the text of the link
//            inAnchorCode: style declarations applied to the <a> tag (must include the style="" attribute)
//            openFormatTags: opening format tags applied to the text of the link (placed after the <a> tag)
//            closeFormatTags: closing format tags applied to the text of the link (placed before the </a> tag)
//Returns: none
//Purpose: Write e-mail link to web page in such a way as to (hopefully) hide it from spammers' web spiders searching for e-mail addresses.
//         Write formatting info into the link.

  var address = user + "@" + domain; //The e-mail address

  //If no link text was specified, use the address as the link text
  if (text == "")
    text = address;

  //Print the link
  document.write("<a href='mailto:" + address + "' " + inAnchorCode + ">" + openFormatTags + text + closeFormatTags + "</a>");
}

function writeEmailLink(user,domain,text) {
//Parameters: user: the e-mail user name
//            domain: the e-mail domain (including suffix)
//            text: the text of the link
//Purpose: call writeEmailLink() without formatting info

  writeEmailLinkFormatted(user,domain,text,"","","","");
}
