var src = 'http://art-eng-saito.com/mogura/writelog.php';
var args = '?mode=img';
var ref = parent.document.referrer;
var path = '';
var w, h;
/* ブラウザサイズ */
if (self.innerHeight) {
	w = self.innerWidth;
	h = self.innerHeight;
} else if (document.documentElement && document.documentElement.clientHeight) {
	w = document.documentElement.clientWidth;
	h = document.documentElement.clientHeight;
} else if (document.body) {
	w = document.body.clientWidth;
	h = document.body.clientHeight;
}
w = Math.round((w / 10)) * 10;
h = Math.round((h / 10)) * 10;
/* モニターサイズ */
//w = screen.width;
//h = screen.height;

ref = ref.replace(/(%)/g,"_P_");
ref = ref.replace(/(&)/g,"_A_");
path = path.replace(/(&)/g,"_A_");
args += '&ref='+ref;
args += '&path='+path;
args += '&monitor='+w+'x'+h;
args += '&title='+encodeURI(parent.document.title);
args += '&color='+(navigator.appName != "Netscape" ? screen.colorDepth : screen.pixelDepth);
args += '&cookie='+(navigator.cookieEnabled ? 1 : 2);
args += '&js=1';
document.write('<img src="' + src + args + '" />');