Hmmm. It looks like the Javascript onchange event is telling your select element to adopt the value of ... whatever you selected in that element. There's no need for Javascript, here, that's default select element behavior. You haven't included anything else, so it doesn't do anything else.
Are you trying to execute an AJAX routine that populates the table values with values drawn from a db when the select element is changed? Your code as posted doesn't go far enough. The onchange event needs to trigger the AJAX routine. As it is, there's nothing wrong with this except the extraneous script.
All that aside, Javascript can seem pretty evil, at times.
