function GetSelectedJobIds(caller) {
result = '';
if (caller == null || !caller.hasChildNodes)
return false;
// Loop over all the elements in the form, looking for
// checkboxes to read.
nodes = caller.form.elements;
if (nodes == null)
return false;
for (i = 0; i < nodes.length; i++) {
if (nodes[i].type == "checkbox") {
if (nodes[i].id.indexOf("chkSelectJob") != -1) {
if (nodes[i].checked || nodes[i].checked=='checked') {
result = result + ',' + nodes[i].parentNode.parentNode.parentNode.childNodes[2].innerText;
}
nodes[i].checked = false;
}
else if (nodes[i].id.indexOf("chkSelectAllJobs") != -1) {
nodes[i].checked = false;
}
}
}
|