function addtocount(id,nb) {
	var valNb = parseFloat(nb);
	if (isNaN(valNb)) valNb = 0;
	
	var valT1 = parseFloat(document.getElementById("edit-payment").value);
	if (isNaN(valT1)) valT1 = 0;
	
	if(document.getElementById(""+id+"").checked) document.getElementById("edit-payment").value = valT1+valNb;
	
	if(!document.getElementById(""+id+"").checked) document.getElementById("edit-payment").value = valT1-valNb;
} 