
var lastpagewidth;
var lastpageheight;

if(!lastpagewidth && document.layers)
{
window.onresize = resizeIt;
lastpagewidth = window.innerWidth;
lastpageheight = window.innerHeight;
}

function refreshpage()
{
//alert("Window needs updating");
if (lastpagewidth < window.innerWidth || lastpagewidth > window.innerWidth ||
lastpageheight > window.innerHeight || lastpageheight < window.innerHeight ) 
{
window.history.go(0);
}
}
