The Chi Row answer is a good option for the problem, but I've found an error i the onclick
arguments. Instead, would be:
<select size="1" position="absolute" onclick="size=(size!=1)?1:n;" ...>
(And mention you must replace the "n" with the number of lines you need)