function calculateTotal() {
	if (document.getElementById('quantity').value < 1)  {
		alert("You need to enter a number greater than 0");
		return false;
	}
	else {
		var bookprice = 20.00;
		var pap = 2.50;
		var cost;
		var total;
		var pptotal;

		cost = document.getElementById('quantity').value * bookprice;
		pptotal = document.getElementById('quantity').value * pap;
		total = cost + pptotal;
		cost = cost.toFixed(2);
		total = total.toFixed(2);
		pptotal = pptotal.toFixed(2);
		document.getElementById('pptotal').value = pptotal;
		document.getElementById('cost').value = cost;
		document.getElementById('total').value = total;
	}
}