
function Ctrl_form(theForm,j)
{k=0
for (i=j-1;i>=0;i--)
{
  
  st = theForm.elements[i].name.toString();
  if (st.substring(0,1)=="*")
  {
    if (theForm.elements[i].value == "")
      {
        alert("Inserire un valore per il campo \" " + theForm.elements[i].name + " \".");
        theForm.elements[i].focus();
        k=k+1
      }
  }
  }
  if (k>0) return (false);
}


