Hi Potion Maker,
I should have marked this one as resolved - Martijn's solution worked perfectly.
I'm not sure how you would get it working with yours, but I'd try generating a string from the two components, then sticking them thru the generateURLSegment function.
Les