function search(){
	var alllimit = 8;
	var onemore = 0; 
	// age
	var agemore = 0;
	ageobj = document.getElementsByName("age[]");
	agecount = ageobj.length;
	for(i=0;i<agecount;i++){
		if(ageobj[i].checked){
			onemore++;
			agemore++;
			if(onemore>alllimit){
				alert('検索条件を'+alllimit+'個以下に選択してください。');
				return false;
			}
		}
	}

	// tall
	var tallmore = 0;
	tallobj = document.getElementsByName("tall[]");
	tallcount = tallobj.length;
	for(i=0;i<tallcount;i++){
		if(tallobj[i].checked){
			onemore++;
			tallmore++;
			if(onemore>alllimit){
				alert('検索条件を'+alllimit+'個以下に選択してください。');
				return false;
			}
		}
	}

	// cup
	var cupmore = 0;
	cupobj = document.getElementsByName("cup[]");
	cupcount = cupobj.length;
	for(i=0;i<cupcount;i++){
		if(cupobj[i].checked){
			onemore++;
			cupmore++;
			if(onemore>alllimit){
				alert('検索条件を'+alllimit+'個以下に選択してください。');
				return false;
			}
		}
	}

	// type
	var typemore = 0;
	typeobj = document.getElementsByName("type[]");
	typecount = typeobj.length;
	for(i=0;i<typecount;i++){
		if(typeobj[i].checked){
			onemore++;
			typemore++;
			if(onemore>alllimit){
				alert('検索条件を'+alllimit+'個以下に選択してください。');
				return false;
			}
		}
	}

	// play
	var playmore = 0;
	playobj = document.getElementsByName("play[]");
	playcount = playobj.length;
	for(i=0;i<playcount;i++){
		if(playobj[i].checked){
			onemore++;
			playmore++;
			if(onemore>alllimit){
				alert('検索条件を'+alllimit+'個以下に選択してください。');
				return false;
			}
		}
	}

	// area
	var areamore = 0;
	areaobj = document.getElementsByName("shop_area[]");
	areacount = areaobj.length;
	for(i=0;i<areacount;i++){
		if(areaobj[i].checked){
			onemore++;
			areamore++;
			if(onemore>alllimit){
				alert('検索条件を'+alllimit+'個以下に選択してください。');
				return false;
			}
		}
	}

	// type
	var typemore = 0;
	typeobj = document.getElementsByName("shop_type[]");
	typecount = typeobj.length;
	for(i=0;i<typecount;i++){
		if(typeobj[i].checked){
			onemore++;
			typemore++;
			if(onemore>alllimit){
				alert('検索条件を'+alllimit+'個以下に選択してください。');
				return false;
			}
		}
	}

	if(onemore == 0){
		alert('検索条件を一個以上選択してください。');
		return false;
	}
	document.girl.submit();
}
