//グローバル変数を定義
		var os,brw,ver,f_year;

// ブラウザのバージョンチェック
	function vercheck(n) {

		 document.write( "<center><font size=2 color=#ffffff>");
		with (navigator) {
			os = userAgent.substring (userAgent.indexOf("(") + 1,
				userAgent.indexOf(";"));
			ver = appVersion.substring (0,appVersion.indexOf("(") );
		 document.write( userAgent,"　");
		}

		document.write("ブラウザ：",navigator.appName + ver,"<br>");
		document.write( "</font></center>");

		ver = navigator.appVersion.charAt(0);
		if (ver >= n) return;
			alert("このバージョンでは、以降の動作が不完全かもしれません。"
			+"（このバージョンは "+ver+" です）");

	}

	function ichiran() {
		d = new Date();

		document.write("<table border=\"0\" cellpadding=\"2\" cellspacing=\"1\" width=\"500\">");
		document.write("<tr>");
		document.write("<td align=\"center\" class=\"jt12\">");

//		document.write("<form name=\"ichiran\" action=\"http://otasuketai.jp/sagasuke/list.cgi\" target=\"_blank\">");
		document.write("<form name=\"ichiran\" action=\"http://otasuketai.jp/sagasuke/list.cgi\">");

		document.write("<input type=\"hidden\" name=\"area\" value=\"yamagata\">");
		document.write("<input type=\"hidden\" name=\"dantai\" value=\"zo\">");
		document.write("<input type=\"hidden\" name=\"select\" value=\"single\">");
		document.write("<input type=\"hidden\" name=\"image\" value=\"off\">");
		document.write("<input type=\"hidden\" name=\"hitokoto\" value=\"on\">");
		document.write("<input type=\"hidden\" name=\"ban\" value=\"蔵王坊平観光協議会･共同空室情報\">");

		document.write("<!--ボディカラー（バック-テキスト-リンク-アクティブ-ビジット）-->");
		document.write("<input type=\"hidden\" name=\"b_color\" value=\"#f5f5f5-#000000-#008080-#a9a9a9-#2e8b57\">");
		document.write("<!--テーブルカラー（施設名背景-項目名背景-日付背景-項目名-トップタイトル-エリア背景-エリアタイトル）-->");
		document.write("<input type=\"hidden\" name=\"color\" value=\"#cdcdcd-#9acd32-#adff2f-#ffffff-#669933-#c7bf7b-#b8860b\">");

		document.write("<input type=\"hidden\" name=\"t_ken\" value=\"zo-zaobo\">");

		document.write("<p><font size=\"3\">期間設定</font> ");
		document.write("<select name=\"t_year\" size=\"1\">");

		for (i = 0; i <=2; i++) {
				the_year = d.getYear();
				g_year = Y2K(the_year) + i;
				f_year = Y2K(the_year);
				document.write("<option value=\""+g_year+"\">"+g_year+"</option>");
		}
		document.write("</select><font size='3'>年</font>");
		document.write("　<select name=\"t_mon\" size=\"1\">");

		for (i = 1; i <=12; i++) {
			if ((d.getMonth() + 1) == i) {
				document.write("<option value=\""+i+"\" selected>"+i+"</option>");
			} else {
				document.write("<option value=\""+i+"\">"+i+"</option>");
			}
		}
		document.write("</select><font size='3'>月</font>");
		document.write("　<select name=\"t_day\" size=\"1\">");

		for (i = 1; i <=31; i++) {
			if (d.getDate() == i) {
				document.write("<option value=\""+i+"\" selected>"+i+"</option>");
			} else {
				document.write("<option value=\""+i+"\">"+i+"</option>");
			}
		}
		document.write("</select><font size='3'>日から</font>");

		document.write("<select name=\"dist\" size=\"1\">");
		document.write("	<option value=\"7\" selected>7</option>");
		document.write("	<option value=\"14\">14</option>");
		document.write("	<option value=\"31\">31</option>");
		document.write("</select><font size=\"3\">日間 </font>");
		document.write("");

		document.write("<center>");
		document.write("<hr>");
		document.write("<input type=\"submit\" name=\"submitButtonName\" value=\"　表示　\"></center>");
		document.write("");

		document.write("</form>");

		document.write("</td>");
		document.write("</tr>");
		document.write("<tr>");
		document.write("<td align=\"center\" class=\"jt10\">");

//		document.write("<a href=\"http://otasuketai.jp/sagasuke/\" target=\"_blank\"><font size=\"2\">空室検索システム『さが助』</font></a></td>");

		document.write("</tr>");
		document.write("</table>");

	}

//2000年問題への対応
	function Y2K(the_date) {
		if (the_date < 1000) {
			the_date = the_date + 1900;
		}
		return the_date;
	}

// フッタの書き出し
function foot() {

	document.write("<hr>");
	document.write("<div align=\"center\">");
	document.write("	<table><tr>");
	document.write("	<td>");
	document.write("	<a href=\"http://otasuketai.jp/sagasuke/\" target=\"_blank\">");
	document.write("	<img src=\"../bn_img/bn_12038.gif\" width=\"120\" height=\"38\" border=\"0\" align=\"center\"></a>");
	document.write("	</td><td>");
	document.write("	<font size=\"2\"><span class=\"jt10\">");
	document.write("	一覧表示型空室検索機能で地域宿探しが出きる。<br>");
	document.write("	<a href=\"http://otasuketai.jp/sagasuke/\" target=\"_blank\">宿泊施設共同空室情報システム『さが助』</a></span></font><br>");
	document.write("	<font size=\"2\"><span class=\"et10\">");
	document.write("	<a href=\"mailto:support\@otasuketai.jp?subject=エリア画面から問い合わせ\">support\@otasuketai.jp</a></span></font></td></tr>");
	document.write("	<tr><td colspan=\"2\" align=\"center\">");
	document.write("	<font size=\"2\"><span class=\"et10\">Design &amp; Copyright (C) 2000-" + f_year + " SAGASUKE All rights reserved.</span></font></td>");
	document.write("	</tr></table>");
	document.write("</div>");

}

// -->

