// JavaScript Document
function crear_xml()
{
	var xmlhttp=false;
	
	//ahora se comprueba si se está usando IE.
	try
	{
		//si la versión de Javacript es superior a la 5:
		xmlhttp= new ActiveXObject("Msxml2.XMLHTTP");
		//alert("Estás usando Internet Explorer");
	}
	catch(e)
	{
		// si no, pasamos a utilizar el tradicional objeto ActiveX.
		try
		{
			//si estamos usando internet explorer
			xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			//alert("Estás usando Internet Explorer");
		}
		catch (E)
		{
			//en caso contrario debe tratarse de un navegador que no es IE.
			xmlhttp=false;
		}
	}
	
	//si no se está usando IE, crearemos una instancia JavaScript del objeto:
	if(!xmlhttp && typeof XMLHttpRequest != 'undefined')
	{
		xmlhttp=new XMLHttpRequest();
		//alert("No estás usando IExplorer.");
	}	
	return xmlhttp;
}