// ------------------------------------------------- // Controllo campi nel form edit ricetta // ------------------------------------------------- function vricetta(f) { var msg = ""; if (f.Titolo.value == "") msg += "TITOLO\n"; if (f.Categoria.selectedIndex == -1) msg += "CATEGORIA\n"; if (msg != "") { alert ("I seguenti campi devono essere compilati:\n\n" +msg); return false; } } function RadioCheck(f){ ok = true; for ( i = 0; i < f.length; i ++) { if (f[i].checked == true) { ok = false; } } return ok; }