/*-----------------------------------------------------------------------------
.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(getCurrentCount()) + 160750;
		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;
}
