
function setLinkAttributes() {
	if (!document.getElementsByTagName) return null;
	
	var anchors = document.getElementsByTagName("a");
	
	for (var i=0;i<anchors.length;i++) {
		var a = anchors[i];
		
		if (a.getAttribute("href"))
			a.setAttribute("onfocus", "this.blur();");
		
		if (a.getAttribute("href") && a.getAttribute("rel") == "external")
			a.setAttribute("target", "blank");
	}
}


