+function set_termlist(termlist)
+{
+ cur_termlist = termlist;
+ check_termlist();
+ if (termtimer)
+ {
+ clearTimeout(termtimer);
+ termtimer = 0;
+ }
+}
+
+function show_termlistoptions(body)
+{
+ var opts = Array(
+ Array('subject', 'Subject'),
+ Array('author', 'Author')
+ );
+
+ for (i in opts)
+ {
+ if (opts[i][0] == cur_termlist)
+ body.innerHTML += opts[i][1];
+ else
+ body.innerHTML += '<a href="" onclick="set_termlist(\'' + opts[i][0] +
+ '\'); return false">' + opts[i][1] + '</a>';
+ body.innerHTML += ' ';
+ }
+ body.innerHTML += '<p>';
+}
+