
function Check_Merchant_Radio(theObj)
{
	if(theObj.length < 1) return false;
	for(i=0;i<theObj.length;i++) if(theObj[i].checked) return true;
	return false;
}


function CheckInput_Merchant_Review(theform){
	if (!Check_Merchant_Radio(theform.Score_Quality) || !Check_Merchant_Radio(theform.Score_Features) || !Check_Merchant_Radio(theform.Score_Support) || !Check_Merchant_Radio(theform.Score_Value))
	{
		alert("Please choose the ratings.");
		return false;
	}

	if (theform.endusername.value == ""){
		alert("Please enter a display name.");	
		theform.endusername.focus();
		return false;
	}
	else if (theform.reviewtitle.value == ""){
		alert("Please enter a review title for your review.");
		theform.reviewtitle.focus();
		return false;
	}
	else if (theform.reviewtext.value == ""){
		alert("Please enter full review.");
		theform.reviewtext.focus();
		return false;
	}
/*
	else if (theform.reviewtext.value.length < 200){
		alert("Your review currently does not meet our length criteria. Please edit your review to have a minimum 200 characters in full review text box. Thank you!");
		theform.reviewtext.focus();
		return false;
	}
	else if (theform.reviewtext.value.length > 5000){
		alert("Your review currently does not meet our length criteria. Please edit your review to have a minimum 5000 characters in full review text box. Thank you!");
		theform.reviewtext.focus();
		return false;
	}
*/
	else return true;
}
function CheckInput_Blog(theform) {
	if (!Check_Merchant_Radio(theform.Score_Quality) || !Check_Merchant_Radio(theform.Score_Features) || !Check_Merchant_Radio(theform.Score_Support) || !Check_Merchant_Radio(theform.Score_Value))
	{
		alert("Please choose the ratings.");
		return false;
	}
	else if (theform.BlogTitle.value == ""){
		alert("Please enter a title for your blog.");
		theform.BlogTitle.focus();
		return false;
	}
	else if (theform.BlogContent.value == ""){
		alert("Please enter full content.");
		theform.BlogContent.focus();
		return false;
	}
	else if (theform.Like.value == ""){
		alert("Please enter what you like for your blog.");
		theform.Like.focus();
		return false;
	}
	else if (theform.NotLike.value == ""){
		alert("Please enter what you don\'t like for your blog.");
		theform.NotLike.focus();
		return false;
	}
	else if (theform.OwnedTime.value == "" || theform.OwnedTime.value == "Select Date Range"){
		alert("Please a date range for your blog.");
		theform.OwnedTime.focus();
		return false;
	}
	else return true;
}


