function toggleAll(A){$("search").getInputs(null,"search_folders[]").each(function(B){B.checked=A})}function dateCheck(B){var A=$("search_"+B+"_month"),C=$("search_"+B+"_day"),D=$("search_"+B+"_year");if(A.selectedIndex==0){A.selectedIndex=search_month}if(C.selectedIndex==0){C.selectedIndex=search_day}if(D.value==""){D.value=search_year}}function formCheck(){if(not_search&&(!$("preselected_folders")||!$F("preselected_folders"))){if(!Form.getInputs("search",null,"search_folders[]").detect(function(A){return A.checked})){alert(IMP.text.search_select);return false}}$("actionID").setValue("do_search");return true}function search_reset(){$("actionID").setValue("reset_search");$("search").submit();return true}function saveCache(){$("edit_query").setValue($F("save_cache"));$("search").submit()}function delete_field(A){$("delete_field_id").setValue(A);$("actionID").setValue("delete_field");$("search").submit();return true}function show_subscribed(A){$("show_subscribed_only").setValue(A);$("search").submit();return false};