window.onresize=(Resize);
}
var CurrentMapElement=document.getElementById(
'Map1_MapFrame');
var CurrentWidth = CurrentMapElement.style.width;
var CurrentHeight = CurrentMapElement.style.height;
var WindowWidth = 0, WindowHeight = 0;
if(
typeof( window.innerWidth ) ==
'number' ) {
WindowWidth = window.innerWidth;
WindowHeight = window.innerHeight;
}
else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
WindowWidth = document.documentElement.clientWidth;
WindowHeight = document.documentElement.clientHeight;
}
else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
WindowWidth = document.body.clientWidth;
WindowHeight = document.body.clientHeight;
}
var WidthVariance = Math.abs(parseInt(CurrentWidth) - WindowWidth);
var HeightVariance = Math.abs(parseInt(CurrentHeight) - WindowHeight);
var Tolerance = 50;
if (WidthVariance > Tolerance || HeightVariance > Tolerance)
{
var WindowOffset = 25;
__doPostBack('lnkRefreshEntirePage',(WindowWidth - WindowOffset) + '|' + (WindowHeight - WindowOffset));
}