<!--
	//90608 版
	// root ver.  /xxx/
	//
	// index.html 向け
	// カレンダコントロール
	//
	// 指定したURLを非同期でリクエスト
	function getFile(symSel){
		if(symSel){
			var symId = symSel;
		}else{
			if(document.getElementById("symid")){
				var symId = document.getElementById("symid").value;
			}else{
				var symId = "";
			}
	 	}
	 	getFile_sched(symId);
	}

	function sched_list(cDay){
		var cDayX;
		if(cDay){cDayX=cDay;}else{cDayX='00';}
		var symId = document.getElementById("symid").value;
		if(symId.length > 6){
			//20080305->200803
			var symIdX = symId.substr(0,6);
		}else{
			var symIdX = symId;
		}
//2009test2
//		xWin = window.open('./info/schedule.html?'+symIdX+''+cDayX+'#'+cDayX,'_self');
		xWin = window.open('/info/schedule.html?'+symIdX+''+cDayX+'#'+cDayX,'_self');

	}

	function getFile_move(symSel){
		//月移動処理時：listも同時に移動
		if(symSel){
			var symId = symSel;
		}else{
			if(document.getElementById("symid")){
				var symId = document.getElementById("symid").value;
			}else{
				var symId = "";
			}
	 	}
	 	getFile_sched(symId);
		//schedule.html時のみ。
		//sched_list_move(symId);
		return;
	}


	function sched_list_move(symId){
		if(symId.length > 6){
			//20080305->200803
			var symIdX = symId.substr(0,6);
		}else{
			var symIdX = symId;
		}

//2009test2
//		xWin = window.open('./info/schedule.html?'+symIdX,'_self');
		xWin = window.open('/info/schedule.html?'+symIdX,'_self');
		return;
	}
	
	
	// 2008/4/30 ~ ---------------------------------------------------------------//
	// 演奏会予約ページのjsを外部ファイル化
	//
	function getFile_prog_rsv(rId,gId,eId){

		if(rId){
			var rsvId = rId;
		}else{
			var rsvId = document.getElementById("rsvid").value;
		}
		if(gId){
			var rgId = gId;
		}else{
			var rgId = document.getElementById("gid").value;
		}
		if(eId){
			var reId = eId;
		}else{
			var reId = document.getElementById("eid").value;
		}

		if(rsvId==1){
			getFile_prog_rsv_form(rgId,reId);

		}else if(rsvId==2){
			var iMax = document.getElementById("imax").value;
			var cMax = document.formpc.cbox.length;

	 		 	var cBox="";
				if(cMax){
					for(i =0; i<cMax;i++){
						if(i!=0){
							cBox += ",";
						}
						if(document.formpc.cbox[i].value !=undefined){
							cBox += document.formpc.cbox[i].value;
						}
					}
				}else{
						cBox += document.formpc.cbox.value;
				}

				var tCount="";
				var tCount_check ="";
				var tCount_item=document.formpc.tcount.length;
				var tCount_item_val=document.formpc.tcount.value;

				if(tCount_item_val !=undefined){
					//itemが１つの時、値が帰る、複数の場合はundefinedとなる
						tCount_check = document.formpc.tcount.selectedIndex;
						if(!tCount_check){tCount_check=0;}
						tCount += tCount_check;
				}else{
					for( j=0; j<tCount_item;j++){
							tCount_check = document.formpc.tcount[j].selectedIndex;
							if(!tCount_check){tCount_check=0;}
							if(tCount){
								tCount += ",";
							}
							tCount += tCount_check;
						}
				}

				var tFee="";
				if(document.formpc.tfee.length){
	 			 	for(i =0; i< document.formpc.tfee.length;i++){
						if(i!=0){
							tFee += ",";
						}
						tFee += document.formpc.tfee[i].value;
   					}
				}else{
						tFee += document.formpc.tfee.value;
				}
				if(document.formpc.eid.length){
					var eId = document.formpc.eid[0].value;
				}else{
					var eId = document.formpc.eid.value;
				}
				var seId="";
				if(document.formpc.seid.length){
	 		 		for(i =0; i< document.formpc.seid.length;i++){
						if(i!=0){
							seId += ",";
						}
						seId += document.formpc.seid[i].value;
	    			}
				}else{
						seId += document.formpc.seid.value;
				}

			getFile_prog_rsv_store(rgId,reId,tCount,tFee,cBox,eId,seId);
			xWin = window.open('/cart.html?rid='+rId+'&gid='+gId+'&eid='+eId+'&imax='+iMax,'_self');
		}else if(rsvId==3){
			getFile_prog_rsv_reconf(rgId,reId);
		}else if(rsvId==4){
			//必須チェック
			var kIsai = "";
			var kIsai_chk = 0;
			if(document.formpc.kisai){
			 	for(i=0; i< document.formpc.kisai.length;i++){
					if(document.formpc.kisai[i].checked){
						kIsai = document.formpc.kisai[i].value;
						kIsai_chk=1;
						break;
					}
				}
				if(kIsai_chk==0){
					alert('プログラムへのお名前の記載選択を行ってください。');
					return false;
				}
			}
	
			var iMax = "";
			if(document.getElementById("imax")){
				iMax = document.getElementById("imax").value;
			}
			var cMax = document.formpc.cbox.length;
					
	 		 	var cBox="";
				if(cMax){
					for(i =0; i<cMax;i++){
						if(i!=0){
							cBox += ",";
						}
						if(document.formpc.cbox[i].value !=undefined){
							cBox += document.formpc.cbox[i].value;
						}
					}
				}else{
						cBox += document.formpc.cbox.value;
				}

				var tCount="";
				var tCount_check ="";
				var tCount_item=document.formpc.tcount.length;
				var tCount_item_val=document.formpc.tcount.value;

				if(tCount_item_val !=undefined){
					//itemが１つの時、値が帰る、複数の場合はundefinedとなる
						tCount_check = document.formpc.tcount.selectedIndex;
						if(!tCount_check){tCount_check=0;}
						tCount += tCount_check;
				}else{
					for( j=0; j<tCount_item;j++){
							tCount_check = document.formpc.tcount[j].selectedIndex;
							if(!tCount_check){tCount_check=0;}
							if(tCount){
								tCount += ",";
							}
							tCount += tCount_check;
						}
				}

				var fLoor="";
				if(document.formpc.floor.length){
	 			 	for(i =0; i< document.formpc.floor.length;i++){
						if(i!=0){
							fLoor += ",";
						}
						fLoor += document.formpc.floor[i].value;
   					}
				}else{
						fLoor += document.formpc.floor.value;
				}

				var sName="";
				if(document.formpc.sname.length){
	 			 	for(i =0; i< document.formpc.sname.length;i++){
						if(i!=0){
							sName += ",";
						}
						sName += document.formpc.sname[i].value;
   					}
				}else{
						sName += document.formpc.sname.value;
				}

				var tFee="";
				if(document.formpc.tfee.length){
	 			 	for(i =0; i< document.formpc.tfee.length;i++){
						if(i!=0){
							tFee += ",";
						}
						tFee += document.formpc.tfee[i].value;
   					}
				}else{
						tFee += document.formpc.tfee.value;
				}
				if(document.formpc.eid.length){
					var eId = document.formpc.eid[0].value;
				}else{
					var eId = document.formpc.eid.value;
				}
				var seId="";
				if(document.formpc.seid.length){
	 		 		for(i =0; i< document.formpc.seid.length;i++){
						if(i!=0){
							seId += ",";
						}
						seId += document.formpc.seid[i].value;
	    			}
				}else{
						seId += document.formpc.seid.value;
				}

			getFile_prog_rsv_store_mix(rgId,reId,tCount,tFee,cBox,eId,seId,sName,fLoor,kIsai);
			xWin = window.open('/cart.html?rid='+rId+'&gid='+gId+'&eid='+eId+'&imax='+iMax+'&sname='+sName+'&floor='+fLoor+'&kisai='+kIsai,'_self');

		}else{
			//アンケートID取得
			if(!!document.getElementById("eventid")){
				var eventId = document.getElementById("eventid").value;
			}else{
				var eventId = "none";
			}
			getFile_prog_rsv_disp(rgId,reId,eventId);
		}
		return;
	}
	
-->


