ter = new Array();
ter[0] = "0000,期間をお選びください ";
ter[1] = "index,２０１０年　　　４-６月 ";
ter[2] = "/wws/us/j/local/about_ana/corp_info/pr/10-0103,２０１０年　　　１-３月 ";
ter[3] = "/wws/general/j/about_ana/corp_info/pr/09-1012,２００９年　１０-１２月 ";
ter[4] = "/wws/general/j/about_ana/corp_info/pr/09-0709,　├　　　　　　７-９月 ";
ter[5] = "/wws/general/j/about_ana/corp_info/pr/09-0406,　├　　　　　　４-６月 ";
ter[6] = "09-0103,　└　　　　　　１-３月 ";
ter[7] = "08-1012,２００８年　１０-１２月 ";
ter[8] = "08-0709,　├　　　　　　７-９月 ";
ter[9] = "08-0406,　├　　　　　　４-６月 ";
ter[10] = "08-0103,　├　　　　　　１-３月 ";
ter[11] = "07-1012,２００７年　１０-１２月 ";

ter["us"] = new Array();
ter["us"][0] = "0000,期間をお選びください ";
ter["us"][1] = "index,２０１２年　　　１-３月 ";
ter["us"][2] = "11-1012,２０１１年　　　１０-１２月 ";
ter["us"][3] = "11-0709,　├　　　　　　７-９月 ";
ter["us"][4] = "11-0406,　├　　　　　　４-６月 ";
ter["us"][5] = "11-0103,　├　　　　　　１-３月 ";
ter["us"][6] = "10-1012,２０１０年　１０-１２月 ";
ter["us"][7] = "10-0709,　├　　　　　　７-９月 ";
ter["us"][8] = "10-0406,　├　　　　　　４-６月 ";
ter["us"][9] = "10-0103,　├　　　　　　１-３月 ";
ter["us"][10] = "09-1012,２００９年　１０-１２月 ";
ter["us"][11] = "09-0709,　├　　　　　　７-９月 ";
ter["us"][12] = "09-0406,　├　　　　　　４-６月 ";
ter["us"][13] = "09-0103,　└　　　　　　１-３月 ";
ter["us"][14] = "08-1012,２００８年　１０-１２月 ";
ter["us"][15] = "08-0709,　├　　　　　　７-９月 ";
ter["us"][16] = "08-0406,　├　　　　　　４-６月 ";
ter["us"][17] = "08-0103,　├　　　　　　１-３月 ";
ter["us"][18] = "07-1012,２００７年　１０-１２月 ";

var NC4 = (document.layers) ? 1 : 0;
var IE4 = (document.all) ? 1 : 0;
var DOM = (document.getElementById) ? 1 : 0;
var VER4 = (NC4 || IE4 || DOM) ? 1 : 0;
var WIN = (navigator.platform == "Win32") ? 1 : 0;

var countrycode = location.pathname.split("/")[2];

function GetOptions(ele,index){

	if (index == 0) {
		k = 0;
		if (countrycode == "us") {
			for (i=0; i<ter.length; i++) {
				a = ter["us"][i].split(",");
				ele.options[k] = new Option(a[1],a[0]);
				k++;
			}
		} else {
			for (i=0; i<ter.length; i++) {
				a = ter[i].split(",");
				ele.options[k] = new Option(a[1],a[0]);
				k++;
			}
		}
	}

}

function EraseOptions(ele){
	var Num = ele.length;
	for (var z = Num - 1;z > -1;z--){
		ele.options[z] = null;
	}
}

function change_kikan(theForm) {
	Num = theForm.PR[theForm.PR.selectedIndex].value;
	if (!(Num.indexOf("/wws") > -1)){
		if (!(Num=="0000")){
			location.href=Num + ".html";
		}
	} else {
		window.open(Num + ".html", "_blank");
	}
}


function create_kikan() {

if (countrycode == "us") {
	for (i=0; i<ter["us"].length; i++) {
		a = ter["us"][i].split(",");
		msg = '<option value="' + a[0] + '"';
		if (i==0) msg += ' selected';
		msg += '>' + a[1] + '</option>';
		document.write(msg);
	}
} else {
	for (i=0; i<ter.length; i++) {
		a = ter[i].split(",");
		if (a[0] != "" && a[1] != "") {
			msg = '<option value="' + a[0] + '"';
			if (i==0) msg += ' selected';
			msg += '>' + a[1] + '</option>';
			document.write(msg);
		}
	}

}

}

