buenas jgmartinromero,
Tenias mal la sintaxis.
codigo modificado:
Código Javascript
:
Ver originalfunction mostrar_ocultar() {
if (document.formulario.accion.value == "0"){
document.getElementById('nombre_capa').style.display = "none";
}else{
if (document.formulario.accion.value > "0" && document.formulario.accion.value < "4") {
document.getElementById('nombre_capa').style.display = "block";
}else{
if(document.formulario.accion.value == "4"){
document.getElementById('nombre_capa_general').style.display = "block";
}
}
}
}
saludos