jalert = {
  tclientWidth: null,
  tmarginLeft: 0,
  tmarginTop: 0,
  tSetloaderDivStyle: function()
  {
    var tloaderobj0 = document.getElementById('jalertFrame');
    var tloaderobj1 = document.getElementById('jalertDiv');
    if (tloaderobj0 && tloaderobj1)
    {
      var tloaderobj2 = document.getElementById('jalertMsgDiv');
      tloaderobj2.style.marginTop = (document.documentElement.scrollTop + this.tmarginTop) + 'px';
      if (this.tclientWidth != document.body.clientWidth)
      {
        this.tclientWidth = document.body.clientWidth;
        tloaderobj0.style.width = document.body.clientWidth + 'px';
        tloaderobj1.style.width = document.body.clientWidth + 'px';
        if (document.documentElement.scrollWidth > document.body.clientWidth)
        {
          tloaderobj0.style.width = document.documentElement.scrollWidth + 'px';
          tloaderobj1.style.width = document.documentElement.scrollWidth + 'px';
        }
      }
      setTimeout('jalert.tSetloaderDivStyle()', 50);
    }
  },
  tCreateloaderDiv: function()
  {
    this.tclientWidth = document.body.clientWidth;
    //***********************************************************
    var jalertFrame = document.createElement('iframe');
    jalertFrame.setAttribute('id', 'jalertFrame');
    jalertFrame.setAttribute('scrolling', 'no');
    jalertFrame.setAttribute('frameborder', '0');
    jalertFrame.style.position = 'absolute';
    jalertFrame.style.top = '0';
    jalertFrame.style.left = '0';
    jalertFrame.style.filter = 'Alpha(Opacity=0)';
    jalertFrame.style.opacity = '0';
    jalertFrame.style.width = document.documentElement.scrollWidth + 'px';
    jalertFrame.style.height = document.documentElement.scrollHeight + 'px';
    jalertFrame.style.zIndex = '9999';
    document.body.appendChild(jalertFrame);
    //***********************************************************
    var tloaderDiv = document.createElement('div');
    tloaderDiv.setAttribute('id', 'jalertDiv');
    tloaderDiv.style.position = 'absolute';
    tloaderDiv.style.top = '0';
    tloaderDiv.style.left = '0';
    tloaderDiv.style.background = '#000000';
    tloaderDiv.style.filter = 'Alpha(Opacity=30)';
    tloaderDiv.style.opacity = '0.3';
    tloaderDiv.style.width = document.documentElement.scrollWidth + 'px';
    tloaderDiv.style.height = document.documentElement.scrollHeight + 'px';
    tloaderDiv.style.zIndex = '10000';
    document.body.appendChild(tloaderDiv);
    //***********************************************************
    var tMsgDiv = document.createElement('div');
    tMsgDiv.setAttribute('id', 'jalertMsgDiv');
    tMsgDiv.style.position = 'absolute';
    tMsgDiv.style.top = '50%';
    tMsgDiv.style.left = '50%';
    tMsgDiv.style.marginLeft = this.tmarginLeft + 'px';
    tMsgDiv.style.marginTop = (document.documentElement.scrollTop + this.tmarginTop) + 'px';
    tMsgDiv.style.zIndex = '10001';
    document.body.appendChild(tMsgDiv);
    //***********************************************************
    setTimeout('jalert.tSetloaderDivStyle()', 50);
  },
  tloader: function(strers)
  {
    var tloaderobj = document.getElementById('jalertMsgDiv');
    if (!tloaderobj)
    {
      this.tCreateloaderDiv();
      tloaderobj = document.getElementById('jalertMsgDiv');
    }
    if (tloaderobj) document.getElementById('jalertMsgDiv').innerHTML = strers;
  },
  tClose: function()
  {
    var tloaderobj0 = document.getElementById('jalertFrame');
    var tloaderobj1 = document.getElementById('jalertDiv');
    var tloaderobj2 = document.getElementById('jalertMsgDiv');
    if (tloaderobj0 && tloaderobj1 && tloaderobj2)
    {
      document.body.removeChild(tloaderobj0);
      document.body.removeChild(tloaderobj1);
      document.body.removeChild(tloaderobj2);
    }
  }
}
