function ShowWaitCursor() {
  oWait = document.createElement('div');
  oWait.id = 'WaitCursorDiv';
  oWait.style.zIndex = 10000;
  oWait.style.cursor = 'wait';
  if (!window.XMLHttpRequest) {
    oWait.style.position = 'absolute';
    oWait.style.left = '0px';
    oWait.style.top = '0px';
    oWait.style.width = document.documentElement.clientWidth+'px';
    oWait.style.height = document.documentElement.clientHeight+document.documentElement.scrollTop+'px';
  } else {
    oWait.style.position = 'fixed';
    oWait.style.left = '0px';
    oWait.style.top = '0px';
    oWait.style.right = '0px';
    oWait.style.bottom = '0px';
    oWait.style.background = 'black';
    oWait.style.opacity = '0';
    oWait.style.filter = 'alpha(opacity=0)';
  }
  document.body.appendChild(oWait);
}

function HideWaitCursor() {
  document.body.removeChild(document.getElementById('WaitCursorDiv'));
}

