document.getElementById("backdiv").style.width = "100%";
document.getElementById("backdiv").style.height = document.getElementById("footerdiv").offsetParent.offsetTop+"px";
footerdiv : is placed inside a table column.....so the offset parent will be the approx total height of the page............
backdiv : which will cover all the page contents to put something over it ...e.g
a feedback form.....update request occuring.......