function recup(id) { return document.getElementById(id); }

function toggle(id, e)
{

  xxx = (navigator.appName.substring(0,3) == "Net") ? e.pageX : event.x+document.body.scrollLeft;
  yyy = (navigator.appName.substring(0,3) == "Net") ? e.pageY : event.y+document.body.scrollTop;

  if(typeof(recup(id).style.left)=='string')
  {
    recup(id).style.left = (xxx + 10 - (((window.scrollMaxX + document.documentElement.clientWidth) - 855) / 2)) + 'px';
    recup(id).style.top = (yyy + 10) + 'px';
  }
  else
  {
    recup(id).style.left = (xxx + 10 - (((window.scrollMaxX + document.documentElement.clientWidth) - 855) / 2)) ;
    recup(id).style.top = (yyy + 10) ;
  }

  recup(id).style.display = (recup(id).style.display=='none') ? 'block' : 'none';

}
