var src = 'http://www.ioi-club.jp/bgw/mogura_modx_access/writelog_modx.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';

args += '&send_title=%A5%B5%A5%A4%A5%C8%A5%C8%A5%C3%A5%D7&doc_id=727&webuser_id=&mail_id=&corp_id=';

document.write('<img src="' + src + args + '" />');