function validarAsociado(forma) {	
	if (forma.txt_login.value == ''){	
		alert("Debe ingresar el Usuario");
		return false;	
	}
	if (forma.txt_pass.value == ''){	
		alert("Debe ingresar la Contraseņa");
		return false;	
	}		
	forma.action.value = "validarAsociado";		
	forma.submit();			
}

function verImpresionCertificado(forma,tipoImp)
{
    //alert(forma.aporte.value);
	  //Ajustamos el ancho de la ventana
	    var ancho = screen.width-100;
	    //Ajustamos el alto de la ventana
	    //var alto  = (screen.height/2)+50;
	    var alto  = screen.height-200;
	    //Llamamos la funcion que abre la ventana
	    var tipoImpIn = 1; 
	    if(tipoImp)
	    	tipoImpIn = tipoImp;
	    abrirVentana("imprimirCertificado.php","?id=" + forma.id.value + "&nombreId=" + forma.nombreId.value +
		"&nombre=" + forma.nombre.value + "&aporte=" + forma.aporte.value + "&tipoImp=" + tipoImpIn, "Certificado"+tipoImpIn, ancho, alto, 0);
}

function modificarFirmante(forma) {	
	if (forma.txt_nombre.value == ''){	
		alert("Debe ingresar el nombre del Firmante");
		return false;	
	}
	if (forma.txt_cargo.value == ''){	
		alert("Debe ingresar el cargo del Firmante");
		return false;	
	}		
	forma.action.value = "modificarFirmante";		
	forma.submit();			
}

