$(function () {
    $('a[href^="mailto:"]').each(function (n) {
        var href = $(this).attr('href').replace(/\(AT\)/, '@').replace(/\(PUNKT\)/, '.');
        var text = $(this).text().replace(/\(AT\)/, '@').replace(/\(PUNKT\)/, '.');
        $(this).attr('href', href).text(text);
    });
});
