27 |
|
|
28 |
function go(f) |
function go(f) |
29 |
{ |
{ |
30 |
if(!document.search.query) |
var form = document.getElementById('search'); |
31 |
|
var query = form.elements['query'].value; |
32 |
|
var index_name = form.elements['index_name'].options[form.elements['index_name'].selectedIndex].value; |
33 |
|
|
34 |
|
if(!query) |
35 |
{ |
{ |
36 |
return false; |
return false; |
37 |
} |
} |
38 |
|
|
|
var query=document.search.query.value; |
|
|
var index_name=document.search.index_name.value; |
|
|
|
|
39 |
if(query == null || query == "") |
if(query == null || query == "") |
40 |
{ |
{ |
41 |
alert("No search terms entered!"); |
alert("No search terms entered!"); |
116 |
var e = document.createElement("font"); |
var e = document.createElement("font"); |
117 |
|
|
118 |
e = document.createElement("a"); |
e = document.createElement("a"); |
119 |
e.setAttribute("href",result[i].link+location.search); |
e.setAttribute("href","browse.html?o="+result[i].link+"#mfn"+result[i].link); |
|
// e.setAttribute("target","_blank"); |
|
120 |
e.appendChild(document.createTextNode(result[i].title)); |
e.appendChild(document.createTextNode(result[i].title)); |
121 |
d.appendChild(e); |
d.appendChild(e); |
122 |
d.appendChild(document.createTextNode(" ")); |
d.appendChild(document.createTextNode(" ")); |
123 |
|
|
124 |
|
e = document.createElement("a"); |
125 |
|
e.setAttribute("href","thes/"+result[i].link+".html"+location.search); |
126 |
|
e.setAttribute("target","popup"); |
127 |
|
e.onclick = function() { return popup(e) }; |
128 |
|
e.appendChild(document.createTextNode("\u00bb")); |
129 |
|
d.appendChild(e); |
130 |
|
/* |
131 |
e = document.createElement("font"); |
e = document.createElement("font"); |
132 |
e.setAttribute("color","gray"); |
e.setAttribute("color","gray"); |
133 |
e.appendChild(document.createTextNode("["+result[i].frequency+"]")); |
e.appendChild(document.createTextNode("["+result[i].frequency+"]")); |
134 |
d.appendChild(e); |
d.appendChild(e); |
135 |
d.appendChild(document.createElement("br")); |
*/ |
136 |
d.appendChild(document.createElement("br")); |
d.appendChild(document.createElement("br")); |
137 |
} |
} |
138 |
|
|