function hideBadDates(obj)
{
	//Dates are recieved as mm/dd/yy
	//split array indexes:
	//	Month = 0
	//	Day = 1
	//	Year = 2
	var s='';
//***************************************************************************************************************************
//		Cycle over each item in the schedule and hide items where the display date is not within the bounds of the event date
//***************************************************************************************************************************
	jQuery(obj).find('.item').each(function(){
		date=jQuery(this).attr('date');
		eventStart=jQuery(this).attr('eventStartDate');
		eventEnd=jQuery(this).attr('eventEndDate');
		date=date.split('/');
		eventStart=eventStart.split('/');
		eventEnd=eventEnd.split('/');

		jDate=new Date(date[0]+'/'+date[1]+'/20'+date[2]);
		jEventStart=new Date(eventStart[0]+'/'+eventStart[1]+'/20'+eventStart[2]);
		jEventEnd=new Date(eventEnd[0]+'/'+eventEnd[1]+'/20'+eventEnd[2]);

		if(jDate<jEventStart || jDate>jEventEnd){
			jQuery(this).hide();
//				s+='The date of '+jDate.toDateString()+' IS NOT between '+jEventStart.toDateString()+' and '+jEventEnd.toDateString()+'\n';
		}
		else{
//				s+='The date of '+jDate.toDateString()+' is between '+jEventStart.toDateString()+' and '+jEventEnd.toDateString()+' ***SHOWN***\n';
		}
	});

//********************************************************************************************************
//		Traverse over each day container, and if all events are set to be hidden, hide the day container
//********************************************************************************************************
	jQuery(obj).find('.dayContainer').each(function(){
		var hideDate=true;
		jQuery(this).find('.item').each(function(){
			var cssDisplay=jQuery(this).css('display');
			if(cssDisplay=='block')
			{
				hideDate=false;
			}
		});
		if(hideDate)
		{
			jQuery(this).hide();
		}
	});
}

