il problema è che il controllo è da inserire in una serie di controlli già previsti per altri campi dello stesso form:come inserisco quanto da te suggerito???? :master:codice:<script language="javascript"> <!-- function submitIt(theform) { if (!theform.ID_UOAT.value.length) { alert("Il campo UOAT è obbligatorio."); theform.ID_UOAT.focus(); return(false); } if (!theform.ID_BLOC.value.length) { alert("Il campo BLOC è obbligatorio."); theform.ID_BLOC.focus(); return(false); } if (!theform.ID_CAT.value.length) { alert("Il campo CAT è obbligatorio."); theform.ID_CAT.focus(); return(false); } // Abilita l'invio del FORM return(true); } //--> </script> <form method="POST" action="Insertx.asp" onsubmit="return(submitIt(this));">