'); document.writeln(''); document.writeln('
'); document.writeln(' [JavaScript Top] [Back]
'); document.writeln('
'); document.writeln(''); document.writeln('

'); document.writeln(''); document.writeln(''); document.writeln('・ このコンテンツ/JavaScriptは著作権を留保します。
'); document.writeln('・ このコンテンツ/JavaScriptを改造する場合はオリジナル著作者のCopyrightを残してください。
'); document.writeln('・ このコンテンツ/JavaScriptを個人のコンピュータへダウンロードして個人的に使用するのはバンバンやっちゃってください。
'); document.writeln('・ でも、本ページへのリンクを張る方が便利かも。
'); document.writeln('
'); document.writeln('
'); document.writeln('Copyright (c) 2001-2007 中司浩史(Nakatsukasa, Hiroshi)
'); document.writeln('
'); document.writeln('\n'); } // // queryStringをフォームに埋め込む。 // function fillForm() { pre = getSrchStr("pre" ); if (pre != "") document.form1.preStr.value = pre; post = getSrchStr("post"); if (post != "") document.form1.postStr.value = post; sta = getSrchStr("sta" ); if (sta != "") document.form1.startNum.value = sta; end = getSrchStr("end" ); if (end != "") document.form1.endNum.value = end; cur = getSrchStr("cur" ); if (cur != "") document.form1.curNum.value = cur; datc = getSrchStr("datc"); if (datc == "1" || datc == "true") document.form1.datChk.checked = true; datn = getSrchStr("datn"); if (datn != "") document.form1.datNum.value = datn; fixc = getSrchStr("fixc"); if (fixc == "1" || fixc == "true") document.form1.fixChk.checked = true; fixn = getSrchStr("fixn"); if (fixn != "") document.form1.fixNum.value = fixn; flpc = getSrchStr("autoFlip"); if (flpc == "1" || flpc == "true") document.form1.autoFlip.checked = true; flpn = getSrchStr("flipTime"); if (flpn != "") document.form1.flipTime.value = flpn; wid = getSrchStr("wid" ); if (wid != "") document.form1.widNum.value = wid; hei = getSrchStr("hei" ); if (hei != "") document.form1.heiNum.value = hei; debugWinWrite("datc=", datc); // for DEBUG debugWinWrite("fixc=", fixc); // for DEBUG return ; } // // 自動ページめくり設定 // function clickAutoFlip() { if (document.ctrl.autoFlip.checked) { atID=setTimeout("execAutoFlip('"+nextURLStr4flip+"')",document.ctrl.flipTime.value*1000); } else { if (atID) clearTimeout(atID); // メニューを消去するためのタイマーを解除する。 } return true; } // // 自動ページめくり実行 // function execAutoFlip(baseURL) { var winLocation = baseURL + getFlipParam() ; debugWinWrite(winLocation); // for DEBUG window.location.href = winLocation ; return false; // A のデフォルトアクション (href) を実行させないため false にする。 } // // デバッグ用:子画面サイズ表示 // function debugDisplayInfo() { if (!window.NewWin || (window.NewWin && window.NewWin.closed)) { debugWinWrite("\nAlready closed!"); if (debug>=2) if (NewWin) debugWinWrite("NewWin.closed = " + NewWin.closed); } else { if (is_ie) { // Internet explorer 用 debugWinWrite( "\nlefttop(l,t)=" + NewWin.screenLeft + " , " + NewWin.screenTop + "\ninner(w,h)=" + NewWin.document.body.scrollWidth + " , " + NewWin.document.body.scrollHeight + "\nscreen(w,h)=" + screen.width + " , " + screen.height + "\navail(w,h)=" + screen.availWidth + " , " + screen.availHeight ); } else { // Netscape communicator 、その他 用 debugWinWrite( "\nlefttop(l,t)=" + NewWin.screenX + " , " + NewWin.screenY + "\ninner(w,h)=" + NewWin.innerWidth + " , " + NewWin.innerHeight + "\nouter(w,h)=" + NewWin.outerWidth + " , " + NewWin.outerHeight + "\nscreen(w,h)=" + screen.width + " , " + screen.height + "\navail(w,h)=" + screen.availWidth + " , " + screen.availHeight ); } } } // // デバッグ用:デバッグ画面へ表示 // // ・不定数引数を受け付ける。 例: debugWinWrite('a=' , a , ' b=' , b); // ・window オブジェクト dbgWin の定義は不要。 // ・グローバル変数 debug が 1 以上の時のみ有効。 // // ・必要であればスクリプトの先頭でグローバル変数 debug の定義を行うこと。 // debug = 1; // function debugWinWrite() { if (debug) { var i = 0; var arg = ""; var dbgWin_closed = -1; // for DEBUG // デバッグ画面が開かれていなければ、生成する。 if (!window.dbgWin || (window.dbgWin && window.dbgWin.closed)) { if (debug>=2) if (window.dbgWin) dbgWin_closed = dbgWin.closed; // for DEBUG (新規open前に保存) dbgWinFeature = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1'; if (is_nav4) {dbgWinFeature += ',dependent=1';} if (is_gecko) {dbgWinFeature += ',dialog=1';} // Mozillaではdependentだと常に前面に配置されてしまう為 dbgWinFeature = dbgWinFeature + ',screenX=608,screenY=324,left=608,top=324,width=544,height=480'; dbgWin = window.open('','dbgWin',dbgWinFeature); dbgWin.document.open(); // 構築開始 dbgWin.document.writeln('debugWinWrite: dbgWin created.\n
');	// 初期化
			if (debug>=2) dbgWin.document.writeln('dbgWin.closed=', dbgWin_closed);	// for DEBUG
		}
		dbgWin.focus();

		// 不定数引数結合
		for (i=0; i= 1.2) dbgWin.scrollTo(0, eval('dbgWin.document' + BODYSCRLHEIGHT));
	}
}


// 
// 現在のクライアント上のシステム日付を6桁の数字で表す。
//     例: 1989年01月23日 → 890123
// 
function ConvYYMMDD(dt) {
	var t_year = "00" + dt.getYear();
	t_year = t_year.substring(t_year.length-2, t_year.length);
	var t_month = "00" + (dt.getMonth() + 1);
	t_month = t_month.substring(t_month.length-2, t_month.length);
	var t_date = "00" + dt.getDate();
	t_date = t_date.substring(t_date.length-2, t_date.length);

	return t_year + t_month + t_date;
}

// 
// URLの?以降の文字列の中から指定パラメーターの値を探す。
//   見つからなければ空白を返す。
// 
// 参考文献:http://developer.netscape.com/js/ より一部引用
// 
function getSrchStr(Name) {
	var location_search = unescape(location.search);	// IEでは ISO Lathin 1 エンコードされている為。
	var srch = Name + "="
	if (location_search.length > 0) {
		offset = location_search.indexOf(srch)
		if (offset != -1) {		// if exists
			offset += srch.length
			// set index of beginning of value
			end = location_search.indexOf("&", offset)
			// set index of end of cookie value
			if (end == -1)
				end = location_search.length
			return unescape(location_search.substring(offset, end))
		}
	}
	return "";
}




//-->