function getAge(birth)
{
	var now = new Date();

	aSecond = 1000;
	aMinute = aSecond * 60;
	aHour = aMinute * 60;
	aDay = aHour * 24;
	aWeek = aDay * 7;
	aMonth = aDay * 30;

	var age = now.getTime() - birth.getTime();

	if (age < 0) 
	{
		return "not born yet"
	}

	years = (new Date(now.getTime() - aMonth* (birth.getMonth()) )).getFullYear() - (new Date(birth.getTime() - aMonth* (birth.getMonth()) )).getFullYear();

	offsetNow = (new Date(now.getTime() - aDay* (birth.getDate() -1) ));
	offsetBirth = (new Date(birth.getTime() - aDay* (birth.getDate() -1) ));
	if(years > 1)
	{
		months = years *12 + ( offsetNow.getMonth() - offsetBirth.getMonth()) ;
	}
	else
	{
		months = (now.getFullYear() - birth.getFullYear())*12 + ( offsetNow.getMonth() - offsetBirth.getMonth()) ;
	}
	
	agestr = "";
	agestr = agestr + years + " years";
	months2 = months % 12;
	if (months2 > 0)
	{
	    agestr = agestr + " " + months2 + " months";
	}

	return agestr;
}
