Multiple AJAX links on a page: rating articles

Multiple AJAX links on a page: rating articles

Hello!
Here's the problem: we have a blog service at http://oire.org/ (unfortunately, you have to switch manually to English to see the pages displayed in this language).
Each article or blog post can be rated by registered users, so they can get either a Plus or a Minus, increasing or decreasing the rating of the post.
since we are in 2010 and refreshing pages after such a click is not a great thing :-), we decided to make it AJAX using $.get.
Here is the code we use (it's definitively bad on my opinion):

  1. <a href=# onClick='javascript: $.get("votes1.php", { t: <?=$f_ent[Type]?>, p: "1", e: <?=$f_ent[Id]?> },function(html){  
            $("#<?=$idnam?>").html(html);} );  return false;'><img src="/images/plus.gif" Alt="+" border=0></a>&nbsp;


So what we're doing here is passing a lot of parameters using PHP data we received from our database (such as the Id of the blog post etc.).
However, I'd like to make it easier, at the top of the page, where the rest of our jQuery code is.
Any ideas?
Thanks!