// open external links in new windows using rel=”external” while staying XHTML strict
function externalLinks() {
	if (!document.getElementsByTagName) return;	// Netscape 4 and IE4 do not support DOM 1
	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;	// assigns the externalLinks function to the window's onload event handler.
	// This triggers the function when the document has finished loading.
	// Source : http://www.sitepoint.com/article/standards-compliant-world
