function showFootnote(obj, html) {
  var xcoord = obj.offsetLeft;
  if (xcoord + 302 >= document.body.clientWidth) { xcoord = document.body.clientWidth - 302; }
  document.getElementById("footnote").style.left = xcoord + 'px';
  document.getElementById("footnote").style.top = (obj.offsetTop + 25) + 'px';
  document.getElementById("footnote_content").innerHTML = html;
  document.getElementById("footnote").style.visibility = "visible";
}

function hideFootnote() {
  document.getElementById("footnote").style.visibility = "hidden";
}

function formatAutocompleteItem(row) {
	return row[0] + " (" + row[1] +")";
}
