function magic(command,max) {
  var max = (max == null) ? "-1" : max;
  new Ajax.Request("rpc/magic.php?command="+command+"&max="+max,
    {
      method:"post",
      onSuccess: function(xml) { }
    });
}
