 					});
 					event.preventDefault();
 				});
-				
+
 				completedRoutine = function(data) {
 					// Show shop takings
 					$.sidepanel(data);
 				}
-				
+
 				$('.ScratchcardsForm').submit(function(event) {
 					dc.dhsc_form = $(this).serialize();
 					$(this).fadeOut(function() {

					var diff = dc.dhcid_subtotal - zcash;		// check difference
					console.log(dc.dhcid_subtotal + " zcash " + zcash);
					if (Math.abs(diff) < 0.01) diff = 0;	// ignore tiny rounding errors less than 1p
					
					$('.subtotal').val( nf(dc.dhcid_subtotal / 100, "str") );		// show in pounds & pence
					$('.diff').val(nf(diff / 100, "str"));
					
					if (diff != 0)
						$('.cidFace').attr("class", "cidFace icon-sad2 error");
					else
						$('.cidFace').attr("class", "cidFace icon-smile2");
				}, { forceCallback: true });
				
				$('.CashInDrawerForm').submit(function(event) {
					dc.dhcid_form = $(this).serialize();
					$(this).fadeOut(function() {

					});
					event.preventDefault();
				});

				$('.back').click(function(event) {
					var thisForm = $(this).parents('form');
					var prevForm = thisForm.prev('form');
