document.write('
'); function sc1(){ document.getElementById("Div1").style.top=document.body.scrollTop+(document.body.clientHeight-document.getElementById("Div1").offsetHeight)/2 document.getElementById("Div1").style.left=document.body.scrollLeft+(document.body.clientWidth-document.getElementById("Div1").offsetWidth)/2; } function scall(){ sc1(); } function cl(){ Div1.style.display='none'; } window.onscroll=scall; window.onresize=scall; window.onload=scall;