function Point(left, top) {
	this.left=left;
	this.top=top;
} 

function getPosition(obj) {
	var ret=new Point(0,0);
	var tmp=obj;
	while (tmp!=null && tmp.nodeName!="HTML"){
		ret.left=ret.left+tmp.offsetLeft;
		ret.top=ret.top+tmp.offsetTop;
		tmp=tmp.parentNode;
	}
	return ret;
}

