function AbilitaFine(TotRif, TotAtt, Importo1, Importo2){
TotCnf = TotAtt+eval(Importo1)+eval(Importo2);
alert(TotCnf);
if (0 == TotRif){
document.QuadrIva.Fine.disabled=false;
}else{
document.QuadrIva.Fine.disabled=true;
}
}
Richiamo a funzione:
<INPUT TYPE=\"Text\" NAME=\"Imponibile\" VALUE=\"\" SIZE=\"16\" MAXLENGTH=\"15\" ONBLUR=\"AbilitaFine('$TotDoc','".$VetSumDoc[0]."',this.value,1)\">