		function validateForm()
		{
			
			var gameReviewMaxLength = 1500;		// game reviews can not exceed this many characters
			var bottomLineMaxLength = 200;		// bottom line can not exceed this length
			
			var year = document.getElementById('form_review_year').value;
			var month = document.getElementById('form_review_month').value;
			var day = document.getElementById('form_review_day').value;
						
			var bottomLine = document.getElementById('form_review_bottomLine').value;
			var gameReview = document.getElementById('form_review_gameReview').value;

			
			if (! validateDate(year, month, day))
			{	alert("Please pick a valid date");
				return false;
			}
			
			if (bottomLine.length < 5)
			{	alert("Please fill out the field entitled, \"The Bottom Line\".");
				return false;
			}

			if (bottomLine.length > bottomLineMaxLength)
			{	alert("The Bottom Line summary is too long. It is currently " + bottomLine.length + " characters long. The maximum size is 300 characters.")
				return false;
			}
			
			if (gameReview.length > gameReviewMaxLength)
			{	alert("Your game review is too long. It is currently " + bottomLine.length + " characters long. The maximum size is 1500 characters.")
				return false;
			}
			
			
			
			
			// leave the month at 0 so that the user has to set the date
			// Choose - Choose Year - Choose Month - Choose Day
			
			// fill in the date this game became bc
			// make sure the date entered is valid
			// make sure the date is after the game became bc

			//alert('Have a nice day');
			return true;
		}
	
		
		
		function validateDate(year, month, day)
		{
				var days = [31,28,31,30,31,30,31,31,30,31,30,31];
				var date_parts = null;
				var rtrn = true;
				
				var date = year + '/' + month + '/' + day;
				
				date_parts = date.match(/^(\d{4})[./-](\d{1,2})[./-](\d{1,2})$/);

				
				if (date_parts)
				{	if (1 <= month && month <= 12)
					{	if (month == 2)
						{	if (year % 4 != 0 ? false : ( year % 100 != 0? true: (year % 1000 != 0? false : true)))
							{	rtrn = (1 <= day && day <= 29);
							}
							else
							{	rtrn = (1 <= day && day <= 28);
							}
						}
						else
						{	rtrn = (1 <= day && day <= days[month -1]);
						}
					}
					else
					{	return false;
					}
				}
				else
				{

					alert('Something is wrong with the date string.');
					rtrn = false;
				}
				return rtrn;
				
			}
			
