function NavBar( tableCellRef, hoverFlag, hicol, locol ) 
 {
/*
   var str = tableCellRef.className;
   var rv = new RegExp ( "^(.*)hi$" );
   
   if ( rv . test ( str ) )
    {
      var m = str . match ( rv ); 
      str = m[1];
    }
*/   
  	if ( hoverFlag ) 
   	 {
       tableCellRef.style.backgroundColor = hicol;
     } 
    else 
     {
       tableCellRef.style.backgroundColor = locol;
   		}
 }

function NavBarClick( tableCellRef, url, hicol, locol ) 
 {
  	NavBar( tableCellRef, 0, hicol, locol );
	  window.location.href = url;
 }

