window.onload = function()
{
   activateButtons();
   setHoverProperty();
}
function activateButtons()
{
   document.getElementById("btnClose").onclick = function(){return btnClose_onclick()};
}
function setHoverProperty()
{
   var button = document.getElementsByTagName("a");
   for(i=0; i<button.length; i++) {
      button[i].onmouseover = function(){this.className = "hover";}
      button[i].onmouseout = function(){this.className = "";}
   }
}
function btnClose_onclick()
{
    window.close();
}