1function SetDisplay(RowClass, DisplayVal) 2{ 3 var Rows = document.getElementsByTagName("tr"); 4 for ( var i = 0 ; i < Rows.length; ++i ) { 5 if (Rows[i].className == RowClass) { 6 Rows[i].style.display = DisplayVal; 7 } 8 } 9} 10 11function CopyCheckedStateToCheckButtons(SummaryCheckButton) { 12 var Inputs = document.getElementsByTagName("input"); 13 for ( var i = 0 ; i < Inputs.length; ++i ) { 14 if (Inputs[i].type == "checkbox") { 15 if(Inputs[i] != SummaryCheckButton) { 16 Inputs[i].checked = SummaryCheckButton.checked; 17 Inputs[i].onclick(); 18 } 19 } 20 } 21} 22 23function returnObjById( id ) { 24 if (document.getElementById) 25 var returnVar = document.getElementById(id); 26 else if (document.all) 27 var returnVar = document.all[id]; 28 else if (document.layers) 29 var returnVar = document.layers[id]; 30 return returnVar; 31} 32 33var NumUnchecked = 0; 34 35function ToggleDisplay(CheckButton, ClassName) { 36 if (CheckButton.checked) { 37 SetDisplay(ClassName, ""); 38 if (--NumUnchecked == 0) { 39 returnObjById("AllBugsCheck").checked = true; 40 } 41 } 42 else { 43 SetDisplay(ClassName, "none"); 44 NumUnchecked++; 45 returnObjById("AllBugsCheck").checked = false; 46 } 47} 48