Changed function getInputField

The configuration variables are now defined at the beginning of the
function.
Added a configuration for "checked" attribute - when it is defined, the
blank option will not be added.
The value/label/checked values are extracted by a slightly different
way.