function chkWinSize (x,y) {
  window.onerror = null;
  if (navigator.appVersion.charAt(0) >= 4) {
    if (!y) y = 0;
    sx = 0; sy = 0;
    ww = 0; wh = 0;
    if (document.all) {
      ww = document.body.clientWidth;
      wh = document.body.clientHeight;
    } else if ((document.layers)||(document.getElementById)) {
      ww = window.innerWidth;
      wh = window.innerHeight;
    }
    if (ww != x) sx = x - ww;
    if (wh != y) sy = y - wh;
    if (((sx != 0)||(sy != 0)) && (ww != 0) && (wh != 0)) {
        resizeBy(sx,sy);
    }
  }
}
