<!--// Hide from older browsers
/******************************************************************************
 * writeEmail() will write the concatenation of username and "@d211.org".
 * username must be entered as a string.
 ******************************************************************************/
function writeEmail(username) {
  document.write(username.concat('@d211.org'))
}

/******************************************************************************
 * writeMailto() will write the mailto anchor and the e-mail address to which
 * it points.  username must be entered as a string.  If username is empty,
 * a non-breaking space will be written.
 ******************************************************************************/
function writeMailto(username) {
  if(username) {
    document.write('<a href="mailto:')
    writeEmail(username)
    document.write('">')
    writeEmail(username)
    document.write('</a>')
  }
  else {
    document.write('&nbsp;')
  }
}

/******************************************************************************
 * writemailto() will write the mailto anchor and link the string link to the
 * e-mail address with username as the part before the '@'.  username and link
 * must be entered as a string.  If username is empty, a non-breaking space
 * will be written.  If link is empty, the e-mail address will be in place of
 * link.
 ******************************************************************************/
function writeMailto(username, link) {
  if(username) {
    if(link) {
      document.write('<a href="mailto:')
      writeEmail(username)
      document.write('">')
      document.write(link)
      document.write('</a>')
    }
    else {
      document.write('<a href="mailto:')
      writeEmail(username)
      document.write('">')
      writeEmail(username)
      document.write('</a>')
    }
  }
  else {
    document.write('&nbsp;')
  }
}

/******************************************************************************
 * writemailto() will write the mailto anchor and link the string link to the
 * e-mail address with username as the part before the '@', entering the
 * string subject as the e-mail subject.  username and link must be entered as
 * a string.  If username is empty, a non-breaking space will be written.  If
 * link is empty, the e-mail address will be in place of link.  If subject is
 * empty, no subject will be added to the mailto anchor.
 ******************************************************************************/
function writeMailto(username, link, subject) {
  if(username) {
    if(link) {
      document.write('<a href="mailto:')
      writeEmail(username)
      if(subject) {
        document.write('?subject=' + subject)
      }
      document.write('">')
      document.write(link)
      document.write('</a>')
    }
    else {
      document.write('<a href="mailto:')
      writeEmail(username)
      if(subject) {
        document.write('?subject=' + subject)
      }
      document.write('">')
      writeEmail(username)
      document.write('</a>')
    }
  }
  else {
    document.write('&nbsp;')
  }
}
// End hide -->