﻿function InsertMultiChoiceDropDownContent(content, containerObject) {
    if (containerObject != null) {
        containerObject.innerHTML = content;
    }
}
function ManageMultiChoiceDropDown(obj) {    

    if (obj.style.display == 'none') {
        obj.style.display = '';
    }
    else {
        obj.style.display = 'none';
    }
}
function BindDataMultiChoiceDropDown(sender, groupName, ddlTextId, text) {

    var obj = document.getElementsByName(groupName);
    var counter = 0;
    for (i = 0; i < obj.length; i++) {
        if (obj.item(i).checked == true) {
            counter++;
        }
    }
    document.getElementById(ddlTextId).value = text + '(' + counter.toString() + ')';    
}
