var isOn = false;
function tableToggle(divRef)
{
	if (document.all[divRef].style.display == 'none')
	{
		document.all[divRef].style.display='block';
	}
	else
	{
		document.all[divRef].style.display='none';
	}
}

	//Create arrays needed for the date/time
    var dayName = new Array ("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
    var monName = new Array ("Jan","Feb","March","April","May","June","July","Aug","Sept","Oct","Nov","Dec");
    var now = new Date();

	//Create year
	var time = new Date();
	var year = time.getFullYear();

////////////////////////////////////
//
// Custom popup windows
//
////////////////////////////////////

function newwindow(myurl, mywidth, myheight) {
  window.open(myurl,"","status=no,toolbar=no,location=no,titlebar=no,menubar=no,directories=no,scrollbars=yes,resizable=yes,width= "+ mywidth +",height="+myheight)
  }


////////////////////////////////////
//
// Floating Tooltips
//
////////////////////////////////////

// set up the event that will be called every time the mouse moves 
//document.onmousemove = captureMousePosition; 

// Horizontal position of the mouse on the screen 
xMousePos = 0; 

// Vertical position of the mouse on the screen 
yMousePos = 0; 

// this function is called every time the mouse moves 
// it will reposition the DIV whether it is hidden, or not 

function captureMousePosition(e)
{ 
  if (document.all)
  { 
    xMousePos = window.event.x+document.body.scrollLeft; 
    yMousePos = window.event.y+document.body.scrollTop; 
  }
  else if (document.getElementById)
  { 
    xMousePos = e.pageX; 
    yMousePos = e.pageY; 
  } 
  document.getElementById("toolDiv").style.left=(15+xMousePos)+"px"; 
  document.getElementById("toolDiv").style.top=(15+yMousePos)+"px"; 
} 

// called to make the DIV visible, and to insert a message. 

function toolIn(msg)
{ 
	document.getElementById("toolDiv").innerHTML=msg; 
	document.getElementById("toolDiv").style.display="block"; 
} 

// called to clear the DIV contents, and to hide it. 

function toolOut()
{ 
	document.getElementById("toolDiv").innerHTML="&nbsp;"; 
	document.getElementById("toolDiv").style.display="none"; 
} 