 					});
 					event.preventDefault();
 				});
-				
+
 				$('.LotteryForm').submit(function(event) {
 					$.ajax({
 						type: "POST",

				};

				$('.lotto-ui').virtualNumpad();
				
				$('.ui2').virtualNumpad(function(value, field) {
					var game = field.data("game"), value = nf( field.data("value"), "num" );
					var $start = nf( $('input[name="dhsc_g' + game + '_start"]').val(), "num" );
					var $end = nf( $('input[name="dhsc_g' + game + '_end"]').val(), "num" );
					var $qty = nf( $('input[name="dhsc_g' + game + '_qty"]').val(), "num" );
					var $total = $('.dhsc_g' + game + '_total');
					if ($('input[name="dhsc_g' + game + '_start"]').val().length > 0 && $('input[name="dhsc_g' + game + '_end"]').val().length > 0)
						$total.val( nf( ($end - $start) * value, "str" ) );
						$('input[name="dhsc_g' + game + '_qty"]').val($end - $start);
					dc.dhsc_total = 0;
					for (var i = 1; i <= 8; i++) {
						dc.dhsc_total += nf($('.dhsc_g' + i + '_total').val(), "num");
					}
				}, { forceCallback: true });
				
				$('.ui').virtualNumpad(function(value) {
					dc.dhcid_subtotal = 0;
					$('.ui').each(function(i, e) {

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

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