jalert = {
  tclientWidth: null,
  tmarginLeft: -205,
  tmarginTop: -145,
  tSetAlertDivStyle: function()
  {
    var tAlertobj0 = document.getElementById('jAlertFrame');
    var tAlertobj1 = document.getElementById('jAlertDiv');
    if (tAlertobj0 && tAlertobj1)
    {
      var tAlertobj2 = document.getElementById('jAlertMsgDiv');
      tAlertobj2.style.marginTop = (document.body.scrollTop + this.tmarginTop) + 'px';
      if (this.tclientWidth != document.body.clientWidth)
      {
        this.tclientWidth = document.body.clientWidth;
        tAlertobj0.style.width = document.body.clientWidth + 'px';
        tAlertobj1.style.width = document.body.clientWidth + 'px';
        if (document.body.scrollWidth > document.body.clientWidth)
        {
          tAlertobj0.style.width = document.body.scrollWidth + 'px';
          tAlertobj1.style.width = document.body.scrollWidth + 'px';
        }
      }
      setTimeout('jalert.tSetAlertDivStyle()', 50);
    }
  },
  tCreateAlertDiv: 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.body.scrollWidth + 'px';
    jAlertFrame.style.height = document.body.scrollHeight + 'px';
    jAlertFrame.style.zIndex = '9999';
    document.body.appendChild(jAlertFrame);
    //***********************************************************
    var tAlertDiv = document.createElement('div');
    tAlertDiv.setAttribute('id', 'jAlertDiv');
    tAlertDiv.style.position = 'absolute';
    tAlertDiv.style.top = '0';
    tAlertDiv.style.left = '0';
    tAlertDiv.style.background = '#000000';
    tAlertDiv.style.filter = 'Alpha(Opacity=60)';
    tAlertDiv.style.opacity = '0.6';
    tAlertDiv.style.width = document.body.scrollWidth + 'px';
    tAlertDiv.style.height = document.body.scrollHeight + 'px';
    tAlertDiv.style.zIndex = '10000';
    document.body.appendChild(tAlertDiv);
    //***********************************************************
    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.body.scrollTop + this.tmarginTop) + 'px';
    tMsgDiv.style.zIndex = '10001';
    document.body.appendChild(tMsgDiv);
    //***********************************************************
    setTimeout('jalert.tSetAlertDivStyle()', 50);
  },
  tAlert: function(strers)
  {
    var tAlertobj = document.getElementById('jAlertMsgDiv');
    if (!tAlertobj)
    {
      this.tCreateAlertDiv();
      tAlertobj = document.getElementById('jAlertMsgDiv');
    }
    if (tAlertobj) document.getElementById('jAlertMsgDiv').innerHTML = strers;
  },
  tClose: function()
  {
    var tAlertobj0 = document.getElementById('jAlertFrame');
    var tAlertobj1 = document.getElementById('jAlertDiv');
    var tAlertobj2 = document.getElementById('jAlertMsgDiv');
    if (tAlertobj0 && tAlertobj1 && tAlertobj2)
    {
      document.body.removeChild(tAlertobj0);
      document.body.removeChild(tAlertobj1);
      document.body.removeChild(tAlertobj2);
    }
  }
}