function openInNewWindow() {
	// Change "_blank" to something like "newWindow" to load all links in the same new window
	var newWindow = window.open(this.getAttribute('href'), '_blank');
	newWindow.focus();
	return false;
}
function externalLinks() {
	// Check that the browser is DOM compliant
	if (document.getElementById && document.createElement && document.appendChild) {
		// Find all links
		var link;
		var hre;
		var links = document.getElementsByTagName('a');
		for (var i = 0; i < links.length; i++) {
			link = links[i];
			url = link.getAttribute('href');
			url = url.toLowerCase();
			if ( url && (link.getAttribute("rel") == "external" 
			|| (url.indexOf("http://") === 0  && url.indexOf("govexec.com") === -1 && url.indexOf("governmentexecutive.com") === -1)
			)) {
				link.onclick = openInNewWindow;
			}
		}
	}
}
window.onload = externalLinks;