function getHTTPObject() {

	var xmlhttp;

	if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {

	try {
		//microsoft internet explorer
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");				
		
	} catch (ms) {
	
		try {
			//explorer viejo si mal no recuerdo
			xmlhttp = 	new ActiveXObject("Microsoft.XMLHTTP");
			
		} catch (ff) {
			//estandart - opera y firefox (seguro todos los navegadores usan este metodo)
			xmlhttp = new XMLHttpRequest();
		
		}		
		
	}

}

return xmlhttp;

}

var http_request = getHTTPObject();	//creacion del objeto