

var old;

function test(formcur) {
	old = parseInt(formcur.count.value);
	
}


function conversion(id, price, formcur, list) {
	var size = parseInt(formcur.count.value);
	var sum = price * size;
	document.getElementById(id).childNodes[0].nodeValue = sum;
	var temp = (size - old);
	document.getElementById('test1').childNodes[0].nodeValue = parseInt(document.getElementById('test1').childNodes[0].nodeValue) + temp;
	temp = price * (size - old);
	document.getElementById('test2').childNodes[0].nodeValue = parseInt(document.getElementById('test2').childNodes[0].nodeValue) + temp;
}
