function ajax_get()
{
 var req;
 try{
  req=new XMLHttpRequest();
 }catch(e){
  try{
   req=new ActiveXObject("Msxml2.XMLHTTP");
  }catch(e){
   try{
    req=new ActiveXObject("Microsoft.XMLHTTP");
   }catch(e)
   {
    alert("Seu navegador não é compativel com Ajax algumas funções podem não funcionar, para resolver atualize seu navegador.");
    req = null;
   }}};
 return req;
}

//ajax
//ajax.readyState
//ajax.responseBody
//ajax.responseText
//ajax.responseXML
//ajax.status
//ajax.statusText
//ajax.onreadystatechange


function go(href,ref)
{
 ajax = get();
 ajax.open("GET", href, true);
 ajax.onreadystatechange=function()
 {
  if (ajax.readyState==4)
  {
   eval(ref+"('"+ajax.responseText+"');");
  }
 }
 ajax.send(null);
}


function ajax_content(href,obj){
	this.obj = obj;
	this.connect = ajax_get();
	this.connect.ajax = this;
	this.connect.open("GET", href, true);
	this.connect.onreadystatechange=function(){
		if(this.readyState==4){
			this.ajax.obj.innerHTML = this.responseText;
		}
	}
	this.connect.send(null);
}
