rem: var y = 0 while(obj != null) { if(obj.style.top == '') y += obj[dimention] else if(obj.style[coord]) y += obj.style[coord].replace('px','')*1 obj = obj.offsetParent } return y 
add: var res = 0 while(obj != null) { var suffix = dim.charAt(0).toUpperCase()+dim.substr(1) if(obj.style[dim] == '') res += obj['offset'+suffix] else if(obj.style[dim]) res += parseInt(obj.style[dim]) obj = obj.offsetParent } return res 
context: get_real_offset = function(obj, dimention, coord){  var y = 0  while(obj != null)  {    if(obj.style.top == '') y += obj[dimention]    else if(obj.style[coord]) y += obj.style[coord].replace('px','')*1    obj = obj.offsetParent  }  return y}
meta: 8196	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8196/94e3503191e640c57844c55e681bb9caba49f5e3/htc.limb_cp.js/buggy/php4/branches/2.3RC2-new-gui/shared/js/htc.limb_cp.js