function calcTotalProduct(fullid) {
	var price = parseFloat(document.getElementById(fullid+"_price").firstChild.nodeValue);
	var quantity = parseInt(document.getElementById(fullid).options[document.getElementById(fullid).selectedIndex].value);
	var total = price*quantity;
	document.getElementById(fullid+"_total").value = total;
	recalcAll();
}

function recalcAll() {
	var allInput = document.getElementsByTagName('input');
	var total = 0;
	for (i = 0; i < allInput.length; i++) {
		if (allInput[i].id.indexOf("_total", 0) > 0 && allInput[i].value != "") {
			total = total + parseFloat(allInput[i].value);
		}
	}
	document.getElementById("total").value = total;
}

