<!-- // Target window control (blank)
function externalLinks() {
	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i<anchors.length; i++) {
		var anchor = anchors[i];
		if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external")
		anchor.target = "_blank";
	}
}
window.onload=externalLinks;
// -->

<!-- // sub window control
var popWindow=null;
function pop(mypage,myname,w,h,t,l,s,r,m,lc,tl){
settings='width='+ w + ',height='+ h + ',top='+ t + ',left='+ l + ',scrollbars=' + s + ',resizable=' + r + ',menubar=' + m + ',location='+ lc + ',toolbar='+ tl + ',directories=no,status=yes,dependent=yes';
popWindow=window.open('',myname,settings);
popWindow.focus();popWindow.location=mypage;
}
// -->

<!--
function ajustWindowAuto(width) {
	var element = document.getElementById("POPUP");
	if(navigator.appName=="Microsoft Internet Explorer") {
		height = element.scrollHeight + 179;
	} else if(navigator.appName=="Opera") {
		height = element.scrollHeight + 49;
	} else {
		height = element.scrollHeight + 79;
	}
	resizeTo(width,height);
}
//-->

<!-- // auto rollover for specific elements
function smartRollover() {
	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");

		for(var i=0; i < images.length; i++) {
			if(images[i].getAttribute("src").match("_off."))
			{
				images[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
				}
				images[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
				}
			}
		}

		var input = document.getElementsByTagName("input");

		for(var i=0; i < input.length; i++) {
			if(input[i].getAttribute("type").match("image"))
			{
				input[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
				}
				input[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
				}
			}
		}
	}
}

if(window.addEventListener) {
	window.addEventListener("load", smartRollover, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", smartRollover);
}
//-->

<!--
// プリントコマンド（Macでのアラート含む）
function print_out() {
	var Mac = (navigator.userAgent.indexOf("Mac")!=-1);
	var Win = (navigator.userAgent.indexOf("Win")!=-1);
	var Netscape = (navigator.appName.indexOf("Netscape")!=-1);
	var Explorer = (navigator.appName.indexOf("Explorer")!=-1);
	var Opera = (navigator.appName.indexOf("Opera")!=-1);
	var Version = navigator.appVersion.charAt(0);

	if ((Win && Explorer && Version >= "4")||(Win && Netscape && Version >= "4")||(Win && Opera)){
		self.print();
	}else{
		alert("誠に申し訳ありませんが、現在の閲覧環境ではこの機能は利用できません。\n通常の印刷方法にてお願い致します。");
	}
}
//-->

<!--
// レイヤー表示切替
crrtDetail = "LAY01"; //バッファ

//レイヤー表示
function showDetail(layName){
	//バッファされているレイヤーを消去
	hideDetail();

	document.getElementById(layName).style.display = "block";
	crrtDetail = layName; //表示中のレイヤーをバッファに入れる
}

//レイヤー消去
function hideDetail() {
	document.getElementById(crrtDetail).style.display = "none";
}
//-->
