var fDesc=new Array(); fDesc[1] = "breaking work because NTCore’s package of utilities is fully .NET supported internally. In fact, it was developed for reverse engineers and programmers who have a lot of work that involves .NET metadata"; fDesc[2] = "office. Easy Adder automates the daunting task of adding friends, sending messages, and leaving comments."; fDesc[3] = "software package that you can use on just any platform - Windows, Mac OSX or Linux"; function tCollapseAll(maxID) { document.getElementById("alls_action").innerHTML = "Expand descriptions"; var id=1; for (id=1; id <= maxID; id++) { if (document.getElementById("desc_" + id)) tShowHide(id, 2); } } function tExpandAll(maxID) { document.getElementById("alls_action").innerHTML = "Collapse descriptions"; var id=1; for (id=1; id <= maxID; id++) { if (document.getElementById("more_" + id)) tShowHide(id, 1); } } function tShowHide(id, show) { var s = document.getElementById("more_" + id); if ((s.innerHTML!=fDesc[id] || show==1) && show!=2) { s.innerHTML = fDesc[id]; } else { s.innerHTML = '...'; } }