E' possibile passare come parametro ad una funzione il nome di un modulo o di una casella di input?
Ho provato a fare come nell'esempio riportato sotto ma non funziona
<script type="text/jscript">
function ctrl_dato(frmModulo,Nome_Input){
if (document.frmModulo.Nome_Input.value==""){
alert("Inserire il nome");
document.frmModulo.Nome_Input.focus();
return false;
}
return true;
}
</script>
<form method="post" name="frmMod" action="xxxxxxxxx.asp" onSubmit="return ctrl_dato('frmMod','Nome')" >
<input name="Nome" type="text" id="Nome" size="25" maxlength="25" />
.................................................. .............