function search() {
    var text = $("#freeWord").val();
    if (text == "") {
        alert("検索語句を入力してください。");
        $("#freeWord").focus()
        return false;
    }
    $.cookie("search_form", "", { path: "/", expires: -1 });
    $.cookie("search_form", $("#frmSearch").serialize(), { path: "/", expires : 3 });
    return true;
}
function beforeSearch(pref) {
    var str = $.cookie("search_form");
    $.cookie("search_form", "", { path: "/", expires : -1 });
    $.cookie("search_form", encodeURIComponent("pref[]="+pref), { path: "/", expires : 3 });
    return true;
}
