You're kind of going the long way around with this code. Have you tried running it in Acrobat/Reader? I tried it and the dialog displays, there are no errors reported. But there is a problem with the bChk# members, they are not properly defined. However, if this is being used on a 3rd party viewer the issue could be with an unsupported feature. I've done a lot of work with 3rd party viewers and if you want some consulting on the issue you can contact me. Message me through this site.
I would suggest rewriting this code in a more sensible manner. And adding some formatting so it can be read.
The builder input is nothing, get rid of it. This looks like a segment of code from someone that was trying to create an object factory, but never completed it.
It you want to find out more about Acrobat dialogs, see this site, in even has a dialog designer tool, so you don't have to write this code by hand.