function markHelpfulReview(A,B){if((A==null)){throw"getCommentsAjax must have a reviewId."
}if((B==null)){throw"getCommentsAjax must have a reviewId."
}var D={success:markHelpfulReviewCallback,failure:markHelpfulReviewCallback};
var C;
C=YAHOO.util.Connect.asyncRequest("POST","/reviews/markHelpfulReviewAjax.htm?reviewId="+encodeURIComponent(A)+"&helpful="+encodeURIComponent(B),D,null);
return false
}function markHelpfulReviewCallback(response){if((response!=null)&&(response.responseText.length>0)){var result=eval("("+response.responseText+")");
if(result.reviewId!=null){var messageBlock=id("helpful_"+result.reviewId);
if(messageBlock){messageBlock.innerHTML="Thanks for your feedback."
}messageBlock=id("helpfulSummary_"+result.reviewId);
var countBlock=id("helpfulCount_"+result.reviewId);
var totalBlock=id("helpfulTotal_"+result.reviewId);
if(messageBlock&&countBlock&&totalBlock){if(result.helpful){countBlock.innerHTML=(countBlock.innerHTML-0)+1
}totalBlock.innerHTML=(totalBlock.innerHTML-0)+1;
messageBlock.style.display="block"
}}else{throw"markHelpfulReviewCallback - missing response."
}}else{throw"markHelpfulReviewCallback - missing response."
}};