Html java script not working

Could anyone please let me know what went wrong with the below html code ..

<html>
<head>
<script type="text/javascript">
function check(elem) {
    document.getElementById('mySelect1').disabled = !elem.selectedIndex;
}
</script>
</head>
<body>
<form>
<select id="mySelect" onChange="enable();">
<option onSelect="disable();">No</option>
<option onSelect="enable();">Yes</option>
</select>
<select id="mySelect1" disabled="disabled" >
<option>Dep1</option>
<option>Dep2</option>
<option>Dep3</option>
<option>Dep4</option>
</select>
</form>
</body>

Thanks in advance ...

This looks way off. The only function I see is the check function. The actions you're trying to invoke, onchange and onselect of those forms elements aren't defined. Try an internet search for a form that resembles the functions you want to try "Google javascript forms"