function footnote(footid)
{
  //check whether or not there is such an element
  if(!document.getElementById("f" + footid))
  {
    //if not, send an error and get out of here by returning false
    alert("There's no such footnote; the webmaster is an idiot or something went wrong. Sorry!");
    return Boolean(false);
  }
  //initialise i as -1 (i++ = 0 then, you see)
  i = -1;
  //count from 0 to 99 - up this if you want more footnotes, you footnote fiend!
  while (i++ < 100)
  {
    //if there is such an element as fi
    if(document.getElementById("f" + i))
    {
      //make it disappear
      document.getElementById("f" + i).style.display = "none";
    }
  }
  //then, finally, make the one we want to display appear
  document.getElementById("f" + footid).style.display = "block";
  //good work, team
  return Boolean(true);
}