// Emulates target="_blank" for W3C XHTML 1.0 Strict compliance
function openExternal() {
	// Return if DOM selector doesn't exist
	if(!document.getElementsByTagName) return;
	
	// Get all anchors from page
	var anchors = document.getElementsByTagName('A');
	
	// Loop through anchors looking for href and rel="_blank"
	for(var i = 0; i < anchors.length; i++) {
		// Holds current anchor
		var a = anchors[i];
		
		if(a.getAttribute('href') && a.getAttribute('rel') == "_blank") {
			// Current anchor is link and has rel, so make its target _blank
			a.target = "_blank";
		}
	}
}

window.onload = function() {
	openExternal();
}