/************************************************
 * initajax.js
 * Essa função é responsável por instanciar
 * o objeto xmlhttp, que será utilizado pelas
 * funções ajax para manipulação dos dados
 *************************************************/
function initAjax()
{
  var xmlhttp = false;
  try{
    xmlhttp = new XMLHttpRequest();
  }catch(e){
    try{
      xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    }catch(ee){
      try{
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      }catch(E){
        alert("Seu navegador não suporta ajax");
      }
    }
  }
  return xmlhttp;
}

