(...) uld have parameters for - field name - parent HTML element - label HTML element. If this is the customer DOM The function would be called like this CreateField("AttChoose1",document.GET ElementById("myCustomFieldContainer"),document.GET ElementById("myCustomFieldLabelContainer") and it would create the minimal elements required for the field to be working inside the container: (...)