var need_scroll="no"; height+=50; width+=50; if (height>screen.availheight-30) { height=screen.availheight-30; need_scroll="yes"; }