﻿<!--
///////////////////////////////////////////////
//eol,Inc Original by Tsugu Sakurai 2004.7.12//
//update 2005.6.28 Ver1.32                   //
///////////////////////////////////////////////

///グローバル変数定義　この部分の変更は必須！///

//証券コード
var SecCode = 3043;

//過去開示ページの過去年数
var pasDiscY = 2006;

////////////////////////////////////////////////

//現在の「年」を取得
var nowYear = (new Date()).getFullYear();

//過去情報リンクの年設定（2年以上の蓄積があれば1年前へリンクする） update 2004.11.19
var linkKakoYear = nowYear;

	if(linkKakoYear < pasDiscY){linkKakoYear = pasDiscY};


//過去の開示書類リンク（自動「年」更新）
function LinkURL(Temp,Type){
    if(Temp != ""){Temp = "template=" + Temp};
    if(Type != ""){Type = "type=" + Type};
    if(Temp != "" && Type != ""){Type = "&" + Type};
    Temp = Temp + Type;
    location.href = SecCode + "?" + Temp + "&year=" + linkKakoYear;
}


///過去の開示書類ページ、使用スクリプト///

	//optionタグの自動生成
	function WriteContent(){

		//URLから「年」を取得
		var DiscY = nowYear;
		var kariDiscY = document.URL.split("year");
		if(kariDiscY[1]){
			DiscY = kariDiscY[1].substr(1,4);
		}else{
			document.write("<option value='' selected>　選　択　</option>");
		}

		for(i = nowYear; i >= pasDiscY; i--){
			document.write("<option value='",i,"'");
			if(DiscY == i && kariDiscY[1]){
				document.write(" selected");
			}
			document.write(">　",i,"年　</option>");
		}
	}

	//「年」変更ページ切り替えスクリプト
	// modify: 2006/06/16 SORA Daisuke Nakahama
	// modify: 2007/01/31 SORA Daisuke Nakahama URLのクエリ以外の部分を使用するように変更
	function cngYearURL(Temp, Type, Sel){
	    if(Temp != ""){Temp = "template=" + Temp};
	    if(Type != ""){Type = "type=" + Type};
	    if(Temp != "" && Type != ""){Type = "&" + Type};
	    Temp = Temp + Type;
		location.href = document.URL.split("?")[0] + "?" + Temp + "&year=" + Sel.options[Sel.selectedIndex].value;
	}

	//過去情報一覧からの戻るリンク
	function LinkBackURL(Temp,Type,ExStat){
    if(Temp != ""){Temp = "template=" + Temp};
    if(Type != ""){Type = "type=" + Type};
    if(Temp != "" && Type != ""){Type = "&" + Type};
    Temp = Temp + Type;
    if(Temp != "" && ExStat != ""){ExStat = "&" + ExStat;}
		location.href = SecCode + "?" + Temp + ExStat;
	}

//////////////////////////////////////////////

//財務ハイライト用ススクリプト
function chkLgic(intGroup, strCode) {
	var strKey = intGroup.replace("/", "");
	var tIndex;
	switch (strKey.length) {
		case 6: tIndex = 0; break;
		case 2: tIndex = 1; break;
		default: return false;
	}
	var arrElm = document.getElementsByName("download_files[]");
	var arrStr;
	var blAllChecked = true;
	for (i=0; i < arrElm.length; i++) {
		arrStr = arrElm[i].value.split(":");
		if (arrStr[tIndex]==strKey) {
			if (!arrElm[i].checked) {
				blAllChecked = false;
				break;
			}
		}
	}
	for (i=0; i < arrElm.length; i++) {
		var arrStr = arrElm[i].value.split(":");
		if (arrStr[tIndex]==strKey) {
			arrElm[i].checked = !blAllChecked;
		}
	}
}


function ChgDLType(typeVal){
	var count = 0;
	var sidList = new Array();
	for(i=0 ; i<document.dummy.elements.length ; i++) {
		if(document.dummy.elements[i].checked) {
			count++;
			sidList.push(document.dummy.elements[i].value.split(":")[2].toString());
		}
	}
	if(count < 1) {
		alert('チェックがありません。');
		return false;
	}
	if(count > 34) {
		alert('チェック(1度にダウンロード)できるのは、30個までです。');
		return false;
	}else{
	document.dummy.action = "http://eir.eol.co.jp/EIR/Download.aspx?cat=zaimu&type=" + typeVal + "&sid_list=" +
sidList.toString();
	document.dummy.submit();
	}
}
//-->
