function GatherAllTicked()
{
var checkedList = [];
var rejectList = [];
var allCheckboxClasses = document.getElementsByClassName(“checkboxClass”);
for(var i = 0; i < allCheckboxClasses.length; i++)
{
if (allCheckboxClasses[i].checked == true && include(rejectList, allCheckboxClasses[i].id) == false)
{
var allChildrenTypes = allCheckboxClasses[i].parentElement.parentElement.getElementsByClassName("checkboxClass");
var AllChildrenChecked = true;
for(var j = 1; j < allChildrenTypes.length; j++)
{
if (allChildrenTypes[j].checked == false)
AllChildrenChecked = false;
}
if (AllChildrenChecked == true)
{
//checkedList.push(allCheckboxClasses[i].id);
for(var j = 1; j < allChildrenTypes.length; j++)
{
if (allChildrenTypes[j].name == "file")
checkedList.push(allChildrenTypes[j].id);
else
rejectList.push(allChildrenTypes[j].id);
}
}
}
}
return checkedList;
}