
function getAppletSize() {

var frwidth = 0;

  //top.document.getElementById('frm_body').cols = '100%,*';

  var myWidth = 0, myHeight = 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;
      }
    }
  }
  //window.alert( 'Width = ' + myWidth );
  //window.alert( 'Height = ' + myHeight );


 
 
  //alert('setframe');
  //alertSize();
  frwidth = myWidth/2 - 87;
  //window.alert(myWidth);
  //window.alert(frwidth);
  //top.document.getElementById('frm_body').cols = frwidth + ', *';
    //top.Map.document.applets['JMapView2'].width = myWidth - 100;
   // top.Map.document.applets['JMapView2'].height = myHeight - 100;
    //top.Map.document.applets['JMapView2'].fitView;
  
  //appHeight = myHeight;
  //appWidth = myWidth;
  var appHeight = myHeight - 90;
  var appWidth = myWidth - 90;

  
  return (appWidth + "|" + appHeight);

}


  function resizeMap()
  
  {
    //alert('resize');
    var mysize=getAppletSize();
	var swidth = mysize.split("|");
	var strURL = 'ZoomPan.asp?WIDTH=' + swidth[0] + '&HEIGHT=' + swidth[1] + '&X1=' + document.frmMap.X1.value 
	+ '&Y1=' + document.frmMap.Y1.value + '&X2=' + document.frmMap.X2.value + '&Y2=' + document.frmMap.Y2.value
	+ '&MSS=' + document.frmMap.MSS.value;
    window.open(strURL, 'Map');
    
  }  
