// JavaScript Document
<!--

function init_noticias(lang,type,sectionpriv,pag) {
	refresh_noticias(lang,type,sectionpriv,pag);	
}

function refresh_noticias(lang,type,sectionpriv,pag){
	var myConn = new XHConn();

	pag=(pag==undefined) ? 1 : pag;
		
	if (!myConn) alert("Navegador sin soporte AJAX. Por favor utilice un navegador más actual.");

	var fnWhenDone = function (oXML) {
		var dv = document.getElementById('area_refresh');
		dv.innerHTML = oXML.responseText;		
		
		if(!ie) document.body.innerHTML = document.body.innerHTML;//refresco el body si no es explorer
	};	
	
	params="lang=" + escape(lang) + "&type=" + escape(type)  + "&sectionpriv=" + escape(sectionpriv) + '&pag=' + escape(pag);


	myConn.connect("../modules/refresh_news.php", "POST", params,fnWhenDone);
}

function filtro_noticias(lang,name){
	type=document.getElementById(name);
	
	if(type){
		sel=type.options[type.selectedIndex].value;
		refresh_noticias(lang,sel,0,1);			
	}
}
-->
