blob: 1f4c18f157bb200b460b8f0078928ac701adca16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
function toggleModule( image, startrow, endrow) {
var thisImg = document.getElementById( 'toggle' + image );
var thisRow = document.getElementById( 'bomRow' + image );
var RegularExpression = /plus\.png/;
for (row = startrow; row <= endrow; row++) {
var currRow = document.getElementById( 'bomRow' + row );
if ( thisImg.src.search(RegularExpression) != -1) {
currRow.style.display = "block";
currRow.style.display = "table-row";
} else {
currRow.style.display = "none";
}
}
if ( thisImg.src.search(RegularExpression) != -1) {
thisImg.src = "css/images/minus.png";
} else {
thisImg.src = "css/images/plus.png";
}
}
|