// JavaScript Document

function MyGetObj(theId) 
{
	if (document.getElementById) 
	{
		theObj = document.getElementById(theId); 
	} 
	else if (document.all) 
	{ 
		theObj = document.all[theId];
	}
	return theObj;
}

function MyOffsetLeft(o){
	var i = 0;
	while (o.offsetParent!=null) 
	{
		i += o.offsetLeft;
		o = o.offsetParent;
	}
	return i + o.offsetLeft;
}

function MyOffsetTop(o){
	var i = 0;
	while (o.offsetParent!=null) 
	{
		i += o.offsetTop;
		o = o.offsetParent;
	}
	return i + o.offsetTop;
}

