/*
NOTICE:
This source code has been created by Westring Technologies
All Rights Reserved.

Created on Jan 9, 2006
Created by Ryan Bowman
*/
/**
 * The following function provides an HTML 4.1 Strict way to have popups & links
 * to external sites open in new windows - provided they contain rel="external"
 * as an attribute.
 *
 * The following script comes from an article found at
 * 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;

