function reCalculate() {

	$("#mamount").text("P 0.00");

	
	/*
    $loan_amount=$this->piVars['loan_amount']-$this->piVars['deposit'];
    $period = $this->piVars['repayment_period'] * 12;

    $interest = $interest / 100;

    $payment = sprintf("%01.2f" ,($loan_amount * ($interest / 12 )) / (1 - (pow ( (1 + ($interest / 12)) , -1*$period ))));

    $totalPayments= $period * $payment;
    $totalInterest = $totalPayments - $loan_amount;
    $income = $payment / 0.3;
	
	mamount
	mmonths
	mmrepayments
	mmincome
	mtotinterest
	mtotrepayments
	*/
};

function setupCalc() {
    $("#mloanamount").bind("blur", function(e){
        reCalculate();
      });
    $("#mdeposit").bind("blur", function(e){
        reCalculate();
      });
    $("#minterestrate").bind("blur", function(e){
        reCalculate();
      });
    $("#mperiod").bind("blur", function(e){
        reCalculate();
      });
}

validateFields (){
	
}

