function getAjax()
{
	try 
	{
		ajax = new XMLHttpRequest;
	}
	catch(err1)
	{
		try
		{
			ajax = new ActiveXObject("Msxml2.XMLHTTP");	
		}
		catch(err2)
		{
			try
			{
				ajax = new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(err3)
			{
				ajax = false;
			}
		}		
	}
	return ajax;
}
var http = getAjax();

var contenedor = null;

function noticiasMinutoAMinuto(url,id)
{
	contenedor = document.getElementById(id);
	if (http)
	{    	
		if (http.readyState == 4 || http.readyState == 0) 
     	{    
     	  	http.open("GET",url, true);        		
     		http.onreadystatechange = respuestaAjax;
     		http.send(null);
     	}    
  	}
}
function respuestaAjax()
{
	if (http.readyState == 4 && http.status == 200)
	{
		contenedor.innerHTML = http.responseText;
	}
}

