function WindowInnerX() 
{
  if ( typeof( window.innerWidth ) == 'number' ) 
  {
    return(window.innerWidth);
  }
  else 
  {
    return(document.body.clientWidth);
  }
}

function WindowInnerY() 
{
  if ( typeof( window.innerWidth ) == 'number' ) 
  {
    return(window.innerHeight);
  }
  else 
  {
    return(document.body.clientHeight);
  }
}

function InnerResizeTo(x,y)
{
  try
  {
    window.resizeTo(x,y);
    x=x+(x-WindowInnerX());
    y=y+(y-WindowInnerY());
    window.resizeTo(x,y);
  }
  catch(er)
  {
    // Ignore the error
  }
}