Hyjax.RankingLog = new Object();
Hyjax.RankingLog.LogWriter = Class.create();
Hyjax.RankingLog.LogWriter.prototype = {
    nodeid:null,
    action:null,
    page  :null,
    act   :null,
    tk    :null,
    b     :null,
    disp  :null,
    initialize: function(nodeid, action, page, act, tk, b, disp) {
        this.nodeid  = new RegExp (nodeid, "i");
        this.action  = action;
        this.page    = page;
        this.act     = act;
        this.tk      = tk;
        this.b       = b;
        this.disp    = disp;
        Hyjax.EventHandler.register(this);
    },
    eClick: function(node) {
        if (node.id.match(this.nodeid)) {
            this.writeLog();
            return true;
        }
    },
    writeLog: function() {
        obj = new Ajax.Request(
            this.action,
            {
                method: 'post',
                parameters: this.makeParameter(),
                onSuccess: function(objHTTP) {
                    ret = objHTTP.responseText;
                }
             }
        );
    },
    makeParameter: function() {
        ret = "__page="+this.page+"&"+
              "act="   +this.act+"&"+
              "tk="    +this.tk+"&"+
              "b="     +this.b+"&"+
              "disp="  +this.disp+"";
        return ret;
    }
}
