function submitRating(type,ident,rating) {
       
   $result = HTML_AJAX.grab('rate.php?type=' + type + '&id=' + ident + '&rating=' + rating);

	if($result != "TRUE") {

		alert("Unable to rate.\n\nNote: You must be logged in to rate.");

	}else{

		alert("Thank you for adding a Rating");

	}
}

function rateImg(id,rating) {
 
    for (var x = 1; x <= 5 ; x++) {
      var thisstar = document.getElementById(id+x);

      if(x <= rating) {
        thisstar.src = '/new_images/big_star_full.gif';
      }else if(x > rating) {
        if(x-0.5 <= rating) {
          thisstar.src = '/new_images/big_star_half.gif';
        }else{
          thisstar.src = '/new_images/big_star_blank.gif';
        }
      }
    }
}

function submitFightVote(fight,girl) {
       
   $result = HTML_AJAX.grab('fightvote.php?fight=' + fight + '&girl=' + girl);

	if($result != "TRUE") {

		alert("Unable to vote.\n\nNote: You must be logged in to vote.");

	}else{

		alert("Thank you for voting");

	}
}


