- body.innerHTML = '<div class="pages">' +
- make_pager(merged, start, 20) +
- '</div>';
-
- body.innerHTML += '<div class="results">Records : ' + (start + 1) +
- ' to ' + (start + num) + ' of ' + merged +
- ' (total hits: ' + total + ')</div><br/><br/>';
-
-/*
- if (start + num < merged)
- body.innerHTML += ' <a href="" ' +
- 'onclick="document.search.startrec.value=' + (start + recstoshow) +
- ";update_action('page')" +
- ';check_search(); update_history(); return false;">Next</a>';
-
- if (start > 0)
- body.innerHTML += ' <a href="" ' +
- 'onclick="document.search.startrec.value=' + (start - recstoshow) +
- ";update_action('page')" +
- ';check_search(); update_history();return false;">Previous</a>';
-
- body.innerHTML += '<br/>';
-*/
- body.innerHTML += '<div class="records">';
+ var pager = make_pager(merged, start,recstoshow);
+ var break_node1 = document.createElement('br');
+ var break_node2 = document.createElement('br');
+ var record_container = document.createElement('div');
+ var interval = create_element('div', 'Records : ' + (start + 1) +
+ ' to ' + (start + num) + ' of ' +
+ merged + ' (total hits: ' +
+ total + ')');
+ searched = 1;
+ interval.className = 'results';
+ record_container.className = 'records';
+
+ body.appendChild(pager);
+ body.appendChild(interval);
+ body.appendChild(break_node1);
+ body.appendChild(break_node2);
+ body.appendChild(record_container);