is there a way to make mozilla work with the .select() command?

in IE6 all i do is
Code:
<script language="JavaScript">
<!--
document.search.input.select();
//-->
</script>
and the input textbox contents is highlighted, but in mozilla the textbox gets the focus than selecting the text as well.

i'm using it for a search box. after the user submits their query, the original search input is still in the box but highlighted so they can just type a new query or right-arrow to add more