// JavaScript Document
function getObjLeft(obj)
{
	var curleft = 0;
	
	if (obj.offsetParent) 
	{
		while (obj.offsetParent)
		{
			curleft += obj.offsetLeft;
			obj = obj.offsetParent;
		};
	}
	
	return curleft;
}


function getObjTop(obj)
{
	var curtop = 0;
	
	if (obj.offsetParent) 
	{
		while (obj.offsetParent)
		{
			curtop += obj.offsetTop;
			obj = obj.offsetParent;
		};
	}
	
	return curtop;
}		



