var extGATrackLinks = document.getElementsByTagName("a");
var link_path = "";
for (var k = 0; k < extGATrackLinks.length; k++) {
		try {
			if (location.host != extGATrackLinks[k].hostname) {
				addExtGATrack(extGATrackLinks[k]);
			}
		}catch(err) { }
}

function addExtGATrack(thisObj) {

	if(typeof(thisObj.onclick)!="undefined" && ( thisObj.onclick!="" && thisObj.onclick!=null)){
		return false;
	} 

	if (thisObj.addEventListener) {
		
		thisObj.addEventListener('click', doExtGATrack, true);
	} else if (obj.attachEvent) {
		
		thisObj.attachEvent('on' + 'click', doExtGATrack);
	}
}
