// ENLACES EN VENTANAS NUEVAS CUMPLIENDO ESTÁNDARES (requiere JavaScript)
// Añade a los enlaces etiquetados como 'rel="external"' un 'target="_blank"'
// En XHTML estricto el atributo 'target' se considera obsoleto y será eliminado del estándar.
// Autor: Kevin Yank - http://www.sitepoint.com/article/standards-compliant-world

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;