
function getXPosition(obj)
	{
	var nCurLeft = 0;

	if(obj.offsetParent)
		obj = obj.offsetParent;
	else if(obj.x)
		nCurLeft += obj.x;

	return nCurLeft;
	}


function getYPosition(obj)
	{
	var nCurTop = 0;

	if(obj.offsetParent)
		obj = obj.offsetParent;
	else if(obj.y)
		nCurTop += obj.y;

	return nCurTop;
	}


function getObject(strLayerName)
	{
	if(document.getElementById)
		{
		this.obj = document.getElementById(strLayerName);
		this.style = document.getElementById(strLayerName).style;
		}
	else if(document.all)
		{
		this.obj = document.all[strLayerName];
		this.style = document.all[strLayerName].style;
		}
	}


