function tablecollapse() { /* Variables */ var collapseClass='footcollapse'; var collapsePic='arrow_up.gif'; var expandPic='arrow_down.gif'; var initialCollapse=true; // loop through all tables var t=document.getElementsByTagName('table'); var checktest= new RegExp("(^|\\s)" + collapseClass + "(\\s|$)"); for (var i=0;i