 function findPosX(obj)
  {
    var curleft = 0;
    if(obj.offsetParent)
        while(1) 
        {
          curleft += obj.offsetLeft;
          if(!obj.offsetParent)
            break;
          obj = obj.offsetParent;
        }
    else if(obj.x)
        curleft += obj.x;
    return curleft;
  }

  function findPosY(obj)
  {
    var curtop = 0;
    if(obj.offsetParent)
        while(1)
        {
          curtop += obj.offsetTop;
          if(!obj.offsetParent)
            break;
          obj = obj.offsetParent;
        }
    else if(obj.y)
        curtop += obj.y;
    return curtop;
  }

	function showMessage(id, div) {
	
	var posLeft = findPosX(id);
	var posTop = findPosY(id);

	div_name = div;	// name of the div

	c = document.getElementById(div_name);

	if(c != null) {

	// Set the position of the div
		
			c.style.left = (posLeft+105)+'px';
			if (document.all) { 
				c.style.top = posTop +'px';
			} else {
				c.style.top = posTop+'px';
			}

	// Display div
		c.style.display='block';
	}	
}

function hideMessage(id, div) {
	c = document.getElementById(div_name);
	c.style.display='none';
}

function empty() { }
