function jsopen(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=750,height=600');");
}

function checkregion(region){
	var vCurValue = document.getElementById(region);
	if (vCurValue.id !=""){
		document.getElementById(region).checked=!vCurValue.checked;
	}
}

function search_openclose(id,opencloseimg){
	if (document.getElementById){
		obj = document.getElementById(id);
		oci = document.getElementById(opencloseimg);
		if (obj.style.display == "none"){
			obj.style.display = "";
			oci.src = "http://www.beltonduffey.com/li/search-open.png";
		} else {
			obj.style.display = "none";
			oci.src = "http://www.beltonduffey.com/li/search-closed.png";
		}
	}	
}

function bookmarksite(title, url){
	if (document.all)
		window.external.AddFavorite(url, title);
	else if (window.sidebar)
		window.sidebar.addPanel(title, url, "")
}

function external_blank() {
	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") == "external"){
			anchor.target = "_blank";
		}
	}
}
window.onload = external_blank;