function blur(prefix, id, up)
{
   var upButton = document.getElementById(prefix + "Up" + id);
   var downButton = document.getElementById(prefix + "Down" + id);
   
   addClass(up ? upButton : downButton, up ? "yesBlur" : "noBlur");
   upButton.href = downButton.href = "javascript:void(0);";
}

function rateComment(id, up)
{
   blur("commentRating", id, up);
   
   AsyncInclude("/shared/async/postableRating.jsp?type=comment&id=" + id + "&" + (up ? "up" : "down"), "commentRating" + id);
}

function ratePostable(id, typeID, up)
{
   blur("postableRating", id, up);
   
   if (typeID == '30')
   {
      postAsyncOmnitureProp("prop11", (up ? "up" : "down"));
   }
   
   AsyncInclude("/shared/async/postableRating.jsp?type=postable&id=" + id + "&typeID=" + typeID + "&" + (up ? "up" : "down"), "postableRating");
}
