/**** checkAllGeos* * Toggle all Geo/Language checkboxes on or off. Uses prototype.js** @author Timothy Lorens* @since 09/19/2007**/function checkAllGeos(){ var aryGeos = new Array(); // Seek out all form checkbox elements that start with 'chkGeo' var aryFormGeos = Form.getInputs('frmNodes','checkbox').findAll(function(s) { return s.name.startsWith('chkGeo_'); }); $('cboGeo').value = ''; // Loop through Geo checkboxes building an array of checked items. aryFormGeos.each(function(e) { if ($('chkAllGeos').checked) { e.checked = true; aryGeos.push(e.value); } else { e.checked = false; } }); // Populate the hidden form field with all the checked LOBS ( comma delimited for use with the stored procedures ) $('cboGeo').value = aryGeos.join(',');}// END checkAllGeos