// Creo el objeto principal para usar AJAX: XMLHtmlRequest
function createXMLHttpRequestObj(index)
{
	// Version para Miscrosoft
	try {
		xmlHttp[index] = new ActiveXObject("Msxml2.XMLHTTP");		
	} catch (e1) {
		try {		
			xmlHttp[index] = new ActiveXObject("Microsoft.XMLHTTP");			
		} catch (e2) {
			xmlHttp[index] = null;
		}
	}

    // Si todavía no se creo...
	if (! xmlHttp[index]) {
		// Versión para !Microsoft
		if (typeof XMLHttpRequest != "undefined") {
			xmlHttp[index] = new XMLHttpRequest();
			return true;
		} else {
			return false;
		}
	}
	else
	{
 	 return true;
	}
}
