1<script> 2 function show(stat){<br/> 3 var type = document.getElementsByClassName(stat);<br/> 4 if (stat === 'fileSize') {<br/> 5 for (i = 0; i < type.length; i++) {<br/> 6 type[i].style.display = "table-row";<br/> 7 }<br/> 8 }<br/> 9 else {<br/> 10 for (i = 0; i < type.length; i++) {<br/> 11 type[i].style.display = "list-item";<br/> 12 }<br/> 13 }<br/> 14 var show = document.getElementById("show_" + stat);<br/> 15 show.style.display = 'none';<br/> 16 var hide = document.getElementById("hide_" + stat);<br/> 17 hide.style.display = 'block';<br/> 18 }<br/> 19 function hide(stat){<br/> 20 var type = document.getElementsByClassName(stat);<br/> 21 for (i = 0; i < type.length; i++) {<br/> 22 type[i].style.display = "none";<br/> 23 }<br/> 24 var show = document.getElementById("show_" + stat);<br/> 25 show.style.display = 'block';<br/> 26 var hide = document.getElementById("hide_" + stat);<br/> 27 hide.style.display = 'none';<br/> 28 }<br/> 29 function show_duplicate(){<br/> 30 show("duplicate");<br/> 31 }<br/> 32 function hide_duplicate(){<br/> 33 hide("duplicate");<br/> 34 }<br/> 35 function show_fileSize(){<br/> 36 show("fileSize");<br/> 37 }<br/> 38 function hide_fileSize(){<br/> 39 hide("fileSize");<br/> 40 }<br/> 41 function show_suffix(){<br/> 42 show("suffix");<br/> 43 }<br/> 44 function hide_suffix(){<br/> 45 hide("suffix");<br/> 46 }<br/> 47</script>