/*
Descipcion: Crea un objeto ajax independientemente del navegador utilizado
Autor: Cristian Revainera
*/
function objetoAjax(){
var xmlhttp=false;
try {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
xmlhttp = false;
}
}

if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
xmlhttp = new XMLHttpRequest();
}
return xmlhttp;
}

var ajax = objetoAjax();  
var pActual = 0;


/*
Descipcion: Permite configurar el objeto Ajax
Autor: Cristian Revainera
*/
function cargarContenido(url, metodo, funcion){
  //ajax=objetoAjax();        
  ajax.open(metodo, url,true);
  ajax.onreadystatechange=funcion;  

  ajax.send(null);              

}
