IE8 error
I found that populating the dynamic dropdown was working in FF but failing in IE8. I'm not sure what changed to cause the problem, but turned out to be with the MM_findObj function which was failing leading to:
options.length is null or not an object.
When I replaced that function with the simple:
document.getElementById('setStyle')
Everything worked fine.