
function popdown(link) {
   var dest=document.getElementById('floatBox');
   dest.style.display="none";
}

function popup(link, t, img) {
   var dest=document.getElementById('floatBox');
   if (dest==null || dest.style.display != "none") return;
   
   if (img != '') {
      t='<img src="'+img+'" style="float:right;margin:3px" height="60px">'+t;
   }

   if (t != '') {
      dest.innerHTML="<font face=Verdana size=2>"+t+"</font>";
      var o=link;
      var t=20;
      var l=0;
      while (o) {
          t+=o.offsetTop;
          l+=o.offsetLeft;
          o=o.offsetParent;
      }
      t+=link.offsetHeight;
      dest.style.top=t+"px";
      dest.style.left=l+"px";
      dest.style.display="block";
   }
}

function comments(name, entry) {
	window.open("/web/comments.php?n=" + name + "&e=" + entry, "comments", "menubar=0,resizable=0,scrollbars=1,width=450,height=400");
}
