//******************************************************************************
//**** 雀の往来：文字コードを指定して保存

j = 0;
ObjLink = new Array();
ObjLink[j++] = ["石狩管内", "http://ishikarikannai.blog115.fc2.com/"];
ObjLink[j++] = ["渡島管内", ""];
ObjLink[j++] = ["檜山管内", "http://www.impulse-hiyama.com/"];
ObjLink[j++] = ["後志管内", ""];
ObjLink[j++] = ["空知管内", ""];
ObjLink[j++] = ["上川管内", "http://www.kamishoko.net/"];
ObjLink[j++] = ["留萌管内", "http://sea.ap.teacup.com/rumoi/"];
ObjLink[j++] = ["宗谷管内", "http://www.j-soya.jp/"];
ObjLink[j++] = ["網走管内", ""];
ObjLink[j++] = ["胆振管内", ""];
ObjLink[j++] = ["日高管内", ""];
ObjLink[j++] = ["十勝管内", "http://tokachi.com/tokachi/"];
ObjLink[j++] = ["釧路管内", "http://www.impulse-kushiro.com/"];
ObjLink[j++] = ["根室管内", "http://www.aurens.or.jp/hp/betsusyo/seinen2/"];

//******************************************************************************

function pageLink() {
	var re = /^https?\:\/\/[\w\.\~\-\/\?\&\+\=\:\,\@\%\;\#\%]+$/;
	var lnk = document.plinkform.plinkformsel.value;
	if (re.test(lnk)) {
		window.open(lnk);
	}
}

document.write("<form name='plinkform'>");
document.write("<select name='plinkformsel' onchange='pageLink()' style='width: 150px'>");
document.write("<option value=''>リンク先を選択</option>");
for (i=0; i<ObjLink.length; i++) {
	document.write("<option value='" + ObjLink[i][1] + "'");
	if (ObjLink[i][1] == "") {
		document.write(" style='color: #CCCCCC'");
	}
	document.write(">" + ObjLink[i][0] + "</option>");
}
document.write("</select>");
document.write("</form>");
document.write("<br>");
