// 詳細検索Submit
function fncSubmitForm(){

	document.frmOpSearch.hidOption.value = "";

	// クーポン
	if (document.frmOpSearch.chkCoupon.checked) {
		document.frmOpSearch.hidOption.value += "1 ";
	}else{
		document.frmOpSearch.hidOption.value += "0 ";
	}
	// 駐車場
	if (document.frmOpSearch.chkParking.checked) {
		document.frmOpSearch.hidOption.value += "1 ";
	}else{
		document.frmOpSearch.hidOption.value += "0 ";
	}
	// 詳細情報
	if (document.frmOpSearch.chkDetail.checked) {
		document.frmOpSearch.hidOption.value += "1 ";
	}else{
		document.frmOpSearch.hidOption.value += "0 ";
	}

	// オプション情報取得
//2009/10/28 UPDATE START souma チェックボックスが１つしかなかったときの対応追加
//	var counter = 0; 
//	var chk_max = document.frmOpSearch.chkOption.length; //CheckBoxの数 
//	for (var i=0; i<chk_max; i++){ 
//		if (document.frmOpSearch.chkOption[i].checked) { 
//			document.frmOpSearch.hidOption.value += "" + document.frmOpSearch.chkOption[i].value + " ";
//			counter++; 
//		} 
//	}

	//チェックボックスの存在チェック
	if (!!document.frmOpSearch.chkOption) {
		//チェックボックスが１つしかなかったら
		if (document.frmOpSearch.chkOption.length == undefined) { 
			if (document.frmOpSearch.chkOption.checked) { 
				document.frmOpSearch.hidOption.value += "" + document.frmOpSearch.chkOption.value + " ";
			} 
		//チェックボックスが複数あったら
		}else{
			var counter = 0; 
			var chk_max = document.frmOpSearch.chkOption.length; //CheckBoxの数 
			for (var i=0; i<chk_max; i++){ 
				if (document.frmOpSearch.chkOption[i].checked) { 
					document.frmOpSearch.hidOption.value += "" + document.frmOpSearch.chkOption[i].value + " ";
					counter++; 
				} 
			}
		}
	} 
//2009/08/25 UPDATE END souma **************************************************
	
	document.frmOpSearch.submit();

}

