var temp="";

function DatosProyectos (Acronimo,Titulo,Organismo,Descripcion) {
	RemplazarCaracteres(Titulo);
	document.forms[0].Titulo.value = temp;
	RemplazarCaracteres(Organismo);
	document.forms[0].Organismo.value = temp;
	RemplazarCaracteres(Descripcion);
	document.forms[0].Descripcion.value = temp;
	document.images['imgProyectosINT'].src= 'http://213.37.37.251/geosys/LogosProyectos/' + Acronimo + ".gif"
}

function RemplazarCaracteres(entry) {
	out = "#"; // reemplazar #
	add = " "; // por espacios
	temp = "" + entry;
	while (temp.indexOf(out)>-1) {
	pos= temp.indexOf(out);
	temp = "" + (temp.substring(0, pos) + add + 
	temp.substring((pos + out.length), temp.length));
	}
}

function openWindow(ruta) {
	ventana = window.open(ruta,'Condiciones','scrollbars=no,toolbar=no,location=no,directories=no,status=yes,resizable=no,copyhistory=no,width=400,height=350,top=10,left=10,');
	ventana.focus();
	document.returnValue = false;
}

function SeleccionaAnioNoticia(CodPeriodo) {
	parent.top.location = "geosys.asp?Menu=Proyectos&SubMenu=Nacionales&IdAnio=" + CodPeriodo;
}
