function setNewWindow() {
	// make sure the browser has what we need
	if (!document.getElementsByTagName) return false;
	// get the elements
	var links = document.getElementsByTagName("a");
	// make sure there are any
	if (links.length < 1) return false;
	for (a=0; a < links.length; a++) {
		var link = links[a];
		if ((link.getAttribute("href")) && (link.getAttribute("rel") == "external")) {
			link.onclick = function() {
				var location = this.getAttribute("href");
				window.open(location, "newWindow");				
				return false;
			}
		}
	}
}

addLoadEvent(setNewWindow);

