function Ajax()
{
    // Criando o Xml Http Request Object //
	this.xmlhttp = false;
	try
	{
		this.xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch (e)
	{
		try
		{
	   		this.xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch (E)
		{
	   		this.xmlhttp = false;
		}
	}
	if (!this.xmlhttp && typeof XMLHttpRequest!='undefined')
	{
		try
		{
			this.xmlhttp = new XMLHttpRequest();
		}
		catch (e)
		{
			this.xmlhttp = false;
		}
	}
	if (!this.xmlhttp && window.createRequest)
	{
		try
		{
			this.xmlhttp = window.createRequest();
		}
		catch (e)
		{
			this.xmlhttp = false;
		}
	}
	if (!this.xmlhttp)
	{
	    alert("Seu navegador não suporta AJAX!");
	}
	
	// Método para capturar o objeto
	this.getConnection = function() {
	    return this.xmlhttp;
	};
}

