$(function(){

    // #checkAll をクリックしたとき，全てのチェックボックスをチェックします．
    $("#checkAll").click(function(){
        $(this).parents("form").find("input[@type='checkbox']").attr('checked', true);
        return false;
    });
    // #unCheckAll をクリックしたとき，全てのチェックボックスのチェックを解除します．
    $("#unCheckAll").click(function(){
        $(this).parents("form").find("input[@type='checkbox']").attr('checked', false);
        return false;
    });

    // #checkMetroPolisAll をクリックしたとき，全てのチェックボックスをチェックします．
    $("#checkMetroPolisAll").click(function(){
        $("form td.search_kut").find("input[@type='checkbox']").attr('checked', true);
        return false;
    });
    // #unCheckMetroPolisAll をクリックしたとき，全てのチェックボックスのチェックを解除します．
    $("#unCheckMetroPolisAll").click(function(){
        $("form td.search_kut").find("input[@type='checkbox']").attr('checked', false);
        return false;
    });
    // #checkOthersAll をクリックしたとき，全てのチェックボックスをチェックします．
    $("#checkOthersAll").click(function(){
        $("form td.search_kut_other").find("input[@type='checkbox']").attr('checked', true);
        return false;
    });
    // #unCheckOthersAll をクリックしたとき，全てのチェックボックスのチェックを解除します．
    $("#unCheckOthersAll").click(function(){
        $("form td.search_kut_other").find("input[@type='checkbox']").attr('checked', false);
        return false;
    });

});
function ext_cond_search(show_flag) {
    document.forms[0].premisesExtFootprint.value = show_flag;
    document.forms[0].submit();
}
//ソートキーを変更
function chg_order(sort_key) {
    document.forms[0].premisesSortKey.value = sort_key;
    document.forms[0].submit();
}
//退会処理
function resign() {
    if(window.confirm('退会処理を行います。')){ 
        document.forms[0].submit();
        return true;
    } else {
        return false;
    }
}