function BwindowWidth(){
 if (window.innerWidth) return window.innerWidth;
 else if (document.body && document.body.offsetWidth) return document.body.offsetWidth;
 else return 0;
}

function BwindowHeight(){
 if (window.innerHeight) return window.innerHeight;
 else if (document.body && document.body.offsetHeight) return document.body.offsetHeight;
 else return 0;
}

function recal(){
if (Width != BwindowWidth() || Height != BwindowHeight()) window.history.go(0);

/*for NetScape */
if(!window.Width && window.innerWidth)  {
   window.onresize = recal;
   Width = BwindowWidth();
   Height = BwindowHeight();
}
}
