TOP001_C.inc 1.49 KB
<SCRIPT LANGUAGE="JAVASCRIPT">
<!--
function cal_get(strDate, divid){
	arrYMD = strDate.split("/");

	if(divid == "calid"){
		objY = document.e_gru.st_year;
		objM = document.e_gru.st_mon;
		objD = document.e_gru.st_day;

		objY2 = document.e_gru.ed_year;
		objM2 = document.e_gru.ed_mon;
		objD2 = document.e_gru.ed_day;
	}else if(divid == "calid2"){
		objY = document.e_gru.ed_year;
		objM = document.e_gru.ed_mon;
		objD = document.e_gru.ed_day;
	}else if(divid == "calid3"){
		objY = document.e_gru.alarm_nen;
		objM = document.e_gru.alarm_mon;
		objD = document.e_gru.alarm_day;
	}

	//ǯ
	for(i=0;i<objY.options.length;i++){
		if(objY.options[i].value == arrYMD[0]){
			objY.selectedIndex = i;
			if(divid == "calid"){
				objY2.selectedIndex = i;
			}
			break;
		}
	}
	//·î
	for(i=0;i<objM.options.length;i++){
		if(objM.options[i].value == arrYMD[1]){
			objM.selectedIndex = i;objM.selectedIndex = i;
			if(divid == "calid"){
				objM2.selectedIndex = i;
			}
			break;
		}
	}

	//·î
	for(i=0;i<objD.options.length;i++){
		if(objD.options[i].value == arrYMD[2]){
			objD.selectedIndex = i;
			if(divid == "calid"){
				objD2.selectedIndex = i;
			}
			break;
		}
	}


cal1 = new JKL.Calendar("calid","e_gru","colname");
cal2 = new JKL.Calendar("calid2","e_gru","colname2");
cal3 = new JKL.Calendar("calid3","e_gru","colname3");
}

var cal1 = new JKL.Calendar("calid","e_gru","colname");
var cal2 = new JKL.Calendar("calid2","e_gru","colname2");
var cal3 = new JKL.Calendar("calid3","e_gru","colname3");
-->
</script>