// JScript File

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;
}
function scrollToPoint(id,selectedDiv)
{ 
var position 
var div
div = document.getElementById(selectedDiv);

position = (parseInt(div.className) *15);
document.getElementById(id).scrollTop=position;
} 


function getElementHeight(Elem) {
		return Elem.offsetHeight;
}

function getElementWidth(Elem) {
		return  Elem.offsetWidth;
}

