function showDisclaimer() {
	alert("You are now leaving NAPUS Federal Credit Union's web site.  We only link to sites that we feel will be valuable to our members, but we have no control over these external sites.  If you find that there is anything we should be aware of on the site you are visiting, please let us know.");
}

function checkExternalLink(link) {

	internal = ['http://0.0.0.0', 'http://napus.i', 'http://192.168', '#', '/', 'http://localhost', 'http://192.168.0.2', 'https://hb.napusfcu.org', 'http://napusfcu.org', 'http://www.napusfcu.org', 'http://napus.trabian.com', 'http://feeds.feedburner.com/napusfcu', 'https://www2.netteller.com'];
	for (var i = 0; i < internal.length; i++) {
		if (link.indexOf(internal[i]) == 0) {
			return false;
		}
	}

	return true;

}

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" || checkExternalLink(anchor.getAttribute("href"))))
       {
           anchor.target = "_blank";
           anchor.onclick = showDisclaimer;
       }
   }
}

addEvent(window, 'load', externalLinks, false);
