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("評価を選択してください。");
		return false;
	}

	if (theform.endusername.value == ""){
		alert("ユーザーネームを入力してください。");	
		theform.endusername.focus();
		return false;
	}
	else if (theform.reviewtitle.value == ""){
		alert("コメント題目を書いてください。");
		theform.reviewtitle.focus();
		return false;
	}
	else if (theform.reviewtext.value == ""){
		alert("コメントを書いてください。.");
		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 > 500){
		alert("レビューの長さは500文字以内になってください。");
		theform.reviewtext.focus();
		return false;
	}
	else return true;
}



