function doClear(theText) { if (theText.value == theText.defaultValue) { theText.value = "" } } function resize(header, footer, work_area, main, main_left, main_right, body_left, body_right) { var h_o = document.getElementById(header); var f_o = document.getElementById(footer); var w_o = document.getElementById(work_area); if(h_o && f_o && w_o) { //w_o.style.height = 'auto'; if (window.innerHeight) theHeight=window.innerHeight; else if (document.documentElement && document.documentElement.clientHeight) theHeight=document.documentElement.clientHeight; else if (document.body) theHeight=document.body.clientHeight; var need_height = theHeight - h_o.offsetHeight - f_o.offsetHeight - 20; if(w_o.offsetHeight