postw = 0;
posth = 0;

function size() {
width = window.document.body.clientWidth;
height = window.document.body.clientHeight;

if ( !document.documentElement.clientWidth && width == 0 ) width = document.body.clientWidth;
if ( !document.documentElement.clientHeight && height == 0 ) height = document.body.clientHeight;

if(width > 1280) width = 1280;
if(width < 980) width = 980;
if(height < 935) height = 935;

document.getElementById('frame').style.width = width-230;
document.getElementById('frame').style.height = height-185;

postw = Math.floor((width-230)/2);
posth = Math.floor((height-360)/2);
}
onload=size;
onresize=size;

