I've been tearing my hair out to try and get this working. I'm trying to make a select menu which, when an element is selected and the submit button pressed, it does a function. This is a simplified version of the code:

<html>
<head>
<script type="text/javascript">
function blah()
{
if (document.form.select.one.selected)
{ alert("Hello")
}
if (document.form.select.two.selected)
{ alert("Goodbye")
}
}
</script>
</head>
<body>
<form name="form" onsubmit="blah()">
<select name="select">
<option name="one" value="one">One</option>
<option name="two" value="two">Two</option>
<option name="three" value="three">Three</option>
</select>
<input type="submit" name="click" value="Go!"></input>
</form>
</body>
</html>


Please help me. I don't know where to go with this. I've already tried several variations but none worked.