Ajax = false;

	elemento = document.getElementById('exibelinksnoticias');

	function AjaxRequest()
	{
	    Ajax = false;
	    if (window.XMLHttpRequest)
	    {
	        Ajax = new XMLHttpRequest();
	    }
	    else if(window.ActiveXObject)
	    {
	        try
	        {
	            Ajax = new ActiveXObject("Msxml2.XMLHTTP");
	        }
	        catch (e)
	        {
	            try
	            {
	                Ajax = new ActiveXObject("Microsoft.XMLHTTP");
	            }
	            catch (e) {}
	        }
	    }
	}

	function carrega(pg)
	{
	    AjaxRequest();
	    if(Ajax)
	    {
	        Ajax.onreadystatechange = mostra;
	        Ajax.open('GET', 'ajax/mostra.todasnoticias.php?pg=' + pg, true);
	        Ajax.send(null);
	    }
	    else
	    {
	        alert("Sem AJAX...");
	    }


	}

	function mostra()
	{
	    elemento = document.getElementById('exibelinksnoticias');
	    if(Ajax.readyState < 4)
	    {

	    }
	    else
	    if(Ajax.readyState==4)
	    {
	        if(Ajax.status==200)
	        {	            elemento.innerHTML = Ajax.responseText;
	        }
	    }
	}