var req = null;

function showTooltip(date, count) {
  moveTooltip;
  var text = date;
  if (count == 1) text = text + ' | ' + count + ' comment';
  if (count > 1)  text = text + ' | ' + count + ' comments';
  document.getElementById('toolTip').firstChild.data = text;
  document.getElementById('toolTip').style.display = 'block';
}

document.onmousemove = moveTooltip;

function moveTooltip(e) {
  var x = (document.all) ? window.event.x + document.body.scrollLeft : e.pageX;
  var y = (document.all) ? window.event.y + document.body.scrollTop  : e.pageY;
  x = x - 10;
  y = y - 10;
  document.getElementById('toolTip').style.left = (x + 15) + 'px';
  document.getElementById('toolTip').style.top = (y + 15) + 'px';
}

function hideTooltip() {
  document.getElementById('toolTip').style.display = 'none';
}