Here you can find the code base for minimizing and maximization of some part of content placed in a table based in java script.
<script language="javascript" type="text/javascript">
function hideTable() {
var obj = document.getElementById('hiddenText');
if (obj.value == 'expand') {
obj.value = 'collapse';
document.getElementById('tbltable').style.visibility = "hidden";
}
else if (obj.value == 'collapse') {
obj.value = 'expand';
document.getElementById('tbltable').style.visibility = "visible";
}
return false;
}
</script>