function lump_inquiry(){
	if(checked_check() == 1){
		document.ctrlform.action = '/inquiry.php';
		document.ctrlform.method = 'post';
		document.ctrlform.submit();
	}else{
		window.alert("物件を指定してください！");
	}
}
function lump_detail(){
	if(checked_check() == 1){
		document.ctrlform.action = '/detail.php';
		document.ctrlform.method = 'post';
		document.ctrlform.submit();
	}else{
		window.alert("物件を指定してください！");
	}
}
function lump_bm(){
	if(checked_check() == 1){
		document.ctrlform.action = '/bookmark.php';
		document.ctrlform.method = 'post';
		document.ctrlform.act.value = "set";
		document.ctrlform.submit();
	}else{
		window.alert("物件を指定してください！");
	}
}
function lump_remove(){
	if(checked_check() == 1){
		document.ctrlform.action = '/bookmark.php';
		document.ctrlform.method = 'post';
		document.ctrlform.act.value = "remove";
		document.ctrlform.submit();
	}else{
		window.alert("物件を指定してください！");
	}
}
function check_all(){
	for(i = 0; i < document.ctrlform.elements.length; i++){
		if(document.ctrlform.elements[i].name == "bukken_cd[]"){
			document.ctrlform.elements[i].checked = true;
		}
	}
}
function checked_check(){
	var checked_flg = 0;
	for(i = 0; i < document.ctrlform.elements.length; i++){
		if(document.ctrlform.elements[i].name == "bukken_cd[]" && document.ctrlform.elements[i].checked){
			checked_flg = 1;
			break;
		}
	}
	return checked_flg;
}
