I assume you call your function somewhere in an ONCLICK event in the submitbutton?
Try something like this (just a quick answer, I did not a syntax check ):
<script language="javascript">
function validateOffense(TheValue)
{
var playerStatus1 = TheValue;
alert ("test1: " + playerStatus1)
return true;
}
</script>
<form name="MyForm">
<%Response.Write "<select name=" & "position" & nPlayer & " size=1 valign=middle" & ">" %>
<option VALUE=0>START
<option VALUE=1>BENCH
</select>
<input type="submit" value="go for it" name="submit1" ONCLICK="javascript:validateOffense(document.MyForm.position8.options[MyForm.position8.selectedIndex].value);">
</form>
(make the input button also with a response.write of course)
Erik <!-- My sport:
Boomerang throwing !!
This year I will participate at the World Championships in Germany. (
!! Many Happy Returns !! -->