
/*
  Simplified rateAgain does not determine the Id
*/
function rateAgain(link, update) {
    new Ajax(link, { method: 'get',
        	update: $(update),
        	evalScripts: true }).request();
  } 
/*
function loadRatingDialog(ratingLink, contentId) {
    new Ajax(ratingLink,
      {
        method: 'get',
        update: $("ratingArea_" + contentId),
        evalScripts: true
      }).request();
  }
function rateAgain(ratingAgainLink, contentId) {
    new Ajax(ratingAgainLink,
      {
        method: 'get',
        update: $("ratingArea_" + contentId),
        evalScripts: true
      }).request();
  }
  function postRating(value, contentId, slideRating) {
    var ratingForm = $("ratingForm_" + contentId);
    ratingForm.elements["rating"].value = value;
    if (!isLoggedInForRating(contentId)) {
      if (slideRating) slideRating.slideIn();
      return false;
    } else {
      submitRating(contentId);
      return false;
    }
  }
  function isLoggedInForRating(contentId) {
    var ratingForm = $("ratingForm_" + contentId);
    return ratingForm.elements["username"]
            && ratingForm.elements["username"].value
            && ratingForm.elements["username"].value!="";
  }
  function submitRating(contentId) {
    var args = {
      method: 'post',
      update: $("ratingArea_" + contentId),
      onComplete: function() {
        if (window.loadLoginForm) window.loadLoginForm(); },
      evalScripts: true
    };
    $("ratingForm_" + contentId).send(args);
    return false;
  }
*/