﻿function setTipo() {
	var tipi = new Array("V", "A", "C", "I", "T");
	var co = window.document.getElementById("ctl00_cp1_Li_Tip");
    if (co != null) {
    	var sel = co.options[co.selectedIndex].value;
		for (var i = 0; i < tipi.length; i++) {
		    var cocat = window.document.getElementById("ctl00_cp1_Li_Cat" + tipi[i]);
		    var cocit = window.document.getElementById("ctl00_cp1_Li_Cit" + tipi[i]);
			if (sel == tipi[i]) {
				if (cocat != null) { cocat.style.display = "inline"; }
				if (cocit != null) { cocit.style.display = "inline"; }
			}
			else {
				if (cocat != null) { cocat.style.display = "none"; }
				if (cocit != null) { cocit.style.display = "none"; }
			 }
		}
	}
}

