codice:
function valore(pagamento1)
{
	document.forms[0].paga.value = pagamento1;
	somma();
}
function valore2(pagamento2)
{
	document.forms[0].paga2.value = pagamento2;
	somma();
}

function somma()
{
	var v1 = parseFloat(document.getElementById("Text1").value.replace(/\,/, '.'));
	if(isNaN(v1)) v1 = 0;
	var v2 = parseFloat(document.getElementById("Text2").value.replace(/\,/, '.'));
	if(isNaN(v2)) v2 = 0;
	var v3 = v1 + v2;
	document.getElementById("Text3").value = v3;
	
}