/*
Desc.: Ajax requester func to update the iframe with the specified review.

In:
   iiRevCommonId: Id of review to display.
   iiEditCtlId:
*/
function reviewEvalUpdateRequest(iiRevCommonId, iiEditCtlId){
   var url = csServerUrlRoot + '/review_eval_update';

   var myAjax = new Ajax.Updater(
   csIdReviewEvalFrame,
   url,
   {
      method: 'post',
      parameters: {rev_common_id: iiRevCommonId, rev_edit_ctl_data_id: iiEditCtlId, is_hist: 0, page: 0}
   });
   
}

/*
Desc.: Ajax requester func to update the iframe with the specified review.

In:
   iiRevCommonId: Id of review hist to display.
   iiVers: The version of the rev common hist.
*/
function reviewHistEvalUpdateRequest(iiRevCommonId, iiVers){
   var url = csServerUrlRoot + '/review_eval_update';

   //Set the version input box
   //document.getElementById(csIdCurVers).value = iiVers;
   $(csIdCurVers).value = iiVers;
   $(csIdCurHist).value = iiRevCommonId;
   
   var myAjax = new Ajax.Updater(
   csIdReviewEvalFrame,
   url,
   {
      method: 'post',
      parameters: {rev_common_id: iiRevCommonId, rev_edit_ctl_data_id: 0, is_hist: 1, page: 0}
   });
   
}

function reviewEvalPropUpdateRequest(iiRevPropId){
   var url = csServerUrlRoot + '/review_eval_prop_update';

   var myAjax = new Ajax.Updater(
   csIdReviewEvalFrame,
   url,
   {
      method: 'post',
      parameters: {rev_prop_id: iiRevPropId, page: 0}
   });
   
}