00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 function set_all_books(chkbox)
00026 {
00027 var checked = (chkbox.checked ? 'checked' : '');
00028 session.setVar('search->all_books', checked);
00029 }
00030 function set_all_langs(chkbox)
00031 {
00032 var checked = (chkbox.checked ? 'checked' : '');
00033 session.setVar('search->all_langs', checked);
00034 }
00035
00036 function new_search()
00037 {
00038 var form = document.form_new_search;
00039 var expression = form.expression.value;
00040 var all_books = (form.all_books.checked ? 'checked' : '');
00041 var event_args = 'expression=' + expression + ';all_books=' + all_books;
00042 SendEvent('search', 'new_search', event_args);
00043 }
00044
00045 function close_search()
00046 {
00047 SendEvent('main', 'docbook');
00048 }
00049
00050 function search_help()
00051 {
00052 SendEvent('search', 'help');
00053 }
00054
00055 function display(book_id, node_path, lng)
00056 {
00057 var event_args = 'book_id='+book_id+';node_path='+node_path+';lng='+lng;
00058 SendEvent('main', 'docbook', event_args);
00059 }