var fDesc=new Array(); fDesc[1] = "reliable repertorisation results and combines professional look and feel with reasonable, affordable price."; fDesc[2] = "insurance, contacts, allergies, illnesses, surgeries, appointments, medications, vaccinations, blood pressure, weight, glucose."; fDesc[3] = "help you a lot. My Medications List is a versatile program where you can track each of your medications with many details. Using it you can know exactly the amount of money you spend on medications, or when you need to renew prescriptions, etc."; fDesc[4] = "doctor visits. Ability to scan in documents, save studies, print emergency permission slips, charts and more."; fDesc[5] = "basic principles of herbal medicine, outlines the properties and characteristics of more than 290 single herbs."; fDesc[11] = "prescriptions."; 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 = '...'; } }