function getHTTPObject() {
  var xmlhttp;
/*@cc_on
  @if (@_jscript_version >= 5)
  try {
    xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
  } catch (e) {
    try {
      xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    } catch (E) {
      xmlhttp = false;
    }
  }
  @else
    xmlhttp = false;
  @end @*/
  if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
    try {
      xmlhttp = new XMLHttpRequest();
    } catch (e) {
      xmlhttp = false;
    }
  }
  return xmlhttp;
}

function showMessage(msg) {
    var element = document.getElementById('_msg_div');
    if ( element == undefined ) {
        element = insertMessageDiv();
        
    }
    
    element.innerHTML = '&nbsp;' + msg + '&nbsp;';
    element.style.display = 'block';
}

function hideMessage() {
    var element = document.getElementById('_msg_div');
    element.innerHTML = '';
    element.style.display = 'none';
}

function insertMessageDiv() {
    var newDiv = document.createElement('div');
    newDiv.setAttribute('id','_msg_div');
    newDiv.style.border = 'solid';
    newDiv.style.borderWidth = '1pt';
    newDiv.style.borderColor = '#DDDDDD';
    newDiv.style.backgroundColor = '#FEFDD3';
    newDiv.style.color = 'black';
    newDiv.style.position = 'absolute';
    newDiv.style.left = '45%';
    newDiv.style.top = '5px';
    newDiv.style.display = 'none';
    theBody = document.getElementsByTagName("body")[0];
    theBody.appendChild(newDiv);
    
    return newDiv;
}