// Makes the call and displays the chilifresh ratings
window.executeAjaxReviews = function(elem, currentClass, url, params, target) {
	var aj_tabPanel = new AjaxJspTag.TabPanel(url, {
		parameters: params,
		target: target,
		panelId: "tabPanel",
		source: elem,
		currentStyleClass: currentClass
	});
}

//sets the parameters necessary for calling the chilifresh api
function loadReviews(isbn, action, url) {
	var target = "reviews_" + isbn;
	var params = 'isbn=' + isbn;
	params +=',action='+action;
	executeAjaxReviews(this,'response',url,params, target);	  
}

//sets the parameters necessary for calling the chilifresh api
function loadRecordlistReviews(row, isbn, action, url) {
	var target = "reviews_"+row+"_"+ isbn;
	var params = 'isbn=' + isbn;
	params +=',action='+action;
	executeAjaxReviews(this,'response',url,params, target);	  
}
