// valildates the supplement review form
function validate_review_form(reviewform)
{

	// check to see if the name is blank
	if (reviewform.headline.value == "")
	{
	alert("Please enter a headline for your review");
	reviewform.headline.focus();
	return (false);
	}
	
	if (reviewform.headline.value.length > 40)
	{
	alert("Your review headline cannot contain more than 40 characters");
	reviewform.headline.focus();
	return (false);
	}
	
	// make sure they choose an option for type
	if (reviewform.effectiveness.selectedIndex == 0)
	{
	alert("Please rate the effectiveness of the supplement");
	reviewform.effectiveness.focus();
	return (false);
	}
	
	// make sure they choose an option for category
	if (reviewform.taste.selectedIndex == 0)
	{
	alert("Please rate the taste of the supplement");
	reviewform.taste.focus();
	return (false);
	}
	
	// make sure they choose an option for category
	if (reviewform.value_for_money.selectedIndex == 0)
	{
	alert("Please rate the value for money of the supplement");
	reviewform.value_for_money.focus();
	return (false);
	}
	
	// make sure they choose an option for category
	if (reviewform.recommend.selectedIndex == 0)
	{
	alert("Please choose whether you'd recomment this supplement to others");
	reviewform.recommend.focus();
	return (false);
	}
	
	// make sure they choose an option for category
	if (reviewform.overall.selectedIndex == 0)
	{
	alert("Please the supplement an overall rating");
	reviewform.overall.focus();
	return (false);
	}
	
	// check to see if the url is blank
	if (reviewform.comments.value == "")
	{
	alert("You must enter a comment that is AT LEAST 25 words long");
	reviewform.comments.focus();
	return (false);
	}
	
	if (reviewform.comments.value.length < 100)
	{
	alert("Your comments are too short. Please add more detailed comments about the supplement.");
	reviewform.comments.focus();
	return (false);
	}
	
}