<!-- Begin
function mytest()
{
	var msg;
	var empty_fields = "";
	var invalid_email = "";
	var errors = "";
if ((calc.cost.value == null) || (calc.cost.value == "")) {
				empty_fields += "\n          Motorhome Value.";
			}
if ((calc.deposit.value == null) || (calc.deposit.value == "")) {
				empty_fields += "\n          Deposit Value.";
			}
if ((calc.term.value == null) || (calc.term.value == "")) {
				empty_fields += "\n          Term Value.";
			}
if (isNaN(parseFloat(calc.cost.value))){
	errors += "- The Motorhome value field must be a number";
	errors += ".\n";
	}
if (isNaN(parseFloat(calc.deposit.value))){
	errors += "- The Motorhome deposit field must be a number";
	errors += ".\n";
	}
if (isNaN(parseFloat(calc.term.value))){
	errors += "- The Motorhome term field must be set";
	errors += ".\n";
	}

if(empty_fields || errors) {

	msg = "The form was not submitted because of the following error(s).";
	msg += "Please correct the error(s) and re-submit.\n\n";

	if (empty_fields) {
		msg+= "- The following required field(s) are empty:\n"
			+ empty_fields + "\n";
		if (errors) msg += "\n";
	}
	msg += errors;
	alert(msg);
} else {
var original=(((calc.cost.value-calc.deposit.value)*(1+0.0625*(calc.term.value/12)))/calc.term.value)*100;
var result=Math.round(original)/100;
finance.innerHTML="Finance will approximately be; £" + result + "per month";

}

}
// End -->