function aggiungi(){
	if (isNaN(parseInt(document.pz.Quantità2.value))) {
		alert("La quantità minima per il prodotto scelto è " + document.pz.Minimo.value + " pz.");
		document.pz.Quantità2.focus();
		document.pz.Quantità2.select();
		return false;
	} else if ( parseInt(document.pz.Quantità2.value) <  parseInt(document.pz.Minimo.value)) {
		alert("La quantità minima per il prodotto scelto è " + document.pz.Minimo.value + " pz.");
		document.pz.Quantità2.focus();
		document.pz.Quantità2.select();
		return false;
	}	
}


function viewsottocat1() {
	document.getElementById('ct1').style.background="#FF9900";
	if (document.getElementById('sottocat1').style.visibility == "visible") {
		document.getElementById('sottocat1').style.visibility = "hidden";
		document.getElementById('sottocat1').style.visibility = "visible";
	} else {
		document.getElementById('sottocat1').style.visibility = "visible";
	}
}
function hidesottocat1() {
	document.getElementById('ct1').style.background="#e6e6e6";
	document.getElementById('sottocat1').style.visibility = "hidden";
}
function oversottocat1() {
	document.getElementById('sottocat1').style.visibility="visible";
	document.getElementById('ct1').style.background="#FF9900";
}
function outsottocat1() {
	document.getElementById('sottocat1').style.visibility="hidden";
	document.getElementById('ct1').style.background="#e6e6e6";
}

function viewsottocat2() {
	document.getElementById('ct2').style.background="#FF9900";
	if (document.getElementById('sottocat2').style.visibility == "visible") {
		document.getElementById('sottocat2').style.visibility = "hidden";
		document.getElementById('sottocat2').style.visibility = "visible";
	} else {
		document.getElementById('sottocat2').style.visibility = "visible";
	}
}
function hidesottocat2() {
	document.getElementById('ct2').style.background="#e6e6e6";
	document.getElementById('sottocat2').style.visibility = "hidden";
}
function oversottocat2() {
	document.getElementById('sottocat2').style.visibility="visible";
	document.getElementById('ct2').style.background="#FF9900";
}
function outsottocat2() {
	document.getElementById('sottocat2').style.visibility="hidden";
	document.getElementById('ct2').style.background="#e6e6e6";
}


