var ajax_container = '';
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 statechange(div){
ajax_container = document.getElementById(div);
	if(http.readyState == 4){
		rasp=http.responseText; 
		if(rasp)
			{
			ajax_container.innerHTML=rasp;
			}
	}

}

function open_file(url, div) {
  http=getHTTPObject();
  http.open("POST", url, true);
  http.onreadystatechange = new Function("statechange('"+div+"')")
  http.send(null);
 }

function send_request(params, div){
ajax_container = document.getElementById(div);
rasp='';
ready=false;
open_file(params, div);
ajax_container.innerHTML='<br><span class="right"><img src="images/indicator.gif" width="21" height="5" /></span>';
}