﻿// JScript File

function loading(show)
{
   // block1 = document.getElementById("loading");
    if(show)
    {
        //alert("1");
        //alert(document.body.scrollLeft);
        document.getElementById("loading").style.left = 0;/*.body.scrollLeft + 'px';*/
        document.getElementById("loading").style.top = 0;/*document.body.scrollTop + 'px';*/
        document.getElementById("loading").style.width = getClientWidth() + 'px';
        document.getElementById("loading").style.height ='10000px';// getClientHeight() + 'px';
        document.getElementById("loading").style.display = 'block';
        
        document.getElementById("loading_text").style.left = 0; //getClientWidth()/2-50 + 'px';//screen.availWidth/2-50 + 'px';
        document.getElementById("loading_text").style.top = 0; //getClientHeight()/2-50 + 'px';//screen.availHeight/2 + 'px';
        document.getElementById("loading_text").style.width = '100px';
        //document.getElementById("loading_text").style.height = 
        document.getElementById("loading_text").style.display = 'block';
        //alert("11");
    }
    else
    {
        document.getElementById("loading").style.display = 'none';
        document.getElementById("loading_text").style.display = 'none';
    }
        //
    
};


function getClientWidth()
{
  return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientWidth:document.body.clientWidth;
}

function getClientHeight()
{
  return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientHeight:document.body.clientHeight;
}

