/*-----------------------------------------------------------------------------
.Mac テキストカウンター
                          Copyright (C) 2003 Yuji Okamura, All rights reserved.
-----------------------------------------------------------------------------*/
function writeTextCounter() {
	var	cntText = getCurrentCount();

	// Opera 6.03 on Mac OS X では text が null か undefined になる。
	if (cntText && cntText.length) {
		var cnt = parseInt(cntText) + 18193; // 4/30/2005時点のカウンタ値を加算
		var text = cnt.toString();
		if (typeof(window.document.getElementById) == 'function') {
			window.document.getElementById('CounterDiv').innerHTML = text;
		}
		else if (!browserIs.ns) {
			document.all['CounterDiv'].innerHTML = text;
		}
	}

	return false;
}
