function lt() { return (String.fromCharCode(60)) }
function gt() { return (String.fromCharCode(62)) }

function amail(account,domain) {

  document.write(lt() + "a href=\"mailto:" + account + "@" + domain + "\" title=\"Mail senden an: " + account + "@" + domain + "\"" + gt());
  document.write(lt() + "img src=\"img/maillink.gif\" alt=\"Mail senden an: " + account + "@" + domain + "\" /" + gt());
  document.write(account + "@" + domain);
  document.write(lt() + "\/a" + gt());
}

function replaceEntities(text) {

  text = text.replace(/&Auml;/g, String.fromCharCode(196));
  text = text.replace(/&Ouml;/g, String.fromCharCode(214));
  text = text.replace(/&Uuml;/g, String.fromCharCode(220));
  text = text.replace(/&szlig;/g, String.fromCharCode(223));
  text = text.replace(/&auml;/g, String.fromCharCode(228));
  text = text.replace(/&ouml;/g, String.fromCharCode(246));
  text = text.replace(/&uuml;/g, String.fromCharCode(252));

  return text;
}