function price () {
	var colour = document.dleaflets.colour.value;
	var weight = document.dleaflets.weight.value;
	if (colour == "4/0" || colour == "1/1") { priceround ((30 + (50 * weight)), 1) } else if (colour == "4/1") { priceround ((35 + (50 * weight)), 1) } else if (colour == "4/4") { priceround ((40 + (50 * weight)), 1) } else if (colour == "1/0") { priceround ((25 + (50 * weight)), 1) }
	if (colour == "4/0" || colour == "1/1") { priceround ((35 + (100 * weight)), 2) } else if (colour == "4/1") { priceround ((40 + (100 * weight)), 2) } else if (colour == "4/4") { priceround ((45 + (100 * weight)), 2) } else if (colour == "1/0") { priceround ((27.5 + (100 * weight)), 2) }
	if (colour == "4/0" || colour == "1/1") { priceround ((50 + (250 * weight)), 3) } else if (colour == "4/1") { priceround ((55 + (250 * weight)), 3) } else if (colour == "4/4") { priceround ((60 + (250 * weight)), 3) } else if (colour == "1/0") { priceround ((40 + (250 * weight)), 3) }
	if (colour == "4/0" || colour == "1/1") { priceround ((65 + (500 * weight)), 4) } else if (colour == "4/1") { priceround ((70 + (500 * weight)), 4) } else if (colour == "4/4") { priceround ((75 + (500 * weight)), 4) } else if (colour == "1/0") { priceround ((55 + (500 * weight)), 4) }
	if (colour == "4/0" || colour == "1/1") { priceround ((88 + (1000 * weight)), 5) } else if (colour == "4/1") { priceround ((93 + (1000 * weight)), 5) } else if (colour == "4/4") { priceround ((98 + (1000 * weight)), 5) } else if (colour == "1/0") { priceround ((73 + (1000 * weight)), 5) }
	if (colour == "4/0" || colour == "1/1") { priceround ((117 + (2000 * weight)), 6) } else if (colour == "4/1") { priceround ((152 + (2000 * weight)), 6) } else if (colour == "4/4") { priceround ((167 + (2000 * weight)), 6) } else if (colour == "1/0") { priceround ((97 + (2000 * 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
	}
}
