You can get a select's value with something like this:
var e = document.getElementById("dimen"); var myDimen = e.options[e.selectedIndex].value;
After that you have to associate the value with some sizes. Eg. 1 will stand for 100 * 90, 2 will stand for 200*120, etc.
Hope this helps.