﻿function getWindowSize() {
  var win = new Object();
  var wh, ww
  
  if (window.innerHeight) {
    wh = window.innerHeight;
    ww = window.innerWidth;
  }
  else if (document.documentElement && document.documentElement.clientHeight)    {
    wh = document.documentElement.clientHeight;
    ww = document.documentElement.clientWidth;
  }
  else if (document.body)    {
    wh = document.body.clientHeight;
    ww = document.body.clientWidth;
  }
  
  win.Height = wh;
  win.Width = ww;
  
  return win;
}

function ShowWorkingDIV()
{
    var win = getWindowSize();
    h = win.Height;
    w = win.Width;

    if (document.getElementById("_WORKINGDIV")) 
    {
        document.getElementById("_WORKINGDIV").style.height = document.body.offsetHeight + "px";
        document.getElementById("_WORKINGDIV").style.width = document.body.offsetWidth + "px";
        document.getElementById("_WORKINGDIV").style.visibility = "visible";
    }        
}  

function HideWorkingDIV()
{
    if (document.getElementById("_WORKINGDIV")) 
    {
        document.getElementById("_WORKINGDIV").style.visibility = "hidden";
        document.getElementById("_BILD").src = "../images/blank.gif";
    }        
}

