function verNoticia(page){
	xmlHttp=GetXmlHttpObject();
	
	if(xmlHttp==null){
		alert("Your browser does not support AJAX!");
		return;
	}

	var url = "/noticias/"+page;

	xmlHttp.onreadystatechange = stateChangedUploaded;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
} 

function showNews(idnews){
	xmlHttp=GetXmlHttpObject();
	
	if(xmlHttp==null){
		alert("Your browser does not support AJAX!");
		return;
	}

	var url = "noticias.php";
	url=url+"?id="+ page;
	
	xmlHttp.onreadystatechange = stateChangedUploaded;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
} 

function changePage(page){
	xmlHttp=GetXmlHttpObject();

	document.getElementById("contenido").innerHTML='<center><img src="ajax_loader.gif" /></center>';
	
	if(xmlHttp==null){
		alert("Your browser does not support AJAX!");
		return;
	}

	var url = "contenido.php";
	url=url+"?page="+ page;
	
	xmlHttp.onreadystatechange = stateChangedUploaded;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
} 

function stateChangedUploaded(){
	if(xmlHttp.readyState==4){
		document.getElementById("contenido").innerHTML=xmlHttp.responseText;
	}
}

function GetXmlHttpObject(){
var xmlHttp=null;

	try{
		xmlHttp=new XMLHttpRequest();
	}catch(e){
	try{
    	xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }catch(e){
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
}

return xmlHttp;

}


