function chk_form1(form1){
 if ((form1.m.selectedIndex==0)&&(form1.str.selectedIndex==0)&&(form1.dst.selectedIndex==0)) {
  alert("出発予定月、出発地、目的地を選択してください");
  return false;
 }
  if ((form1.str.selectedIndex==0)&&(form1.dst.selectedIndex==0)) {
  alert("出発地、目的地を選択してください");
  return false;
 }
  if ((form1.m.selectedIndex==0)&&(form1.dst.selectedIndex==0)) {
  alert("出発予定月、目的地を選択してください");
  return false;
 }
  if ((form1.m.selectedIndex==0)&&(form1.str.selectedIndex==0)) {
  alert("出発予定月、出発地を選択してください");
  return false;
 }
  if (form1.dst.selectedIndex==0){
  alert("目的地を選択してください");
  return false;
 }
 if (form1.m.selectedIndex==0){
  alert("出発予定月を選択してください");
  return false;
 }
 if (form1.str.selectedIndex==0){
  alert("出発地を選択してください");
  return false;
 }

 form1.submit();
 return false;
}

function openwin(CSYM) {
	w = window.open('popup.asp?URL='+CSYM, 'win','width=350,height=400,status=no,scrollbars=no,directories=no,menubar=no,resizable=no,toolbar=no');
}
function up_dst(s,md){
	var f=s.form;
	var idx=s.selectedIndex;
	var str=s.options[idx].value;
	f.dst.selectedIndex=0;
	f.dst.options.length=1;
	if (idx==0){
	} else if (str=='1') { f.dst.options.length=5; f.dst[1].value='kohshin' ; f.dst[1].text='甲信越'; f.dst[2].value='chubu'   ; f.dst[2].text='中　部'; f.dst[3].value='kinki'   ; f.dst[3].text='近　畿'; f.dst[4].value='kyushu'  ; f.dst[4].text='九　州';
	} else if (str=='2') { f.dst.options.length=2; f.dst[1].value='kanto'   ; f.dst[1].text='関　東';
	} else if (str=='3') { f.dst.options.length=2; f.dst[1].value='kanto'   ; f.dst[1].text='関　東';
	} else if (str=='4') { f.dst.options.length=11; f.dst[1].value='hokkaido'; f.dst[1].text='北海道'; f.dst[2].value='kanto'   ; f.dst[2].text='関　東'; f.dst[3].value='kohshin' ; f.dst[3].text='甲信越'; f.dst[4].value='chubu'   ; f.dst[4].text='中　部'; f.dst[5].value='hokuriku'; f.dst[5].text='北　陸'; f.dst[6].value='kinki'   ; f.dst[6].text='近　畿'; f.dst[7].value='chugoku' ; f.dst[7].text='中　国'; f.dst[8].value='shikoku' ; f.dst[8].text='四　国'; f.dst[9].value='kyushu'  ; f.dst[9].text='九　州'; f.dst[10].value='okinawa' ; f.dst[10].text='沖　縄';
	} else if (str=='5') { f.dst.options.length=2; f.dst[1].value='kanto'   ; f.dst[1].text='関　東';
	} else if (str=='6') { f.dst.options.length=2; f.dst[1].value='kanto'   ; f.dst[1].text='関　東';
	} else if (str=='7') { f.dst.options.length=5; f.dst[1].value='hokkaido'; f.dst[1].text='北海道'; f.dst[2].value='kanto'   ; f.dst[2].text='関　東'; f.dst[3].value='chubu'   ; f.dst[3].text='中　部'; f.dst[4].value='okinawa' ; f.dst[4].text='沖　縄';
	} else if (str=='11') { f.dst.options.length=2; f.dst[1].value='tohoku'  ; f.dst[1].text='東　北';
	} else if (str=='13') { f.dst.options.length=12; f.dst[1].value='hokkaido'; f.dst[1].text='北海道'; f.dst[2].value='tohoku'  ; f.dst[2].text='東　北'; f.dst[3].value='kanto'   ; f.dst[3].text='関　東'; f.dst[4].value='kohshin' ; f.dst[4].text='甲信越'; f.dst[5].value='chubu'   ; f.dst[5].text='中　部'; f.dst[6].value='hokuriku'; f.dst[6].text='北　陸'; f.dst[7].value='kinki'   ; f.dst[7].text='近　畿'; f.dst[8].value='chugoku' ; f.dst[8].text='中　国'; f.dst[9].value='shikoku' ; f.dst[9].text='四　国'; f.dst[10].value='kyushu'  ; f.dst[10].text='九　州'; f.dst[11].value='okinawa' ; f.dst[11].text='沖　縄';
	} else if (str=='14') { f.dst.options.length=2; f.dst[1].value='kohshin' ; f.dst[1].text='甲信越';
	} else if (str=='16') { f.dst.options.length=5; f.dst[1].value='hokkaido'; f.dst[1].text='北海道'; f.dst[2].value='tohoku'  ; f.dst[2].text='東　北'; f.dst[3].value='kanto'   ; f.dst[3].text='関　東'; f.dst[4].value='okinawa' ; f.dst[4].text='沖　縄';
	} else if (str=='17') { f.dst.options.length=6; f.dst[1].value='hokkaido'; f.dst[1].text='北海道'; f.dst[2].value='tohoku'  ; f.dst[2].text='東　北'; f.dst[3].value='kanto'   ; f.dst[3].text='関　東'; f.dst[4].value='kohshin' ; f.dst[4].text='甲信越'; f.dst[5].value='okinawa' ; f.dst[5].text='沖　縄';
	} else if (str=='18') { f.dst.options.length=4; f.dst[1].value='hokkaido'; f.dst[1].text='北海道'; f.dst[2].value='tohoku'  ; f.dst[2].text='東　北'; f.dst[3].value='kanto'   ; f.dst[3].text='関　東';
	} else if (str=='21') { f.dst.options.length=2; f.dst[1].value='kanto'   ; f.dst[1].text='関　東';
	} else if (str=='23') { f.dst.options.length=11; f.dst[1].value='hokkaido'; f.dst[1].text='北海道'; f.dst[2].value='tohoku'  ; f.dst[2].text='東　北'; f.dst[3].value='kanto'   ; f.dst[3].text='関　東'; f.dst[4].value='kohshin' ; f.dst[4].text='甲信越'; f.dst[5].value='hokuriku'; f.dst[5].text='北　陸'; f.dst[6].value='kinki'   ; f.dst[6].text='近　畿'; f.dst[7].value='chugoku' ; f.dst[7].text='中　国'; f.dst[8].value='shikoku' ; f.dst[8].text='四　国'; f.dst[9].value='kyushu'  ; f.dst[9].text='九　州'; f.dst[10].value='okinawa' ; f.dst[10].text='沖　縄';
	} else if (str=='24') { f.dst.options.length=2; f.dst[1].value='kanto'   ; f.dst[1].text='関　東';
	} else if (str=='26') { f.dst.options.length=5; f.dst[1].value='kanto'   ; f.dst[1].text='関　東'; f.dst[2].value='kohshin' ; f.dst[2].text='甲信越'; f.dst[3].value='chubu'   ; f.dst[3].text='中　部'; f.dst[4].value='hokuriku'; f.dst[4].text='北　陸';
	} else if (str=='27') { f.dst.options.length=12; f.dst[1].value='hokkaido'; f.dst[1].text='北海道'; f.dst[2].value='tohoku'  ; f.dst[2].text='東　北'; f.dst[3].value='kanto'   ; f.dst[3].text='関　東'; f.dst[4].value='kohshin' ; f.dst[4].text='甲信越'; f.dst[5].value='chubu'   ; f.dst[5].text='中　部'; f.dst[6].value='hokuriku'; f.dst[6].text='北　陸'; f.dst[7].value='kinki'   ; f.dst[7].text='近　畿'; f.dst[8].value='chugoku' ; f.dst[8].text='中　国'; f.dst[9].value='shikoku' ; f.dst[9].text='四　国'; f.dst[10].value='kyushu'  ; f.dst[10].text='九　州'; f.dst[11].value='okinawa' ; f.dst[11].text='沖　縄';
	} else if (str=='28') { f.dst.options.length=4; f.dst[1].value='kanto'   ; f.dst[1].text='関　東'; f.dst[2].value='chubu'   ; f.dst[2].text='中　部'; f.dst[3].value='kyushu'  ; f.dst[3].text='九　州';
	} else if (str=='30') { f.dst.options.length=2; f.dst[1].value='okinawa' ; f.dst[1].text='沖　縄';
	}
	if (md=='1'){
		var w_dst=parseInt(f.w_dst.value);
		if (w_dst>0) f.dst.selectedIndex=w_dst;
	}
}
function up_dst_idx(s){
	var f=s.form;
	f.w_dst.value=f.dst.selectedIndex;
}