var buding = {};

buding = {
    bd: {},
    loading: (function(_requestURL) {
        new Ajax.Request(_requestURL, {
            method:"get",
            onSuccess: function(transport) {
                var response = transport.responseText || "";
                if (response != "") {//alert(response);
                    buding.bd = JSON.parse(response);
                    buding.showinfo(["code","md5","size","b_size","buding","b_time","b_intru","b_name","time","intru"]);
                } else {
                    alert("返回数据为空！");
                }
                delete response;
            },
            onFailure: function() {
                alert('发生错误');
            },
            onException:function(rquest, exception) {
                alert('Something went Error:' + exception.message);
            }
        });
    }),

    showinfo: (function(lists) {
        for (var i = 0; i < lists.length; i++) {
            //alert($("_" + lists[i]));
            try {
                if ($("_" + lists[i]))$("_" + lists[i]).innerHTML = buding.bd[lists[i]];
            } catch(e) {}
        }
    })
};
