function links(rel, target) {
	var anchors = document.getElementsByTagName('a');	
	for (var i = 0; i < anchors.length; i++) {
		var anchor = anchors[i];
		if (anchor.getAttribute('rel') == rel) {anchors[i].target = target;}
	}
}
window.onload = function () {
links('external', '_blank');
links('nofollow', '_blank');
};