function calcola_prob()
{
if(document.quota_prob.quota.value>1)
{
prob_ins=(1/document.quota_prob.quota.value)*100;
tot=Math.round(prob_ins*100)/100;
document.quota_prob.prob.value=tot;
}
else
{
alert('Devi inserire un numero maggiore di 1');
}
}
function calcola_quota()
{
if(document.quota_prob2.prob2.value>0)
{
quota_ins=(100/document.quota_prob2.prob2.value);
tot2=Math.round(quota_ins*100)/100;
document.quota_prob2.quota2.value=tot2;
}
else
{
alert('Devi inserire un numero maggiore di 0');
}
}
function calcola_importo()
{
if(document.quota_prob3.q_ev.value>1 && document.quota_prob3.my_perc.value>0)
{
imp1=((document.quota_prob3.q_ev.value*(document.quota_prob3.my_perc.value/100))-1)/(document.quota_prob3.q_ev.value-1);
imp2=Math.round(imp1*10000)/100;
document.quota_prob3.importo.value=imp2;
}
else
{
alert('Dati non integri');
}
}
