Ok a couple of things:
first, .getElementsByName() returns an array, so referring to the array's reference doesn't get you what you want.
Second, I don't think that function can be applied to search children, and you don't really need it to, since it looks through the whole document...
will capture it, but you'll have to trim the ending quote, and the "NextPage" text. I think it's possible to make the quote not capture, but I don't remember how :confused:
Or like ptnl said you could do something like...
Where are you storing the user's search(database? cookie? wax blocks? :P)?
How would you use a stored search to rebuild the screen state?
How are you pulling search preferences from the screen to build the query?