
function ToggleHideItems(obj1,obj2) {
	var elem1 = document.getElementById(obj1);	
	var elem2 = document.getElementById(obj2);	
	
	if ( elem1.style.display != 'none' ) {
		elem1.style.display = 'none';
		elem2.style.display = '';
	}
	else {
		elem1.style.display = '';
		elem2.style.display = 'none';		
	}
}

function showJargon(jargonString) {
	popUpWin("/page/jargon.cfm#"+jargonString, "console", 400, 300);
}


var newWindow = null;

function closeWin(){
	if (newWindow != null){
		if(!newWindow.closed) newWindow.close();
	}
}

function popUpWin(url, type, strWidth, strHeight){
	closeWin();
	if (type == "fullScreen"){
		strWidth = screen.availWidth - 10;
		strHeight = screen.availHeight - 160;
	}
	var tools="";
	if (type == "standard" || type == "fullScreen") tools = "resizable,toolbar=yes,location=yes,scrollbars=yes,menubar=yes,width="+strWidth+",height="+strHeight+",top=0,left=0";
	if (type == "console") tools = "toolbar=no,location=no,scrollbars=no,width="+strWidth+",height="+strHeight+",left=200,top=150";
	newWindow = window.open(url, 'newWin', tools);
	newWindow.focus();
}


window.onunload = closeWin;

