/* きのこ雑記標準JavaScriptファイル
   2001.05.11 記
   2005.03.09 追加
   2006.06.08 修正：openのオプションの '' を 'weekly' に修正した
*/

/* 標準のウィンドウ 600×600 ：スクロールバーあり */
function OpenWin(html_file){
	var win=window.open(html_file,'weekly','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=600,height=600');
}
/* 順標準のウィンドウ2 520×400 ：スクロールバーあり */
function OpenWin2(html_file){
	var win2=window.open(html_file,'weekly','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,width=565,height=400');
}
/* 順標準のウィンドウ3 660×500 ：スクロールバーあり */
function OpenWin3(html_file){
	var win3=window.open(html_file,'weekly','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,width=660,height=500');
}
/* 順標準のウィンドウM 600×450サイズの写真を扱う ：スクロールバーあり */
function OpenWinM(html_file){
	var win3=window.open(html_file,'weekly','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,width=630,height=480');
}
/* 順標準のウィンドウL 800×600サイズの写真を扱う ：スクロールバーあり */
function OpenWinL(html_file){
	var win3=window.open(html_file,'weekly','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,width=830,height=630');
}
/* サイズ指定(X, Y)のウインドウ ：スクロールバー無し */
function OpenWinSize(html_file, X, Y){
	var win1=window.open(html_file,'weekly','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,width=' +X+ ',height=' +Y);
}
/* 現在の日時を得て、それを×年×月×日(×)形式で表示する */
function PrintNowDate(){
	var now,y,ya;
	now = new Date();
	ya = new Array("日","月","火","水","木","金","土");
	y = now.getDay();
	year = now.getYear();
	if(year < 2000) { year = year + 1900; }
	document.write("平成",year-1988,"年");
	document.write(now.getMonth()+1,"月",now.getDate(),"日");
	document.write("(", ya[y] + ")");
}
/* 年月日で指定した(今日の雑記)ファイルを別ウインドウに開く
   zakki_index_dailyディレクトリ内部から利用
   2005.3.29追加部分：zakki_index_daily/200?/* ファイルに適用する
 */
function get_tz(year, month, day, ab) {
	//yearの下二桁をえる
	yy =year.substr(2,2);
	tz_name=yy + month + day + ab + "_day.htm";
	window.open("../../zakki_index_daily/" + year + "/"+ tz_name, "", "scrollbars=yes, width=800, height=600");
}
/* 年月日で指定した(今日の雑記)ファイルを別ウインドウに開く
   2005.3.29追加部分：todays_memo.htm、zakki_index/* に適用する
 */
function get_tz_html(year, month, day, ab) {
	//yearの下二桁をえる
	yy =year.substr(2,2);
	tz_name=yy + month + day + ab + "_day.htm";
	window.open("../zakki_index_daily/" + year + "/"+ tz_name, "", "scrollbars=yes, width=800, height=600");
}
