function GetXmlHttpObject(url, id) {
this.xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
this.xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
this.xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try{
this.xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
     }catch(e){this.xmlHttp=null;}
    }
  }
  if(this.xmlHttp!=null){
var c=this;
this.el=document.getElementById(id);
this.xmlHttp.open("GET",url,true);
this.xmlHttp.onreadystatechange=function(){c.stateChanged();};
this.xmlHttp.send(null);
}
else alert('Your browser does not support AJAX!');
}


GetXmlHttpObject.prototype.stateChanged=function () {
if (this.xmlHttp.readyState==4)
	{
	var tid=this.xmlHttp.responseText;
	this.el.innerHTML = tid;
	}
}

