window.onload = function() {
var Anchor = document.getElementsByTagName('a');
for (var i=0, len=Anchor.length; i<len; i++){
var a = Anchor[i];
var href = a.href;
var host = new RegExp(location.hostname);
if(href.match(/^http\:\/\/) && !href.match(host)){
a.onclick = function() {
window.open(this.getAttribute('href'),'_blank');
return false;
}
}
}
};