<!-- Get tournament list //-->
function get_t_list()
{
  new Ajax.Request('content/get_news_edit_t_list.php',
  {
    method: 'post',
    parameters: $('edit_news').serialize(),
    onComplete: function(response) {
      $('t_list').update(response.responseText);
    }
  } );
}

<!-- Show comment form //-->
function show_comment_form(nid)
{
  var url = "content/comment_functions.php?nid=" + nid + "&act=show_comment_form";
  new Ajax.Updater('comment_form', url,
  {
    onComplete: function(response) {
      $('comment_form').update(response.responseText);
    }
  } ); 
}

function post_comment(nid)
{
  var url = "content/comment_functions.php?nid=" + nid + "&act=post_comment";
  new Ajax.Updater('comments', url,
  {
    method: 'post',
    parameters: $('comment').serialize(),
    onComplete: function() {
      $('comment_form').update('');
    }
  } ); 
}
