var fDesc=new Array(); fDesc[2] = "to find your desired domain names quickly and easily. The built-in database helps you to search from generic top level domains and from country code top level domains as well."; fDesc[3] = "before and after views of registrations when anything changes. Receive email alerts when domains expire or become available."; fDesc[4] = "PageRank and Alexa Traffic Rank ratings. The program has a remarkably simple interface and supports most of generic and country-code TLD domains."; 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 = '...'; } }