function verif(val,maxval,name) {
if ( isNaN(val) ) name.value=0;
else {if ( Math.round(val)> Math.round(maxval/2)) name.value=Math.round(maxval/2);
     else name.value=Math.round(val) ; }
	
}



