function DisablePage()
{ /*divtemp=document.getElementsByTagName('body')[0];

  divtemp1= document.createElement("div");
  divtemp1.className = 'disablePage';
  divtemp1.style.width =  getDocHeight();
  divtemp1.style.height = getDocWidth();
  divtemp.appendChild(divtemp1);

  // Determine how much the visitor had scrolled
  var scrolledX, scrolledY;
  if( self.pageYOffset )
  { scrolledX = self.pageXOffset;
    scrolledY = self.pageYOffset;
  }
  else if( document.documentElement && document.documentElement.scrollTop )
  { scrolledX = document.documentElement.scrollLeft;
    scrolledY = document.documentElement.scrollTop;
  }
  else if( document.body )
  { scrolledX = document.body.scrollLeft;
    scrolledY = document.body.scrollTop;
  }

  // Determine the coordinates of the center of browser's window
  var centerX, centerY;
  if(self.innerHeight )
  { centerX = self.innerWidth;
    centerY = self.innerHeight;
  }
  else if(document.documentElement && document.documentElement.clientHeight )
  { centerX = document.documentElement.clientWidth;
    centerY = document.documentElement.clientHeight;
  }
  else if(document.body )
  { centerX = document.body.clientWidth;
    centerY = document.body.clientHeight;
  }

  var leftOffset = scrolledX + (centerX - 250) / 2;
  var topOffset = scrolledY + (centerY - 200) / 2;

  document.getElementById("loading_image").className = 'loading';
  document.getElementById("loading_image").style.top = (topOffset-100) + "px";
  document.getElementById("loading_image").style.left = (leftOffset-100) + "px";
  document.getElementById("loading_image").style.display = "block";

  divtemp.style.overflow='hidden';*/

}
/*var divtemp;

function DisablePage()
{ window.scrollTo(0, 0);

  divtemp=document.getElementsByTagName('body')[0];

  divtemp1= document.createElement("div");
  divtemp1.className = 'disablePage';
  divtemp1.style.top = 0 + "px";
  divtemp1.style.left = 0 + "px";
  divtemp1.style.width =  getDocHeight();
  divtemp1.style.height = getDocWidth();
  divtemp.appendChild(divtemp1);

  var browserCheck = (document.all) ? 1 : 0;
  if( browserCheck > 0 )  // if MSIE is set greater than 0 (e.g. 1)
  { var oImg=document.createElement("img");
    oImg.setAttribute('src', '/images/load.gif');
    oImg.setAttribute('alt', 'alternate text');
    oImg.setAttribute('height', '200px');
    oImg.setAttribute('width', '200px');
    oImg.className = 'loading';
    oImg.style.top = (((getScrollHeight()/2)-100)) + "px";
    oImg.style.left = ((getDocWidth()/2)-100) + "px";
    divtemp.appendChild(oImg);
    window.setTimeout(getDocWidth(), 100000);
  }
  else
  { divtemp2=document.getElementById("loading_image");
    divtemp2.className = 'loading';
    divtemp2.style.top = (((getScrollHeight()/2)-100)) + "px";
    divtemp2.style.left = ((getDocWidth()/2)-100) + "px";
    divtemp2.style.display = 'block';
  }
  divtemp.style.overflow='hidden';
}

function getDocHeight()
{ var D = document;
  return Math.max(
      Math.max(D.body.scrollHeight, D.documentElement.scrollHeight),
      Math.max(D.body.offsetHeight, D.documentElement.offsetHeight),
      Math.max(D.body.clientHeight, D.documentElement.clientHeight)
  );
}

function getScrollHeight()
{ var D = document;
  return Math.min(
      Math.min(D.body.scrollHeight, D.documentElement.scrollHeight),
      Math.min(D.body.offsetHeight, D.documentElement.offsetHeight),
      Math.min(D.body.clientHeight, D.documentElement.clientHeight)
  );
}

function getDocWidth()
{ var D = document;
  return Math.max(
        Math.max(D.body.scrollWidth, D.documentElement.scrollWidth),
        Math.max(D.body.offsetWidth, D.documentElement.offsetWidth),
        Math.max(D.body.clientWidth, D.documentElement.clientWidth)
  );
}*/

function getDocHeight()
{ var D = document;
  return Math.max(
      Math.max(D.body.scrollHeight, D.documentElement.scrollHeight),
      Math.max(D.body.offsetHeight, D.documentElement.offsetHeight),
      Math.max(D.body.clientHeight, D.documentElement.clientHeight)
  );
}

function getDocWidth()
{ var D = document;
  return Math.max(
        Math.max(D.body.scrollWidth, D.documentElement.scrollWidth),
        Math.max(D.body.offsetWidth, D.documentElement.offsetWidth),
        Math.max(D.body.clientWidth, D.documentElement.clientWidth)
  );
}