var amorphous =document.database.list.value;
temp_str = amorphous.substring(amorphous.length-2,amorphous.length);
if (temp_str.indexOf("*") == -1)
amorphous += "* ";
else
amorphous += " "; // amorphous database must have characters after last asterisk
database_length = 0; // Netscape 2 fix
var database = new Database(); // read in from amorphous database
menu_length = 0; // Netscape 2 fix
var menu = new Object();
string = "";
and_search = "or";
if (location.search.length > 1) {
string = unescape(location.search.substring(1,location.search.length));
pos = 0;
while ((pos = string.indexOf('"',pos)) != -1) {
string = string.substring(0,pos) + '\\"' + string.substring(pos+1,string.length);
pos += 2;
}
if (string.substring(string.length-4,string.length) == "&and") {
string = string.substring(0,string.length-4);
and_search = "and";
} else if (string.substring(string.length-6,string.length) == "&exact") {
string = string.substring(0,string.length-6);
and_search = "exact";
} else if (string.substring(string.length-3,string.length) == "&or") {
string = string.substring(0,string.length-3);
and_search = "or";
}
search(string);
}
if (location.search.length > 1)
document.write('Otsingu Tulemused :
\n');
// eliminate the keywords portion of the statement below to eliminate them from your display
//document.write("
| No. | SÕNA | SELGITUS | '+menu[n].title +' | '+redWord(menu[n].keywords)+' | ' +redWord(menu[n].description)+' | '); ii=kk+1; kk=ii; } if ((menu_length == 0) && (location.search.length > 1)) document.write('Antud sõna "'+string+'" ei ole sõnaraamatus!\n'); document.write('
Andmebaas koosneb: "'+database_length+'" ridadest
\n'); document.write('Andmebaasis : "'+menu_length+'" read sisaldavad sõna: "'+string+'"
\n');