function jrSearch(ds,as) {
	var dsVal =$('#'+ds).val();
	var asVal =$('#'+as).val();
	
	var win = window.open();
	win.location.href ="http://train.yoyaku.jrkyushu.co.jp/jr/pc/consumer/route/TopAction/searchStation.do?dsName=" + encodeURIComponent(dsVal) + "&asName=" + encodeURIComponent(asVal) +"&trYearMonth=&trDay=&trHour=&trMinute=&daType=0";
}

function jrStSearch(dt) {
	var win = window.open();
	$.get("/enc_stname.cgi", { departure: $('#'+dt).val() },
		function(data){
			win.location.href="http://www.jrkyushu.co.jp/cgi-bin/timetable_search.cgi?" +  data + '&pr=3&sub=1';
	});
}

