function getDim(el)
{
   for (var lx=0,ly=0;el!=null;lx += el.offsetLeft,ly+=el.offsetTop,el=el.offsetParent);

   return {x:lx,y:ly}
}

function reDo()
{ 
   window.location.reload();
} 

window.onresize = function() {setTimeout("location.reload()",0)};