// JavaScript Document
// original: Kevin Yank of SitePoint, see http://www.sitepoint.com/article/standards-compliant-world/
// applied here: Kir Talmage of metasilkwebworks.com

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") == "newsletter") 
       // I am coding the rel content this way so I can have other rel types later, 
       // and use an OR statement at that time.
     anchor.target = "_blank";
 }
}
window.onload = externalLinks;
// If ever more window.onload commands, roll them into 1 script -- see for example
// www.netlobo.com/wom.html and such
// this may need doing with the navscript tweak for older IE, perhaps. Check the browser logs to see if needed.