  var htmlConnection;
  var browserIE;

  function createXMLHttp()
  {
    var ret = null;
    browserIE = false;
    if (window.XMLHttpRequest)
    {
      ret = new XMLHttpRequest();
      if (navigator.appName == 'Microsoft Internet Explorer') browserIE = true;
    }
    else if(window.ActiveXObject)
    {
      ret = new ActiveXObject('Microsoft.XMLHTTP');
      browserIE = true;
    }
    return ret;
  }

  function GetUrl(url, obj)
  {

		
    htmlConnection = createXMLHttp();
    if(htmlConnection!=null)
    {

			if(obj == null) {
				htmlConnection.onreadystatechange = stateHandler;
			}
			else {
	      htmlConnection.onreadystatechange = function()
	      {
				  if (htmlConnection.readyState == 4){
				    if (htmlConnection.status == 200){
				      obj.ajax_success();
				    }
				  }
	      }
	    }
      
      if(browserIE){
        htmlConnection.open('GET', url, true);
        htmlConnection.send();
      }
      else{
        htmlConnection.open('GET', url, true);
        htmlConnection.overrideMimeType('text/html');
        htmlConnection.send(null);
      }
    }
  }
  
  function stateHandler() {
  	
    if (htmlConnection.readyState == 4){
      if (htmlConnection.status == 200){
        success();
      }
    }
  }
  

