//**************************************************************************
// 表示・非表示切替
//**************************************************************************
function showhide( pId ){
	if ( document.getElementById ) {
		var obj = document.getElementById( pId );
		if ( obj ){
			if ( obj.style.display == "block" ){
				obj.style.display = "none";
			} else {
				obj.style.display = "block";
			}

			//詳細画面こだわり検索用
			if ( pId == "id_kodawari" ) {
				var obj2 = document.getElementById( "ctl00_ContentPlaceHolder1_search_cond_KODAWARI" );
				if ( obj2 ){
					if ( obj.style.display == "block" ){
						obj2.value = "on";
					} else {
						obj2.value = "off";
					}
				}
			}
		}
	}
}

//**************************************************************************
// 表示・非表示切替
//     pIdList ： IDをカンマ区切りで指定

//**************************************************************************
var gDisplayAll = "none";
function showhideAll( pIdList ){
	if ( pIdList == null ) return false;
	if ( pIdList.replace("　","").replace(" ","") == "" ) return false;
	if ( !document.getElementById ) return false;

	var aryId = pIdList.split(",");
	for ( var i=0; i<aryId.length; i++ ) {
		var obj = document.getElementById( aryId[i] );
		if ( obj ){
			if ( gDisplayAll == "block" ){
				obj.style.display = "none";
			} else {
				obj.style.display = "block";
			}
		}
	}
	
	if ( gDisplayAll == "block" ) {
		gDisplayAll = "none";
	} else {
		gDisplayAll = "block";
	}
}
