codice:
function togli(valore){
  valore = parseFloat(valore);
  var valore1 = parseFloat(document.getElementById('countmb').value);
  var risultato = fix(valore1 - valore);
  document.getElementById('countmb').value=risultato;
  document.getElementById('countphoto').value=document.getElementById('countphoto').value-1;
}
function fix(number, dec)
{ 
	var n =(dec >=0)? Math.pow(10,dec) : 1e10; 
	return Math.round(number*n)/n; 
}