 				<tr>
 					<th align="right">Scratchcards</th>
 					<td>
-						<input type="text" name="lotto_sc" class="money lotto-ui" placeholder="GBP">
+						<input type="text" name="lotto_sc" class="money lotto-ui" placeholder="GBP" value="#DecimalFormat(totalSC)#">
 					</td>
 				</tr>
 

					<th>Qty</th>
					<th>Total</th>
				</tr>

				<tr>
					<th>1</th>
					<th>20</th>
					<th>&pound;10</th>

					<td>
						<input type="text" name="dhsc_g1_start" data-qty="20" data-value="10" data-game="1" data-maximum="19" data-minimum="0" data-wholenumber="true" class="money ui2" placeholder="##" value="#today.dhsc_g1_start#">
					</td>

					<td>
						<input type="text" name="dhsc_g1_end" data-qty="20" data-value="10" data-game="1" data-maximum="19" data-minimum="0" data-wholenumber="true" class="money ui2" placeholder="##" value="#today.dhsc_g1_end#">
					</td>

					<td>
						<input type="text" name="dhsc_g1_qty" data-qty="20" data-value="10" data-game="1" data-maximum="19" data-minimum="0" data-wholenumber="true" class="money ui2" placeholder="Qty">
					</td>

					<td>
						<input type="text" name="dhsc_g1_total" class="money dhsc_g1_total" placeholder="GBP">
					</td>
				</tr>

				<tr>
					<th>2</th>
					<th>40</th>
					<th>&pound;5</th>

					<td>
						<input type="text" name="dhsc_g2_start" data-qty="40" data-value="5" data-game="2" data-maximum="39" data-minimum="0" data-wholenumber="true" class="money ui2" placeholder="##" value="#today.dhsc_g2_start#">
					</td>

					<td>
						<input type="text" name="dhsc_g2_end" data-qty="40" data-value="5" data-game="2" data-maximum="39" data-minimum="0" data-wholenumber="true" class="money ui2" placeholder="##" value="#today.dhsc_g2_end#">
					</td>

					<td>
						<input type="text" name="dhsc_g2_qty" data-qty="40" data-value="5" data-game="2" data-maximum="39" data-minimum="0" data-wholenumber="true" class="money ui2" placeholder="Qty">
					</td>

					<td>
						<input type="text" name="dhsc_g2_total" class="money dhsc_g2_total" placeholder="GBP">
					</td>
				</tr>

				<tr>
					<th>3</th>
					<th>40</th>
					<th>&pound;5</th>

					<td>
						<input type="text" name="dhsc_g3_start" data-qty="40" data-value="5" data-game="3" data-maximum="39" data-minimum="0" data-wholenumber="true" class="money ui2" placeholder="##" value="#today.dhsc_g3_start#">
					</td>

					<td>
						<input type="text" name="dhsc_g3_end" data-qty="40" data-value="5" data-game="3" data-maximum="39" data-minimum="0" data-wholenumber="true" class="money ui2" placeholder="##" value="#today.dhsc_g3_end#">
					</td>

					<td>
						<input type="text" name="dhsc_g3_qty" data-qty="40" data-value="5" data-game="3" data-maximum="39" data-minimum="0" data-wholenumber="true" class="money ui2" placeholder="Qty">
					</td>

					<td>
						<input type="text" name="dhsc_g3_total" class="money dhsc_g3_total" placeholder="GBP">
					</td>
				</tr>

				<tr>
					<th>4</th>
					<th>60</th>
					<th>&pound;3</th>

					<td>
						<input type="text" name="dhsc_g4_start" data-qty="60" data-value="3" data-game="4" data-maximum="59" data-minimum="0" data-wholenumber="true" class="money ui2" placeholder="##" value="#today.dhsc_g4_start#">
					</td>

					<td>
						<input type="text" name="dhsc_g4_end" data-qty="60" data-value="3" data-game="4" data-maximum="59" data-minimum="0" data-wholenumber="true" class="money ui2" placeholder="##" value="#today.dhsc_g4_end#">
					</td>

					<td>
						<input type="text" name="dhsc_g4_qty" data-qty="60" data-value="3" data-game="4" data-maximum="59" data-minimum="0" data-wholenumber="true" class="money ui2" placeholder="Qty">
					</td>

					<td>
						<input type="text" name="dhsc_g4_total" class="money dhsc_g4_total" placeholder="GBP">
					</td>
				</tr>

				<tr>
					<th>5</th>
					<th>80</th>
					<th>&pound;2</th>

					<td>
						<input type="text" name="dhsc_g5_start" data-qty="80" data-value="2" data-game="5" data-maximum="79" data-minimum="0" data-wholenumber="true" class="money ui2" placeholder="##" value="#today.dhsc_g5_start#">
					</td>

					<td>
						<input type="text" name="dhsc_g5_end" data-qty="80" data-value="2" data-game="5" data-maximum="79" data-minimum="0" data-wholenumber="true" class="money ui2" placeholder="##" value="#today.dhsc_g5_end#">
					</td>

					<td>
						<input type="text" name="dhsc_g5_qty" data-qty="80" data-value="2" data-game="5" data-maximum="79" data-minimum="0" data-wholenumber="true" class="money ui2" placeholder="Qty">
					</td>

					<td>
						<input type="text" name="dhsc_g5_total" class="money dhsc_g5_total" placeholder="GBP">
					</td>
				</tr>

				<tr>
					<th>6</th>
					<th>80</th>
					<th>&pound;2</th>

					<td>
						<input type="text" name="dhsc_g6_start" data-qty="80" data-value="2" data-game="6" data-maximum="79" data-minimum="0" data-wholenumber="true" class="money ui2" placeholder="##" value="#today.dhsc_g6_start#">
					</td>

					<td>
						<input type="text" name="dhsc_g6_end" data-qty="80" data-value="2" data-game="6" data-maximum="79" data-minimum="0" data-wholenumber="true" class="money ui2" placeholder="##" value="#today.dhsc_g6_end#">
					</td>

					<td>
						<input type="text" name="dhsc_g6_qty" data-qty="80" data-value="2" data-game="6" data-maximum="79" data-minimum="0" data-wholenumber="true" class="money ui2" placeholder="Qty">
					</td>

					<td>
						<input type="text" name="dhsc_g6_total" class="money dhsc_g6_total" placeholder="GBP">
					</td>
				</tr>

				<tr>
					<th>7</th>
					<th>160</th>
					<th>&pound;1</th>

					<td>
						<input type="text" name="dhsc_g7_start" data-qty="160" data-value="1" data-game="7" data-maximum="159" data-minimum="0" data-wholenumber="true" class="money ui2" placeholder="##" value="#today.dhsc_g7_start#">
					</td>

					<td>
						<input type="text" name="dhsc_g7_end" data-qty="160" data-value="1" data-game="7" data-maximum="159" data-minimum="0" data-wholenumber="true" class="money ui2" placeholder="##" value="#today.dhsc_g7_end#">
					</td>

					<td>
						<input type="text" name="dhsc_g7_qty" data-qty="160" data-value="1" data-game="7" data-maximum="159" data-minimum="0" data-wholenumber="true" class="money ui2" placeholder="Qty">
					</td>

					<td>
						<input type="text" name="dhsc_g7_total" class="money dhsc_g7_total" placeholder="GBP">
					</td>
				</tr>

				<tr>
					<th>8</th>
					<th>160</th>
					<th>&pound;1</th>

					<td>
						<input type="text" name="dhsc_g8_start" data-qty="160" data-value="1" data-game="8" data-maximum="159" data-minimum="0" data-wholenumber="true" class="money ui2" placeholder="##" value="#today.dhsc_g8_start#">
					</td>

					<td>
						<input type="text" name="dhsc_g8_end" data-qty="160" data-value="1" data-game="8" data-maximum="159" data-minimum="0" data-wholenumber="true" class="money ui2" placeholder="##" value="#today.dhsc_g8_end#">
					</td>

					<td>
						<input type="text" name="dhsc_g8_qty" data-qty="160" data-value="1" data-game="8" data-maximum="159" data-minimum="0" data-wholenumber="true" class="money ui2" placeholder="Qty">
					</td>

					<td>
						<input type="text" name="dhsc_g8_total" class="money dhsc_g8_total" placeholder="GBP">
					</td>
				</tr>
			</table>

			<input type="submit" class="appbtn" value="Continue">

<cftry>
	<cfif NOT StructKeyExists(session,"till")>
		Your session has timed out, please log-in again.
		<cfexit>
	</cfif>
	<cfscript>
		dayHeader = new App.DayHeader();
		zCash = dayHeader.zCash();
		lottoDraws = dayHeader.lottoDraws();
		lottoPrizes = dayHeader.lottoPrizes();
		scratchPrizes = dayHeader.scratchPrizes();
		today = dayHeader.today();
	</cfscript>
	<cfoutput>
		<script>
			$(document).ready(function(e) {
