// 詳細表示
function show_detail_content(actlog_code) {
    // urlセット
    var url = $("common_hide_form").base_url.value + "/actlog/list_ajax.php" 
            + "?action=get_detail_content_ajax"
            + "&actlog_code=" + encodeURIComponent(actlog_code);

    // コンテンツのセット先ＩＤ
    var content_id = "detail_content";
    
    // Ａｊａｘでリクエスト
    var httpObj = createXMLHttpRequest(displayData);
    
    if (httpObj)
    {
        httpObj.open("GET", url, true);
        httpObj.send(null);
    }

    function displayData()
    {
        if ((httpObj.readyState == 4) && 
            (httpObj.status == 200))
        {
            $(content_id).innerHTML = httpObj.responseText;
//            $(content_id).style.display = "block";
    
            // コンテンツ全体の高さ取得
            var h = document.body.clientHeight;
            h = Math.max(h, document.body.scrollHeight);
            h = Math.max(h, document.documentElement.scrollHeight);
            h = Math.max(h, document.documentElement.clientHeight);
            
            // wrapper の高さを設定
            $("detail_content_wrapper").style.height = h + "px";
            $("detail_content_wrapper").style.display = "block";
            
            // ページのトップへ戻る
            backToTop();
        }
    }
}


// 詳細非表示
function hide_detail_content() {
    // 非表示
    $("detail_content_wrapper").style.display = "none";
}


// アクトログ検索
function keyword_search_actlog() {
    // 現在のリスト情報取得
    var keyword = $("keyword_search_form").keyword.value;
    
    if (keyword == "") {
        alert("キーワードを入力してください。");
        return false;
    }
    
    // urlセット
    var url = "actlog/list.php"
            + "?keyword=" + encodeURIComponent(keyword);
    
    location.href = url;
}


// ターゲット検索
function keyword_search_target() {
    // 現在のリスト情報取得
    var keyword = $("keyword_search_form").keyword.value;
    
    if (keyword == "") {
        alert("キーワードを入力してください。");
        return false;
    }
    
    // urlセット
    var url = "list/target.php"
            + "?keyword=" + encodeURIComponent(keyword);
    
    location.href = url;
}


// メンバー検索
function keyword_search_member() {
    var keyword = $("keyword_search_form").keyword.value;
    
    if (keyword == "") {
        alert("キーワードを入力してください。");
        return false;
    }
    
    // urlセット
    var url = "list/member.php"
            + "?keyword=" + encodeURIComponent(keyword);
    
    location.href = url;
}
