/* ===== 挿入用 HTMLソース ===== */

//フォームの選択ボタン 賃貸ON
var searchSelectRentHtml = '';

//フォームの選択ボタン 売買ON
var searchSelectSellHtml = '';

//賃貸用 フォーム
var searchOptionRentHtml = '';

//売買用 フォーム
var searchOptionSellHtml = '';



/* ===== ロード時の処理 ===== */


///// 賃貸 /////
function selectRent(){
	//フォームの選択ボタン 賃貸ON
	visibleElement( "searchSelect", searchSelectRentHtml );
	//賃貸フォームを表示
	visibleElement( "searchOption", searchOptionRentHtml );
}

///// 売買 /////
function selectSell(){
	//フォームの選択ボタン 売買ON
	visibleElement( "searchSelect", searchSelectSellHtml );
	//売買フォームを表示
	visibleElement( "searchOption", searchOptionSellHtml );
}
function toggleElm(Id){
    var elm = document.getElementById(Id);
    var textElm = document.getElementById(Id + '_text');
    if(elm.style.visibility == "" || elm.style.visibility == "visible"){
        elm.style.visibility = 'hidden';
        elm.style.position = "absolute"; 
        textElm.innerHTML = '&gt;&gt;さらに絞り込む';
    }else{
        elm.style.visibility = 'visible';
        elm.style.position = "relative"; 
        textElm.innerHTML = '&gt;&gt;閉じる';
    }

}




