// Color Array for left navigation menu, index 0,1 are for main nav  on/off, index 2,3 are sub nav
// be sure to set the following array in the header 
/// var colorNav = new Array('#FF9933','#CC3333','#FF6633','#FFCC33');
function NavBar_Hoover( tableCellRef, hoverFlag, idx ) {
	if ( hoverFlag ) {
		tableCellRef.style.backgroundColor = colorNav[idx];
		tableCellRef.style.cursor = 'hand';
	}else{
		tableCellRef.style.backgroundColor = colorNav[idx];
		tableCellRef.style.cursor = 'default';
	}
}

function OpenBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) 
{ 
  if(window.screen)if(isCenter)if(isCenter=="true"){
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;   
    features+=',left='+myLeft+',top='+myTop;
  }
   features+=(features!='')?',':'';
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}



function PrinterFriendly()
{

	var url = document.forms[0].action;
	if(url.substring(url.length-4) == 'aspx')
	{
		url += '?printerfriendly=1';
	}
	else
	{
		url += '&printerfriendly=1';
	}
	alert(url);
	OpenBrWindow(url,'PrinterFriendly','scrollbars=yes,resizable=yes', 500, 400, 'true');

}