function Inint_AJAX() {
   
   try { return new ActiveXObject("Msxml2.XMLHTTP");  } catch(e) {} //IE
   try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) {} //IE
   try { return new XMLHttpRequest(); } catch(e) {} //Native Javascript
   alert("XMLHttpRequest not supported");
   return null;
};

function showevent(obj, id) {
 
 	var xmlhttp=Inint_AJAX();
    xmlhttp.onreadystatechange = function () { 
          if (xmlhttp.readyState==4) {
               if (xmlhttp.status==200) {
                    document.getElementById(obj).innerHTML=xmlhttp.responseText; //retuen value
               } 
          }
     };
     xmlhttp.open("GET", "eventos/includes/showevent.php?id="+id); //make connection
     xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=iso-8859-1"); // set Header
     xmlhttp.send(null); //send value
}
