// Load the keywords and the graphics to show title_graphics = new Array(); title_graphics["bike"] = "t-bike.gif"; title_graphics["computer"] = "t-computer.gif"; title_graphics["hardware"] = "t-hardware.gif"; title_graphics["power sport"] = "t-powersport.gif"; title_graphics["ski or snowboard"] = "t-ski.gif"; title_graphics["u-lock"] = "t-ulock.gif"; title_graphics["cable"] = "t-cable.gif"; title_graphics["chain"] = "t-chains.gif"; title_graphics["disc"] = "t-disc.gif"; title_graphics["padlock"] = "t-padlocks.gif"; title_graphics["motion"] = "t-motion.gif"; title_graphics["stationary"] = "t-stationary.gif"; title_graphics["accessories"] = "t-accessory.gif"; function searchbykeyword(keyword) { if ( !keyword ) { keyword = document.searchform.find_textbox.value; if ( !keyword ) { alert("Please enter a keyword for searching.") document.searchform.find_textbox.focus(); return false; } } // Set the keyword in the find textbox document.searchform.find_textbox.value = "(authors has " + keyword + ")"; // Set the article list based on the keyword selected title_graphic = title_graphics[keyword]; // Was the keyword found? if ( !title_graphic ) { // Nope, default it title_graphic = "t-products.gif"; } // Set the article list to jump to document.searchform.titlegraphic.value = title_graphic; // So the search with the selected keyword document.searchform.submit(); return true; }