﻿//メイン画面遷移----------------------------------------------------
	function ToTop(){
		window.Frm_Kaigi.target = '_self';
		window.Frm_Kaigi.action = './top_main.asp';
		window.Frm_Kaigi.submit();
	}

	function doSearch_Top(Pt_Category_Cd){
		var strMsg = '';

		if( strMsg != '' ){
			alert( strMsg );
		} else {
			document.Frm_Kaigi.action			= './category_list.asp?Hdn_Category_Cd=' + Pt_Category_Cd;

			if( document.Frm_Kaigi.Chk_Car_Top.checked == true ){
				document.Frm_Kaigi.Chk_Car.value	= document.Frm_Kaigi.Chk_Car_Top.value;
			}else{
				document.Frm_Kaigi.Chk_Car.value	= '';
			}

			if( document.Frm_Kaigi.Chk_Lunch_Top.checked == true ){
				document.Frm_Kaigi.Chk_Lunch.value	= document.Frm_Kaigi.Chk_Lunch_Top.value;
			}else{
				document.Frm_Kaigi.Chk_Lunch.value	= '';
			}

			if( document.Frm_Kaigi.Chk_Cloak_Top.checked == true ){
				document.Frm_Kaigi.Chk_Cloak.value	= document.Frm_Kaigi.Chk_Cloak_Top.value;
			}else{
				document.Frm_Kaigi.Chk_Cloak.value	= '';
			}

			if( document.Frm_Kaigi.Chk_Inn_Top.checked == true ){
				document.Frm_Kaigi.Chk_Inn.value	= document.Frm_Kaigi.Chk_Inn_Top.value;
			}else{
				document.Frm_Kaigi.Chk_Inn.value	= '';
			}

			if( document.Frm_Kaigi.Chk_Smoking_Top.checked == true ){
				document.Frm_Kaigi.Chk_Smoking.value= document.Frm_Kaigi.Chk_Smoking_Top.value;
			}else{
				document.Frm_Kaigi.Chk_Smoking.value	= '';
			}

			if( document.Frm_Kaigi.Chk_Net_Top.checked == true ){
				document.Frm_Kaigi.Chk_Net.value	= document.Frm_Kaigi.Chk_Net_Top.value;
			}else{
				document.Frm_Kaigi.Chk_Net.value	= '';
			}

			if( document.Frm_Kaigi.Chk_Volume_Top.checked == true ){
				document.Frm_Kaigi.Chk_Volume.value	= document.Frm_Kaigi.Chk_Volume_Top.value;
			}else{
				document.Frm_Kaigi.Chk_Volume.value	= '';
			}

			if( document.Frm_Kaigi.Chk_Take_Top.checked == true ){
				document.Frm_Kaigi.Chk_Take.value	= document.Frm_Kaigi.Chk_Take_Top.value;
			}else{
				document.Frm_Kaigi.Chk_Take.value	= '';
			}

			if( document.Frm_Kaigi.Chk_Keitai_Top.checked == true ){
				document.Frm_Kaigi.Chk_Keitai.value	= document.Frm_Kaigi.Chk_Keitai_Top.value;
			}else{
				document.Frm_Kaigi.Chk_Keitai.value	= '';
			}

			if( document.Frm_Kaigi.Chk_Take_Top.checked == true ){
				document.Frm_Kaigi.Chk_Take.value	= document.Frm_Kaigi.Chk_Take_Top.value;
			}else{
				document.Frm_Kaigi.Chk_Take.value	= '';
			}

			if( document.Frm_Kaigi.Chk_Party_Top.checked == true ){
				document.Frm_Kaigi.Chk_Party.value	= document.Frm_Kaigi.Chk_Party_Top.value;
			}else{
				document.Frm_Kaigi.Chk_Party.value	= '';
			}

			if( document.Frm_Kaigi.Chk_Plan_Top.checked == true ){
				document.Frm_Kaigi.Chk_Plan.value	= document.Frm_Kaigi.Chk_Plan_Top.value;
			}else{
				document.Frm_Kaigi.Chk_Plan.value	= '';
			}

			document.Frm_Kaigi.Hdn_Sort.value	= '';
			document.Frm_Kaigi.Hdn_Disp.value	= '';
			document.Frm_Kaigi.target			= '_self';
			document.Frm_Kaigi.submit();
		}
	}

	function doSearch_Bottom(Pt_Category_Cd){
		var strMsg = '';

		if( strMsg != '' ){
			alert( strMsg );
		} else {
			document.Frm_Kaigi.action			= './category_list.asp?Hdn_Category_Cd=' + Pt_Category_Cd;

			if( document.Frm_Kaigi.Chk_Car_Bottom.checked == true ){
				document.Frm_Kaigi.Chk_Car.value	= document.Frm_Kaigi.Chk_Car_Bottom.value;
			}else{
				document.Frm_Kaigi.Chk_Car.value	= '';
			}

			if( document.Frm_Kaigi.Chk_Lunch_Bottom.checked == true ){
				document.Frm_Kaigi.Chk_Lunch.value	= document.Frm_Kaigi.Chk_Lunch_Bottom.value;
			}else{
				document.Frm_Kaigi.Chk_Lunch.value	= '';
			}

			if( document.Frm_Kaigi.Chk_Cloak_Bottom.checked == true ){
				document.Frm_Kaigi.Chk_Cloak.value	= document.Frm_Kaigi.Chk_Cloak_Bottom.value;
			}else{
				document.Frm_Kaigi.Chk_Cloak.value	= '';
			}

			if( document.Frm_Kaigi.Chk_Inn_Bottom.checked == true ){
				document.Frm_Kaigi.Chk_Inn.value	= document.Frm_Kaigi.Chk_Inn_Bottom.value;
			}else{
				document.Frm_Kaigi.Chk_Inn.value	= '';
			}

			if( document.Frm_Kaigi.Chk_Smoking_Bottom.checked == true ){
				document.Frm_Kaigi.Chk_Smoking.value= document.Frm_Kaigi.Chk_Smoking_Bottom.value;
			}else{
				document.Frm_Kaigi.Chk_Smoking.value	= '';
			}

			if( document.Frm_Kaigi.Chk_Net_Bottom.checked == true ){
				document.Frm_Kaigi.Chk_Net.value	= document.Frm_Kaigi.Chk_Net_Bottom.value;
			}else{
				document.Frm_Kaigi.Chk_Net.value	= '';
			}

			if( document.Frm_Kaigi.Chk_Volume_Bottom.checked == true ){
				document.Frm_Kaigi.Chk_Volume.value	= document.Frm_Kaigi.Chk_Volume_Bottom.value;
			}else{
				document.Frm_Kaigi.Chk_Volume.value	= '';
			}

			if( document.Frm_Kaigi.Chk_Take_Bottom.checked == true ){
				document.Frm_Kaigi.Chk_Take.value	= document.Frm_Kaigi.Chk_Take_Bottom.value;
			}else{
				document.Frm_Kaigi.Chk_Take.value	= '';
			}

			if( document.Frm_Kaigi.Chk_Keitai_Bottom.checked == true ){
				document.Frm_Kaigi.Chk_Keitai.value	= document.Frm_Kaigi.Chk_Keitai_Bottom.value;
			}else{
				document.Frm_Kaigi.Chk_Keitai.value	= '';
			}

			if( document.Frm_Kaigi.Chk_Take_Bottom.checked == true ){
				document.Frm_Kaigi.Chk_Take.value	= document.Frm_Kaigi.Chk_Take_Bottom.value;
			}else{
				document.Frm_Kaigi.Chk_Take.value	= '';
			}

			if( document.Frm_Kaigi.Chk_Party_Bottom.checked == true ){
				document.Frm_Kaigi.Chk_Party.value	= document.Frm_Kaigi.Chk_Party_Bottom.value;
			}else{
				document.Frm_Kaigi.Chk_Party.value	= '';
			}

			document.Frm_Kaigi.Hdn_Sort.value	= '';
			document.Frm_Kaigi.Hdn_Disp.value	= '';
			document.Frm_Kaigi.target			= '_self';
			document.Frm_Kaigi.submit();
		}
	}


	//施設詳細画面へ
	function doDetail( pt_Kigyo , pt_Tateya ){
		document.Frm_Kaigi.action			=	'./tateya_details.asp?Hdn_Kigyo_Cd=' + pt_Kigyo + '&Hdn_Tateya_Cd=' + pt_Tateya;
		document.Frm_Kaigi.target			=	'_self'
		document.Frm_Kaigi.submit();
	}

	//会場詳細画面へ
	function doDetailKaijyo( pt_Kigyo , pt_Tateya , pt_Kaijyo ){
		document.Frm_Kaigi.action			=	'./kaijyo_details.asp?Hdn_Kigyo_Cd=' + pt_Kigyo + '&Hdn_Tateya_Cd=' + pt_Tateya + '&Hdn_Kaijyo_Cd=' + pt_Kaijyo;
		document.Frm_Kaigi.target			=	'_self'
		document.Frm_Kaigi.submit();
	}

	//地図画面表示
	function chizu_wopen(pt_param){
		window.open("kaigi_chizu.asp?" + pt_param, "chizu","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=537");
	}

	function doDispKaijyo( ptCd , ptFlg ){
		if( ptFlg == 'open' ){
			document.getElementById('table'+ptCd).style.display	='block';
			document.getElementById('open'+ptCd).style.display	='none';
			document.getElementById('close'+ptCd).style.display	='block';
		}else{
			document.getElementById('table'+ptCd).style.display	='none';
			document.getElementById('open'+ptCd).style.display	='block';
			document.getElementById('close'+ptCd).style.display	='none';
		}
	}

	function doDispOsusume( ptFlg ){
		if( ptFlg == 'open' ){
			document.getElementById('osusume').style.display		='block';
			document.getElementById('osusume_open').style.display	='none';
			document.getElementById('osusume_close').style.display	='block';
		}else{
			document.getElementById('osusume').style.display		='none';
			document.getElementById('osusume_open').style.display	='block';
			document.getElementById('osusume_close').style.display	='none';
		}
	}

	function doPaging( ptCnt ){
		document.Frm_Kaigi.Hdn_Disp.value	= ptCnt;
		document.Frm_Kaigi.action			= './category_list.asp';
		document.Frm_Kaigi.target			= '_self';
		document.Frm_Kaigi.submit();
	}

	function doSort( ptFlg ){
		document.Frm_Kaigi.Hdn_Disp.value	= '';

		if( ptFlg == 'TOP' ){
			document.Frm_Kaigi.Hdn_Sort.value	= document.Frm_Kaigi.Cmb_Sort_Top.value;;
		} else {
			document.Frm_Kaigi.Hdn_Sort.value	= document.Frm_Kaigi.Cmb_Sort_Bottom.value;;
		}

//		document.Frm_Kaigi.action			= './category_list.asp';
		document.Frm_Kaigi.action			= './category_list.asp?Hdn_Category_Cd=' + document.Frm_Kaigi.Hdn_Category_Cd.value
		document.Frm_Kaigi.target			= '_self';
		document.Frm_Kaigi.submit();
	}
