function price () {
	var colour = document.dleaflets.colour.value;
	var weight = document.dleaflets.weight.value;
	if (colour == "4/0") { priceround ((38 + (50 * weight)), 1) } else if (colour == "1/0") { priceround ((19 + (50 * weight)), 1) }
	if (colour == "4/0") { priceround ((50 + (100 * weight)), 2) } else if (colour == "1/0") { priceround ((25 + (100 * weight)), 2) }
	if (colour == "4/0") { priceround ((76 + (250 * weight)), 3) } else if (colour == "1/0") { priceround ((35 + (250 * weight)), 3) }
	if (colour == "4/0") { priceround ((102 + (500 * weight)), 4) } else if (colour == "1/0") { priceround ((52 + (500 * weight)), 4) }
	if (colour == "4/0") { priceround ((136.5 + (750 * weight)), 5) } else if (colour == "1/0") { priceround ((62 + (750 * weight)), 5) }
	if (colour == "4/0") { priceround ((166 + (1000 * weight)), 6) } else if (colour == "1/0") { priceround ((71 + (1000 * weight)), 6) }
}


function priceround (x, y) {
	var z = Math.round(x*100)/10;
	if (Math.round(x) == x) {
	document.getElementById("price" + y).innerHTML = "£" + x + ".00"
	} else if (Math.round(z) == z) {
	document.getElementById("price" + y).innerHTML = "£" + Math.round(x*10)/10 + "0"
	} else {
	document.getElementById("price" + y).innerHTML = "£" + Math.round(x*100)/100
	}
}
