I'm using the following coding in the respective portions of a site.

Head:
Code:
<script language="javascript" type="text/javascript">
<!--
function formhandler(form)
{
	var URL=document.websites.sites.options[document.websites.sites.selectedIndex].value;
	window.location.href=URL;
}
//-->
</script>
Body:
Code:
<form name="websites" action="">
<select name="sites" size="1" onchange="javascript:formhandler()">
<option selected="selected">Sites:</option>
<option value="#">-------------------</option>
<option value="http://www.somesite.com/">Somesite</option>
</select>
</form>
When the second option is selected ("-------------------"), there's a JavaScript error and the form ceases to function until the page is reloaded.

I put the hash mark (#) in there to alleviate this problem, however it did not do the trick.

Any ideas as to how to keep the script functioning when the dashes are selected?