﻿newHeight = "0px";
newHeightNo = 0;
newWidthNo = 0;
newWidth = "100px"
var PC=null;
HT1 = null;
HT2 = null;
HT3 = null;
HT4 = null;
function fixSize() {
  var myWidth = 0, myHeight = 0; screenFlag = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
 PC = document.getElementById("PageContent");
 HT1 = document.getElementById("t1");
 HT2 = document.getElementById("t2");
 HT3 = document.getElementById("t3");
 HT4 = document.getElementById("t4"); 
 if (myWidth < 1400) {
   PC.style.overflow = "auto";
   screenFlag = 1;
   }
 if (screenFlag) {
   HT4.style.display = "none";
   HT3.style.display = "none";
   }   
 newHeightNo = myHeight - 225;
 newWidthNo = myWidth - 20;
 newHeight = newHeightNo + "px";
 newWidth = newWidthNo + "px";
 PC.style.height = newHeight;
 PC.style.width  = newWidth;
 if (typeof (onLoad2) == 'function') 
   {onLoad2()}
 else
   {};
 if (typeof (GetMap) == 'function' )
   {GetMap()}
 else
   {};
}


