I am trying to adapt an existing script which returns a list of URLS from my website based on an entry in a search box.

I would like to adapt it so that I can enter a value other than the string value "xxx" but so that I can search for "xxx" or "yyy".

I can see that the script uses the function GetElementsByName with a Name value. Is there any way that I can change the value of the Name to be '"xxx" or "yyy"' instead of just "xxx" or should I be using a different function?

Thank you in advance for your help and advice