function calcular(gasto){
	
	//alert(document.formadepago.precioTotal.value);
	//alert(gasto);
	
	var precioInicial = document.formadepago.precioTotal.value;
	
	var total = parseFloat(precioInicial) + parseFloat(gasto);
	
	document.formadepago.precioFinal.value = total;
	document.formadepago.gastos.value = gasto;
	document.getElementById('precioFinalTXT').innerHTML = total+" &euro;";
	
	
	//var total = parseFloat(document.getElementById('totalSociales').innerHTML);
	
	
	//alert(total);
	//var total = 0;
	//if (queItem == "libroGoleman"){
	//	if(document.inscripcion.libroGoleman.checked == true) { 
	//		total += parseFloat(8.00);
	//	} else { 
	//		total -= parseFloat(8.00);
	//	}
	//}
	//if (queItem == "comida"){
	//	if(document.inscripcion.comida.checked == true) { 
	//		total += parseFloat(33.35);
	//	} else { 
	//		total -= parseFloat(33.35);
	//	}
	//}
	
	//return true;
	
}



//function calcularTotal(){
//	var precioMatricula = parseFloat(document.inscripcion.precioMatriculaIni.value);
//	var precioSociales = document.getElementById('totalSociales').innerHTML
//	
//	var precioTotal = parseFloat(precioMatricula) + parseFloat(precioSociales);
//	document.getElementById('total').innerHTML = parseFloat(precioTotal);
//	document.inscripcion.precioMatricula.value = parseFloat(precioTotal);
//	return true;
//}
