/*
 * jQuery postjson
 * 
 * Copyright (c) 2008 Łukasz Świerżewski
 * Licensed under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 * @version 1.0.0
 * @author Łukasz Świerżewski
 * @mailto lukasz at zirpe dot com
 */

$.postjson = function (a_url, a_data, a_beforeSend, a_success, a_error) {
 $.ajax({
  type: 'POST',
  url: a_url,
  data: a_data,
  dataType: 'json',
  beforeSend: a_beforeSend,
  success: a_success,
  error: a_error
 });
}
