// XHTML Strict External Links Script, from:
// http://comox.textdrive.com/pipermail/wp-hackers/2005-October/002937.html
// http://www.sitepoint.com/article/standards-compliant-world/3

function externalLinks() {
    if(!document.getElementsByTagName) return;
    var anchors = document.getElementsByTagName("a");
    for(var i=0; i<anchors.length; i++) {
        var anchor = anchors[i];
        if(anchor.getAttribute("href") && anchor.getAttribute("rel") == "ext") {
            //anchor.onclick = function(){window.open(anchor.getAttribute("href"));return false;};
						anchor.target = "_blank";
        }
    }
}