
  function reqNews(comment_id) {
    if (comment_id == 0) return false;
    setOnLoad('news_text');
    reqajax(
      'topnews'
      , comment_id
      , new Array('news_title', 'news_author', 'news_text', 'news_comment_count', 'curr_news_id', 'next_news_id', 'prev_news_id', 'news_date', 'news_category')
      , true
    );
    if (document.getElementById('news_comment_add')) {
      document.getElementById('news_comment_add').innerHTML = "";
    }
    if (document.getElementById('news_comments')) {
      document.getElementById('news_comments').innerHTML = "";
    }
  }
  
  function reqNewsComments(comment_id) {
    setOnLoad('news_comments');
    reqajax(
      'newscomments'
      , comment_id
      , new Array('news_comments')
      , true
    );
  }
  
  var activeSearch = null;
  function searchDownloads(query) {
    if (query == "") {
      document.getElementById('dl_search_results').innerHTML = '';
    } else {
      if (activeSearch) {
        activeSearch.abort();
      }
      activeSearch = reqajax(
        'searchdl'
        , query
        , new Array('dl_search_results')
        , true
      );
    }
  }
