function getAbsX(elt) { 
	return parseInt(elt.x) ? elt.x:
	getAbsPos(elt,"Left"); 
};
	
function getAbsY(elt) { 
	return parseInt(elt.y) ? elt.y :
	getAbsPos(elt,"Top"); 
};

function getAbsPos(elt,which) {
 iPos = 0;
 
 while (elt != null) {
  iPos += elt["offset" + which];
  elt = elt.offsetParent;
 }
 return iPos;
};
