/**
 * Author: Olexandr Tarasiuk
 * Date: 01.04.2009
 * Version: 1.0.0
 * @Required /scripts/net/integrio/scripting/ajax/AjaxResponse.js
 */
function AjaxResponse(id) {
    this.sender = null;
    this.parameters = new Array();
    this.commit = function() {
        var req = AjaxRequest.REQUESTS["req_" + id];
        document.body.removeChild(req.div);
        this.sender = req.sender;
        req.onSuccess(this);
        delete AjaxRequest.REQUESTS["req_" + id];
    };
    this.getParameter = function(name) {
        return this.parameters[name]; 
    };
}