$.POST = function(action, values, target) {
  html  = '<form method="post"'+ ((target)?' target="'+ target +'"':'') +' action="'+ action +'" style="display: none;">';

  for (var j in values) {
    if (values[j] && values[j].constructor == Array ) {
		  $.each(values[j], function() {
        html += '<input name="'+ j +'[]" value="'+ this +'" />';
		  });
    } else {
      html += '<input name="'+ j +'" value="'+ values[j] +'" />';
    }
  }

  html += '</form>';

  var form = $(html).appendTo("body");

  $(form).submit();
};
