/* 
For creating a 'web-standards' version of the _target tag.
We're using the appropriate 'rel' attribute with the name 'external'.
Any 'rel=external' attribute applied to the href will launch a new window with that link.
*/

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") == "external") 
				anchor.target = "_blank"; 
	} 
}

window.onload = externalLinks;