// protected mailaddresses procession external javascript function magicalconvert() { var protocol = "my-address:" for (var i = 0; i < document.links.length; i++) { var index = document.links[i].href.indexOf(protocol); if (index >= 0) { var href = unescape(document.links[i].href.substring(index)); var atposition = href.indexOf("[at]"); if (atposition >= 0) href = href.substring(0, atposition) + "@" + href.substring(atposition + 4, href.length); var dotposition = 0; while ((dotposition = href.indexOf("[dot]")) >= 0) href = href.substring(0, dotposition) + "." + href.substring(dotposition + 5, href.length); document.links[i].href = "mailto:" + href.substring(protocol.length, href.length); } } }