// charset="shift-jis"

/*-----------------------------------
	文字サイズ変更用 css & js
-----------------------------------*/
document.write (
	'<LINK href="/css/FsM.css" type="text/css" rel="stylesheet">\n'
	+'<LINK title=FsS href="/css/FsS.css" type="text/css" rel="alternate stylesheet">\n'
	+'<LINK title=FsM href="/css/FsM.css" type="text/css" rel="alternate stylesheet">\n'
	+'<LINK title=FsL href="/css/FsL.css" type="text/css" rel="alternate stylesheet">\n'
	+'<SCRIPT src="/js/styleswitcher.js" type="text/javascript"></SCRIPT>\n'
);

/*-----------------------------------
	共通ヘッダ画像
-----------------------------------*/
var mypict="/img/header0.jpg";

/*-----------------------------------
	サイト内検索 & まるごと検索　[いいとこどり全体／南房総まるごと検索]
-----------------------------------*/

function sarchURL()
{
	var myURL;
	if (document.formSerch.sitesearch[0].checked) {
		myURL="http://www.google.co.jp/custom";
	}else{
		myURL="http://www1.mboso-etoko.jp/cgi-bin/nansoo.pl";
	}
	document.formSerch.action =myURL;
	document.formSerch.target ="_top";
	document.formSerch.submit;
}

function sarchwrite() {
var myURL="http://www.mboso-etoko.jp";
var valueG ="mboso-etoko.jp";

	document.write (
	'	<form name="formSerch" action="#" onSubmit="sarchURL()" style="margin:0px;margin-top:3px;">\n'
	+'	 　\n'
	+'	 <input type=hidden name=hl value="ja">\n'
	+'	 <input type=hidden name=ie value="Shift_JIS">\n'
	+'	 <input type=hidden name=cof value="AWFID:FSja93c8c41d7167bf90;S:'+myURL+'/;GL:0;AH:left;LH:40;L:'+myURL+'/top/images/googlehead.jpg;LW:735;T:#222222;GFNT:#7777CC;">\n'
	+'	 <input type=hidden name=domains value="'+valueG+'">\n'
	+'	 <input type="hidden" name="whence" value="0">\n'
	+'	  <label><input type="text" name="query" size="17" value=""></label>\n'
	+'	 <input type="submit" value="検索" name="submit">\n'
	+'	 <input type="radio" name="sitesearch" value="'+valueG+'" checked id="r1">\n'
	+'	 <label for="r1">サイト内検索Google</label> \n'
	+'	 <input type="radio" name="sitesearch" value="r2" id="r2" title="南房総の情報を発信しているサイト・南房総の方が発信しているサイトから検索">\n'
	+'	 <label for="r2" title="南房総の情報を発信しているサイト・南房総の方が発信しているサイトから検索">南房総まるごと検索 </label> \n'
	+'	</form>\n'
	);
}

/*-----------------------------------
	Googleサイト内検索　[ディレクトリ以下／いいとこどり全体]
	●前で個別の変数設定
		sample: /top/michinoeki/_setVal.js
	●使用例：千葉道の駅/top/michinoeki/
-----------------------------------*/
function sarchURLGSDir(){
	if (document.formSearch.theRadio[0].checked) {
			document.formSearch.sitesearch.value=theGsearchURL;
			document.formSearch.cof.value="AWFID:FSjaf098861bcfbb933c;S:http://"+theGsearchURL+";GL:0;AH:left;LH:"+theGPictH+";L:http://"+theGheaderPict+";LW:"+theGPictW+";T:#222222;GFNT:#7777CC;";
			document.formSearch.domains.value=theGsearchURL;
	}else{
			document.formSearch.sitesearch.value="mboso-etoko.jp";
			document.formSearch.cof.value="AWFID:FSjaf098861bcfbb933c;S:http://www.mboso-etoko.jp/;GL:0;AH:left;LH:40;L:http://www.mboso-etoko.jp/top/images/googlehead.jpg;LW:735;T:#222222;GFNT:#7777CC;";
			document.formSearch.domains.value="mboso-etoko.jp";
	}
	document.formSearch.submit;
}

function sarchwriteGSDir(){
	if (theGsearchURL=="") {
		theGsearchURL=document.location.pathname;
		theGsearchURL=theGsearchURL.substring(0,theGsearchURL.lastIndexOf("/")+1);
		theGsearchURL=document.location.hostname + theGsearchURL;
	}
	if (theGheaderPict=="") {
		theGheaderPict=theGsearchURL + "image/googlehead.jpg";
	}
	if (theGPictH=="") { theGPictH="40"; }
	if (theGPictW=="") { theGPictW="735"; }

document.write (
	'<form name="formSearch" method=GET action="http://www.google.co.jp/custom" onSubmit="sarchURLGSDir()" style="margin:0px;margin-top:3px;">\n'
	+'　　\n'
	+'<input type="text" name="q" size="20" value="">\n'
	+'<input type="submit" value="Google検索">\n'
	+'<input type="radio" name="theRadio" value="r1" checked id="r1">' + thesearchTitle +'\n'
	);
	if (flgAllsearch==1) {
		document.write (
		'<input type="radio" name="theRadio" value="r2" id="r2">「いいとこどり」全体\n'
		);
	} else {
		document.write (
		'<input type="hidden" name="theRadio" value="r2" id="r2">\n'
		);
	}
document.write (
	'<input type="hidden" name="sitesearch" value="">\n'
	+'<input type="hidden" name=hl value="ja">\n'
	+'<input type="hidden" name=ie value="Shift_JIS">\n'
	+'<input type="hidden" name="cof" value="">\n'
	+'<input type="hidden" name="domains" value="">\n'
	+'</form>\n'
	);
}
/*------------------------------
	ニュース　関連キーワード
--------------------------------*/
function dispKeyList(keyword){
	document.setKeyWord.keyword.value=keyword;
	document.setKeyWord.submit();
}
