+
+ else if (evt.shiftKey) {
+
+ // Group select: first clear everything out...
+ if (CtdlNumMsgsSelected > 0) {
+ for (i=0; i<CtdlNumMsgsSelected; ++i) {
+ $('m'+CtdlMsgsSelected[i]).style.backgroundColor = '#fff';
+ $('m'+CtdlMsgsSelected[i]).style.color = '#000';
+ }
+ }
+ CtdlNumMsgsSelected = 0;
+
+ // Then highlight and select the group.
+ // Traverse the table looking for a row whose ID contains the desired msgnum
+
+ var in_the_group = 0;
+ var is_edge = 0;
+ var table = $('summary_headers');
+ if (table) {
+ for (var r = 0; r < table.rows.length; r++) {
+ var thename = table.rows[r].id;
+ if ( (thename.substr(1) == msgnum) || (thename.substr(1) == CtdlLastMsgnumSelected) ) {
+ in_the_group = 1 - in_the_group;
+ is_edge = 1;
+ }
+ else {
+ is_edge = 0;
+ }
+ if ( (in_the_group == 1) || (is_edge == 1) ) {
+ // Highlight it...
+ table.rows[r].style.backgroundColor='#69aaff';
+ table.rows[r].style.color='#fff';
+
+ // And add it to the selected messages list.
+ CtdlNumMsgsSelected = CtdlNumMsgsSelected + 1;
+ CtdlMsgsSelected[CtdlNumMsgsSelected-1] = thename.substr(1);
+ }
+ }
+ }
+ }
+