function checkElements() {
	var anchors = document.getElementsByTagName("a");
	
	for(var i = 0; i < anchors.length; i++) {
		if(anchors[i].getAttribute('rel') == 'new-tab') {
			anchors[i].onclick = function() { window.open(this); return false; }
		}
	}
}
