<!--
// Lonnie Lee Best
function GetData(startingBalance, intrestRate, monthlySavingsGoal, years)
{
	var ary = [];
	var months = (years * 12);
	var oDate = new Date();
	var year =  oDate.getFullYear();
	var month = oDate.getMonth() + 2;
	var strMonth;
	var endingBalance = startingBalance;
	var thisMonthsIntrestEarned;	
	for (i = 0; i < months; i++)
	{
		startingBalance = endingBalance;	
		thisMonthsIntrestEarned = ((startingBalance * (intrestRate/100 +1)-startingBalance)/12);
		endingBalance = startingBalance + thisMonthsIntrestEarned + monthlySavingsGoal;
		strMonth = month.toString();
		if(strMonth.length == 1)
		{
			strMonth = '0' + strMonth;
		}
		ary[i] = [strMonth + '-' + year,startingBalance.toFixed(2),thisMonthsIntrestEarned.toFixed(2),monthlySavingsGoal.toFixed(2), endingBalance.toFixed(2)];
		if (month == 12)
		{
			month = 1;
			year++;
		}
		else
		{
			month++;
		}
	}
	return ary.reverse();
}
function MakeNumberic(value)
{
	value = value.toString().replace(/[^0123456789\.]/g,'');
	value = value.split('.',3).slice(0,2).join('.');
	if(isNaN(parseFloat(value)))
	{
		return 0;
	}
	else
	{
		return (value * 1);
	}	
}

// -->