function getPopupObject(myId)
{
   if (document.getElementById(myId))
   {
     return document.getElementById(myId);
   }
   else
   {
     return window.document[myId]; 
	}     
}

function showPopup(myEvent, id, text)
{
	var popup=getPopupObject(id);
	if (popup)
	{	
		var x=myEvent.clientX;
		var y=myEvent.clientY;
		// Internet Explorer
		if (window.event)
		{
			x=parseInt(window.event.x);
			y=parseInt(window.event.y);
		}
		var popupText=getPopupObject(id+"Text");
		popupText.firstChild.nodeValue=text;

		popup.style.left=x+25;
		popup.style.top=y+380;
	
		popup.style.visibility='visible';
	}
}

function hidePopup(id)
{
	var popup=getPopupObject(id);
	popup.style.visibility='hidden';
	
}

function doNothing()
{

}