function adjust(obj){
var div = document.getElementById("pad");
var txt = document.getElementById("txt");
var w = document.body.clientWidth;
var h = document.body.clientHeight;
div.style.width = w/3;
div.style.height = h/3;
txt.style.width = w/6;
txt.style.height = h/6;
}
window.onload=function(){
window.onresize = adjust;
adjust();
}