// Przesyla glos ajaxem
function Moderate(id) {

new Ajax.Request(ajaxModerate,
  {
    method:'post',
    parameters: {id: id},
    onSuccess: function(transport){
      var response = transport.responseText;
      eval(response);
      
    },
    onFailure: function(){ alert('Something went wrong...') }
  });
  return false;
}

function ModerateBox(id) {

new Ajax.Request(ajaxModerate,
  {
    method:'post',
    parameters: {id: id, box: 1},
    onSuccess: function(transport){
      var response = transport.responseText;
      eval(response);
      
    },
    onFailure: function(){ alert('Something went wrong...') }
  });
  return false;
}