function Page(url,title,keywords,description) { while ((url.length > 0) && (url.charAt(0) == " ")) { url = url.substring(1,url.length); } this.url = url; while ((title.length > 0) && (title.charAt(0) == " ")) { title = title.substring(1,title.length); } this.title = title; this.keywords = keywords; this.description = description; return this; } function Database() { var pos = 0; while ((pos1 = amorphous.indexOf("~",pos)) != -1) { pos2 = amorphous.indexOf("|",pos1+1); pos3 = amorphous.indexOf("^",pos2+1); pos4 = amorphous.indexOf("*",pos3+1); if ((pos2 != -1) && (pos2 0) words_length++; if (str.length == 1) str=""; else str = str.substring(pos+1,str.length); } if (str.length > 0) words[words_length++] = str; for (q=0;q0?menu_length:database_length); for (n=0; n0) { combo = (menu[n].title + " " + menu[n].description + " " + menu[n].keywords).toLowerCase(); } else { combo = (database[n].title + " " + database[n].description + " " + database[n].keywords).toLowerCase(); } if (combo.indexOf(str) != -1) // found temp[temp_length++] = (and_search=="and"&&q>0?menu[n]:database[n]); } if (and_search!="and" && q>0) { added = 0; for (i=0;i" + str.substring(pos+1,str.length); pos = -7; while ((pos = str.toLowerCase().indexOf("|",pos+7)) != -1) str = str.substring(0,pos) + "" + str.substring(pos+1,str.length); return str.substr(0,240); } 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); } document.write('
' +'' +'
Search this site for
' +'
' +' 

' +'
'); if (location.search.length > 1) document.write('
' +' [Matches Found : ' + menu_length + ']
' +'
\n'); for (n=1; n'+menu[n-1].title +'
'+redWord(menu[n-1].description)+'

\n'); if ((menu_length == 0) && (location.search.length > 1)) document.write('Keyword "'+string+'" not found!\n'); if (location.search.length > 1) document.write('
');