I have this markup
<form name="sortbyformtop">
<select onchange="location.href=sortbyformtop.sortbyselecttop.options[selectedIndex].value" id="sortbyselecttop">
<option value="/Search"></option>
<option value="/Search?sortby=accommodationtype">Accommodation type</option>
...
</select>
</form>
Whenever I select one of the options in the drop down list I get this Javascript error in Firebug:
TypeError: sortbyformtop.sortbyselecttop is undefined
Is this sort of thing possible in some way?
A shorter version: