function show( what , id )
{
	 start = document.getElementById( id );

	document.getElementById('res').style.left= ( findPosX( start ) + 175 ) + 'px';
	document.getElementById('res').style.top=( findPosY( start ) - 20 ) + 'px' ;

	document.getElementById('res').innerHTML= what;// + findPosX( start ) + ' ' + findPosY( start ) + ' ' + document.getElementById('res').style.left + ' ' + document.getElementById('res').style.top;
	document.getElementById('res').style.visibility='visible';
}

function hide()
{
	document.getElementById('res').style.visibility='hidden';
}


function findPosX(obj)
{
	var curleft = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
	}
	else if (obj.x)
		curleft += obj.x;
	return curleft;
}

function findPosY(obj)
{
	var curtop = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
	}
	else if (obj.y)
		curtop += obj.y;
	return curtop;
}
