function checkAge( date, month, year )
{
	var time=new Date();
	var cdate=time.getDate();
	var cmonth=time.getMonth()+1;
	var cyear=time.getFullYear();
	
	var maxAge=13;
	var underage=false;


	if(cyear-year<=maxAge)
	{
		if(cyear-year==maxAge)
		{
			if(cmonth<=month)
			{
				if(cmonth==month)
				{
					if(cdate<date)
					{
						underage=true;
					}
				}
				else
				{
					underage=true;
				}
			}
			else
			{
				underage=true;
			}
		}
		else
		{
			underage=true;
		}
	}

	if( underage )
	{
		return confirm('The Birth year you have just selected, indicates that you are under the age of 13 years.\nThe consent of a parent/guardian is required.\nDo you have permission from your parent/guardian?');
	}
	return true;	
}
