// JavaScript Document
function testResults(form) {
								f = document.getElementById('myform')
								chequeVal = f.inputbox.value;
								var IsFound = /^-?\d+$/.test(chequeVal);
								if(IsFound) {
									threeSave = (chequeVal / 100) * 3;
									threeSave = Math.round(threeSave);
									fiveSave = (chequeVal / 100) * 5;
									fiveSave = Math.round(fiveSave);
									finalSave = ((chequeVal / 100) * 5)*12;
									finalSave = Math.round(finalSave);
									divSave = document.getElementById('savingsTable')
									divSave .style.display = 'block';
									divSave.innerHTML = "<h2>You could SAVE up to:</h2><table cellspacing='0' cellpadding='0' border='0' width='100%'><tr class='fRowTitle'><td>Value of Cheque</td><td>3% commission fee. <br />You give up:</td><td>5% commission fee. <br />You give up:</td><td>With Cashplus you <br />save up to a year</td></tr><tr style='font-size: 1.5em;'><td>&pound;" + chequeVal + "</td><td>&pound;" + threeSave + "</td><td>&pound;" + fiveSave + "</td><td><b>&pound;" + finalSave + "</b></td></tr></table><p align='right'><a onclick='hideFees()' href='#focusFees' name='focusFees'>hide calculator</a></p>";
									return;
								} else {
									alert('Please enter your cash amount in pounds \n\nfor example:\n&pound;1,000.00 would be "1000" \n&pound;1000.50 would be "1000"');
								}
							}
							
							
function hideFees() {
	var divState = document.getElementById('savingsTable');
	divState .style.display = 'none';
	return;
}							