function executeAjaxPost(post_url, post_data, response_type, callback, error_callback, context) {
    $.ajax({
        data: post_data,
        type: 'POST',
        dataType: response_type,
        error: function(XMLHttpRequest, textStatus, errorThrown) {
            if (typeof error_callback == 'function')
                error_callback(XMLHttpRequest, textStatus, errorThrown, context);
            else
                alert('An unexpected error occured while processing your request');
        },
        success: function(data, textStatus) {
            if (typeof callback == 'function')
                callback(data, context);
        },
        url: post_url
    });
}