
// JavaScript Document
/**
 * External Links
 * This is used to open external links in a new window to replace target="_blank" for XHTML validation
 * Example: <a href="document.html" target="_blank">external link</a>
 * should now be <a href="document.html" rel="x">external link</a>
 */
	
	function xLinks() {
 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") == "x")
     anchor.target = "_blank";
 }
}
window.onload = xLinks;

