var my_w = 800;
var my_h = 600;
if (screen.width) {my_w = screen.width;}
if (screen.height) {my_h = screen.height;}

function fn_windowResize(thisImg)
{
 var winwidth = thisImg.width + 119;
 var winheight = thisImg.height + 240;
 if (winheight > my_h) {winheight = my_h;}
 if (winwidth > my_w) {winwidth = my_w;}
 var wintop = 0;
 var winleft = 0;
 wintop = (my_h - winheight - 20)/2;
 winleft = (my_w - winwidth)/2;
 if (wintop < 0) {wintop=0;}
 if (winleft < 0) {winleft=0;}
 resizeTo(winwidth,winheight);
 moveTo(winleft,wintop)
 self.focus();
}

