window.onload = function() { externalLinks(); } function protectMails() { document.body.innerHTML = document.body.innerHTML.replace('(put the at sign here)','@'); if (!document.getElementsByTagName) return; var anchors = document.getElementsByTagName("a"); for (var i=0; i