wmtt = null;

document.onmousemove = updateWMTT;

function updateWMTT(e) {
   x = (document.all) ? window.event.x + document.body.scrollLeft : e.pageX;
   y = (document.all) ? window.event.y + document.body.scrollTop  : e.pageY;
   if (wmtt != null) {
      wmtt.style.left = (x + 15) + "px";
      wmtt.style.top    = (y + 15) + "px";
   }
}

function showWMTT(id) {
   wmtt = document.getElementById(id);
   wmtt.style.display = "block"
}

function hideWMTT() {
   wmtt.style.display = "none";
}

openNav = null;
function toggleNav(unav){
	if (openNav != null){
		document.getElementById(openNav).style.display = 'none';
		document.getElementById(unav).style.display = 'block';		
	}else
	{
		document.getElementById(unav).style.display = 'block';
	}
	openNav = unav;
}

var win = null;
    function winOpener(WinUrl, WinName, WinWidth, WinHeight){
      Left = (screen.width) ? (screen.width-WinWidth)/2 : 0;
      Top = (screen.height) ? (screen.height-WinHeight)/2 : 0;
      settings = 'height='+WinHeight+', width='+WinWidth+', top='+Top+', left='+Left+', scrollbars=auto, resizable=no'
      win = window.open(WinUrl, WinName, settings);
      win.focus();
    }