$("a").each(function(index){
	var href = this.href;
	var domain = document.domain;
	if(href.indexOf(domain) == -1){
		this.target = "_blank";
	}
});
