

var api = function () {
    function post(func_name, input, callback)
    {
        var data = {"f":func_name, "input":JSON.stringify(input)};
        $.post('api.php', data, callback, "json");
    }
    return {
        'post':post
    };

}();
