function pnt(x, y){
	this.x=x;
	this.y=y;
	return this;
}

function getAbsolutePos(oElem){
	var _x=0;
	var _y=0;
	if(oElem){
		do{
			_x+=oElem.offsetLeft;
			_y+=oElem.offsetTop;
			//alert(oElem.tagName + ' -- '+ oElem.offsetLeft);
		}while( (oElem=oElem.offsetParent) )
	}
	
	return new pnt(_x, _y);
}
