// A function to add an action to the load event
function addLoadEvent(func)
{
    // gecko, safari, konqueror and standard
    if(typeof window.addEventListener != 'undefined') {
	window.addEventListener('load', func, false);
    }
    // opera 7
    else if(typeof document.addEventListener != 'undefined') {
	document.addEventListener('load', func, false);
    }
    // win/ie
    else if(typeof window.attachEvent != 'undefined') {
	window.attachEvent('onload', func);
    }
}



addLoadEvent(function() {
    // getElementsByClass
    var elements = document.getElementsByTagName('a');
    for (var i=0;i<elements.length;i++) {
	if (elements[i].className.match(/extern-link/)) {
	    elements[i].onclick = function() {window.open(this.href,'_blank');return false;};
	}
    }
});

