function dobCheck (yearToCheck, month, day, year){

	var theDate = new Date();
	var currentYear = theDate.getFullYear();
	var currentMonth = theDate.getMonth();
	var currentDay = theDate.getDate();
	
	if((currentYear - year) > 13){
		return true;
	}else if((currentYear - year) < 13){
		return false;
	}else{
		if((currentMonth - month) > 0){
			return true;
		}else if((currentMonth - month) < 0){
			return false;
		}else{
			if((currentDay - day) >= 0){
				return true;
			}else{
				return false;
			}
		}
	}
}

