function verArticulo(id)
{
//function ventanaINNER(capa, titulo, width, height, left, top, colorFondo, url, variables, overflow)
	var left = (screen.width - 700) / 2;
	var top = (screen.height - 550) / 2;
	//ventanaINNER("ventana","Seccion de interes","700","550",left,top,"#F5F5F5","lib/interes.php","accion=contenidoArticulo&id="+id,"auto");
	window.open("lib/interes.php?accion=contenidoArticulo&id="+id,"ventana","left="+left+", top="+top+", width=700, height=550, scrollbars");
}
function aportaciones()
{
	var left = (screen.width - 700) / 2;
	var top = (screen.height - 550) / 2;
	ventanaINNER("ventana","Seccion de interes","700","360",left,top,"#F5F5F5","lib/interes.php","accion=aportacionesArticulo","none");
}
function enviaFormulario(nombreForma)
{
	var cad="",j,y,forma,frm = document.forms;
	band = true;
	for(j=0; j < frm.length; j++){
		if(frm[j].name == nombreForma){
			forma = frm[j];
			for(y=0; y< forma.elements.length; y++){
				if(forma[y].type != "button"){
					if(forma[y].name != "observaciones"){
						if(forma[y].value != ""){
							cad+=forma[y].name+"="+escape(forma[y].value)+"&";	
						} else {
							alert("el campo "+forma[y].name+" debe ser llenado");
							forma[y].focus();
							band = false;
							break;
						}
					}
					else
						cad+=forma[y].name+"="+escape(forma[y].value)+"&";	
				}
			}
			if(band){
				escribeArchivoGP(forma.action,"ventana",cad,forma.method);
				break;
			}
		}
	}
}