﻿function setTipo() {
	var tipi = new Array("V", "A", "I", "T", "C", "O");
	var co = window.document.getElementById("ctl00_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_Li_Cat" + tipi[i]);
			var cocit = window.document.getElementById("ctl00_Li_Cit" + tipi[i]);
			var cozon = window.document.getElementById("ctl00_Li_Zone" + tipi[i]);
			if (sel == tipi[i]) {
				if (cocat != null) { cocat.style.display = "inline"; }
				if (cocit != null) { cocit.style.display = "inline"; }
				if (cozon != null) { cozon.style.display = "inline"; }
			}
			else {
				if (cocat != null) { cocat.style.display = "none"; }
				if (cocit != null) { cocit.style.display = "none"; }
				if (cozon != null) { cozon.style.display = "none"; }
			 }
		}
	}
}

