﻿function setTipo() {
    var co = window.document.getElementById("ctl00_Li_Tip");
    var cov = window.document.getElementById("ctl00_Li_CatV");
    var coa = window.document.getElementById("ctl00_Li_CatA");
    var coi = window.document.getElementById("ctl00_Li_CatI");
    var com = window.document.getElementById("ctl00_Li_CatM");
    var citv = window.document.getElementById("ctl00_Li_CitV");
    var cita = window.document.getElementById("ctl00_Li_CitA");
    var citi = window.document.getElementById("ctl00_Li_CitI");
    var citc = window.document.getElementById("ctl00_Li_CitC");
    var citm = window.document.getElementById("ctl00_Li_CitM");

    if (co != null) {
        var sel = co.options[co.selectedIndex].value;
        if (sel == "V") { cov.style.display = "inline"; citv.style.display = "inline"; } else { cov.style.display = "none"; citv.style.display = "none"; }
        if (sel == "A") { coa.style.display = "inline"; cita.style.display = "inline"; } else { coa.style.display = "none"; cita.style.display = "none"; }
        if (sel == "I") { coi.style.display = "inline"; citi.style.display = "inline"; } else { coi.style.display = "none"; citi.style.display = "none"; }
        if (sel == "C") { citc.style.display = "inline"; } else { citc.style.display = "none"; }
        if (sel == "M") { com.style.display = "inline"; citm.style.display = "inline"; } else { com.style.display = "none"; citm.style.display = "none"; }
    }
}
