I have a multiple select list box that is enabled and disabled by a Checkbox, what I want to be able to do is clear out an pre-selected items after the box has been disabled. At the minute when I re-enable the box the prevoiusly selected items are still showing as being selected.

The code I'm trying to use is.
<input type="checkbox" name="chk1" value="chk1" onClick="if (chk1.checked) document.frmMethods.EG.disabled=true; else document.frmMethods.EG.disabled=false; ">

<select name="EG" size="4" multiple onChange="if (EG.disabled) EG.selectedIndex=0;">

Thanks