function calcul(form) {
th = eval(form.th.value)
if (th < 8) {
th = 8
}
cons = eval(form.cons)
deb = eval(form.deb.value)
debk = deb * 5
thwt = th - 7 + 3
cath = debk*thwt
ccath = cath / 5000
nit = debk*cons
nnit = nit / 26000
modnit = nnit % 1
modcath = ccath % 1
if (modnit > 0.5 ) {
var anscath = ccath - modcath
}
else {
var anscath = ccath - modcath +1
}
form.anscath.value = anscath
}