function ReSizeWindow(iTargetWindowWidth, iTargetWindowHeight){
  var sClientType;
  var iWindowWidth = 0, iWindowHeight = 0;
						 
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    sClientType = "Non-IE";
    iWindowWidth = window.innerWidth;
    iWindowHeight = window.innerHeight;						    
  } 
  else {
    if( document.documentElement &&
      ( document.documentElement.clientWidth || 
        document.documentElement.clientHeight ) ) {

	//IE 6+ in 'standards compliant mode'
	sClientType = "IE 6+ - standards compliant mode";
	iWindowWidth = document.documentElement.clientWidth;
	iWindowHeight = document.documentElement.clientHeight;
    } 
    else {
	if( document.body && 
	  ( document.body.clientWidth || 
	    document.body.clientHeight ) ) {
	  //IE 4 compatible
	  sClientType = "IE 4 compatible";
	  iWindowWidth = document.body.clientWidth;
	  iWindowHeight = document.body.clientHeight;
	}
    }
  }

  var bResizedWidth = false;
  if((iWindowWidth < iTargetWindowWidth) ||  (iWindowHeight < (iTargetWindowHeight - 60))) {
    self.resizeTo(iTargetWindowWidth,iTargetWindowHeight+70);
  } else {
    self.resizeTo(iTargetWindowWidth,iTargetWindowHeight - 70);
  }
}

