if (document.getElementsByTagName) {	
  var anchors = document.getElementsByTagName('a');
  for (i=0; i<anchors.length; i++) {
    if (anchors[i].getAttribute('rel') == 'external' && anchors[i].getAttribute('href') && anchors[i].getAttribute('href').indexOf('mailto:')<0)
			anchors[i].onclick = function () {window.open(this.getAttribute('href')); return false;}
  }
}