function changeValues(form,weightPounds,fixedPrice,productWeight)
{
	qtyOption = form.qty.options[form.qty.selectedIndex].value

	if(weightPounds == 'NA')
	{
		newTotal = form.total.value = qtyOption * fixedPrice
	}
	else
	{
		if(productWeight == 0)
		{
			qtyLength = qtyOption.length;

			lengthType = qtyOption.substr(qtyLength-2, 2);

			if(lengthType == 'kg')
			{
				thisQty = qtyOption.substr(0,qtyLength-2);

				newTotal = thisQty * fixedPrice; //work out cost

				weightPounds = thisQty * 2.20462262;

				weightPounds = weightPounds.toFixed(2);

				form.wip.value = weightPounds
			}
			else
			{
				thisQty = qtyOption.substr(0,qtyLength-1);

				gramFixedPrice = fixedPrice / 1000;

				newTotal = gramFixedPrice * thisQty; //work out cost

				weightPounds = thisQty * 0.00220462262;

				weightPounds = weightPounds.toFixed(2);

				form.wip.value = weightPounds
			}
		}
		else
		{
			newTotal = form.total.value = qtyOption * fixedPrice

			weightPounds = productWeight * 0.00220462262;

			weightPounds = weightPounds * qtyOption;

			weightPounds = weightPounds.toFixed(2);

			form.wip.value = weightPounds
		}
	}

	newTotal = newTotal.toFixed(2);

	form.total.value = newTotal
}