//New and Improved for 2001
//nav flag allows you to throw in a toolbar and or menubar!

function showNewWindow(url, width, height, nav , resize)
{
	var	rand = Math.round(89999*Math.random() + 10000);

	switch (nav) {
		case 1:
        		popup = window.open(url, rand, "width=" + width + ",height=" + height + ",scrollbars,toolbar,menubar,resizable=" + resize);
			break;
		default:
			popup = window.open(url, rand, "width=" + width + ",height=" + height + ",scrollbars,resizable=" + resize);
	}
}

function change(id)
{
	ID = document.getElementById(id);
  if(ID.style.display == "") {
  	ID.style.display = "none";
  } else {
    ID.style.display = "";
	}
}

//--------------------------------------------------------
function switch_tab_newslist(intThisId, strBase, intTotalIds)
//--------------------------------------------------------
{
	document.getElementById(strBase+intThisId).style.display='block';
	document.getElementById(strBase+'Tab'+intThisId).style.backgroundColor='#FFFFFF';
	document.getElementById(strBase+'Tab'+intThisId).style.zIndex='60';
	for (var i=0; i<=intTotalIds; ++i)
	{
		if (i != intThisId)
		{
			document.getElementById(strBase+i).style.display='none';
			document.getElementById(strBase+'Tab'+i).style.background='#EBF0FA';
			document.getElementById(strBase+'Tab'+i).style.zIndex='40';
		} //End If
	} //End For
} //End Function

function print_page() {
	if (window.print) {
    	   window.print() ;  
	} else {
    	   var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
	   document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
    	   WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box    WebBrowser1.outerHTML = "";  
	}
}