function showhide(showthis,hidethis)
{
	if (document.getElementById) {
		var show = document.getElementById(showthis);
		show.style.display = 'inline';
		if (hide != show) {
			var hide = document.getElementById(hidethis);
			hide.style.display = 'none';
		}
	}
}

function externalLinks() {
	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i < anchors.length; i++) {
		var anchor = anchors[i];
		if (anchor.getAttribute("href") &&
			anchor.getAttribute("rel") == "crm") // Add a check here for each "rel" value that you want to open a new window
			anchor.target = "_blank";
	}
}
window.onload = externalLinks;
