//京

function postClick(inURL){

	document.ListForm.action = inURL;
	document.ListForm.submit();
	//return false;

}

function openDetailWindow(inFileName,inRibNo,inOpt){
	aURL = inFileName + "?RibNo=" + inRibNo + inOpt;
	aWin = window.open(aURL,inRibNo,"width=770,height=700,scrollbars=2,resizable=1,toolbar=0,menubar=0,location=0,directories=0,status=1");
	aWin.focus;
	return false;
}

function openMapWindow(inLat,inLng){
	aURL = "show_map.php?Lat=" + inLat + "&Lng=" + inLng;
	aWin = window.open(aURL,"map","width=700,height=700,scrollbars=2,resizable=1,toolbar=0,menubar=0,location=0,directories=0,status=1");
	aWin.focus;
	return false;
}

//Ribセッションカートに追加
function setRibSessionCartLocal(inSSID,inSID,inRibNo,inKindNo,inSW){
	var aStatus;
	aStatus = 0
	if( inSW  == true ){ aStatus = 1; }

	setRibSessionCart(inSSID,inSID,inRibNo,inKindNo,aStatus);

}

//絞り込み拡張エリアのオン・オフ
function switchSearchEx(inForce,inObj){

	//if(! document.getElementById){ return; }
	
	if( inForce == false && inObj == null ){ return; }
	
	if( inForce == true ){
		//強制的に拡張状態に変更
		document.getElementById("ex-area").style.display = "block";
		document.getElementById("ex-arrow").src = "images/arrow_up.gif";
		document.getElementById("ex-str").innerHTML = "閉じる";
	}else{
		if( document.getElementById("ex-area").style.display == "none" || document.getElementById("ex-area").style.display == "" ){
			document.getElementById("ex-area").style.display = "block";
			document.getElementById("ex-arrow").src = "images/arrow_up.gif";
			document.getElementById("ex-str").innerHTML = "閉じる";
		}else{
			document.getElementById("ex-area").style.display = "none";
			document.getElementById("ex-arrow").src = "images/arrow_down.gif";
			document.getElementById("ex-str").innerHTML = "さらに条件を追加";
		}
	}

}

//上部ＰＲエリアのオン・オフ
function showPR(id){

	document.getElementById('cmt' + id).style.display = 'none';
	document.getElementById('pr' + id).style.display = 'block';
	
}

