// This module on PenguinBlog3.
// Created by Orikasa,Tomohiro.
var pb_accesslog = {
	// Logging
	logging : function () {
		id = 'accesslog';
		node = document.getElementById(id);
		if (!node) throw id+" isn't found";

		if (isHTTPreq) {
			var url = "/log/?l="+document.body.innerHTML.length+'&amp;r='+escape(document.referrer);
			pb_accesslog.touchLogger(node,url);
		} else {
			node.innerHTML = ''; // oldOpera, MacIE5...
		}
	},
	touchLogger : function(node,url) {
		var xml = new JKL.ParseXML.Text(url);
		var func = function (data) {
			pb_accesslog.viewHTML(node,data);
		}
		xml.async(func);
		xml.parse();
	},
	viewHTML : function(node,data) {
		node.innerHTML = data;
	}
}
