All you need to do is to set the .selectedIndex property to a variable and change that variable dynamically to whatever you want like this (simplified):
myCookie=parseInt(document.cookie)
document.getElementById('mySelectBox').selectedInd ex = myCookie
This of course has to be done after the selectbox has been rendered on the page otherwise you'll end up with a reference error...