var xmlHttp;

function Ajax(){
	this.xmlHttp = this.criaObjeto();
}

Ajax.prototype.getObjeto = function(){
	return this.xmlHttp;
}

Ajax.prototype.criaObjeto = function(){
	xml = null;
	
	try{
		// Firefox, Opera 8.0+, Safari
  		xml = new XMLHttpRequest();
 	}catch (e){
  		// Internet Explorer
  		try{
    		xml = new ActiveXObject("Msxml2.XMLHTTP");
    	}catch (e){
			try{
				xml = new ActiveXObject("Microsoft.XMLHTTP");
			}catch(e){
				alert("Seu navegador não aceita AJAX.");
				return false;
			}
    	}
  	}
	

	return xml;
}