// JavaScript Document


function addEvent(obj, eventName, func) {
	var save = obj[eventName];
	obj[eventName] = save ? function () { save(); func() } : func;
}


function externalLink(e) {
		window.open(e.getAttribute("href"), null, "");
		return false;
}

function setExternalLink()
{
	var className;
	var objs = document.getElementsByTagName('A');
	var href;
	
	for(var i=0; i<objs.length;i++) {
		className = objs.item(i).getAttribute("class") ? objs.item(i).getAttribute("class") : objs.item(i).className;
		if(className.toUpperCase() == "EXTERNAL") {

			objs.item(i).onclick = function () { return(externalLink(this)) };
		}
	}
}


addEvent(window, 'onload', function () {setExternalLink()});
