function AuCalc2()
{ 
	var amount,rate,term,minInst,income;

	// validate the Calc2AMount number for all types of inputs
	amount = document.form.Calc2Amount.value;
	if (!(ValidateMessage(amount, "Home Loan Amount")))
		return false;
		
	// validate the Calc2Rate number for all types of inputs
	rate = document.form.Calc2Rate.value;
	if (!(ValidateMessage(rate, "Annual Interest Rate")))
		return false;

		
	// validate the Calc2Term number for all types of inputs
	term = document.form.Calc2Term.value;
	if (!(ValidateMessage(term, "Repayment Term")))
		return false;
	if (parseInt(term) > 240) {
		alert("Please enter a value less than 241.");
		document.form.Calc2Term.focus();
		return false;
	}
	
	amount=document.form.Calc2Amount.value;
	rate=document.form.Calc2Rate.value;
	term=document.form.Calc2Term.value;
	minInst=AuPmt(amount,rate,term);
	income=minInst/0.3;
	document.form.Calc2Paym.value=AuMoney0(minInst);
	document.form.Calc2Income.value=AuMoney0(income);
	return 0;}
  
 function ResetCalc2()
{ document.form.Calc2Amount.value="";
  document.form.Calc2Rate.value=14;
  document.form.Calc2Term.value=240;
  document.form.Calc2Paym.value="";
  document.form.Calc2Income.value="";
  return 0;}

