var xmlhttp;
var returnobject;

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;
}


var httpReceive = getHTTPObject();

function go(url,containerid) 
{
	window.document.body.style.cursor = 'wait';
             returnobject=containerid;
	if (httpReceive.readyState == 4 || httpReceive.readyState == 0) 
	{
  	  httpReceive.open("GET", url, true);
  	  httpReceive.setRequestHeader('Content-type', 'application/x-www-form-urlencoded; charset=iso-8859-9');
      httpReceive.onreadystatechange = StateChange; 
  	  httpReceive.send(null);   
    }
}
 
  function StateChange() 
{
    

      if (httpReceive.readyState == 4) 
      {
         if (httpReceive.status == 200) 
         { 
              if(returnobject)
              {
                   window.document.getElementById(returnobject).innerHTML=httpReceive.responseText;
              }   
         window.document.body.style.cursor = 'default';  
         return true
         } 
         else
         return false
      }
    
  }







