var fDesc=new Array(); fDesc[0] = "Chem4Data is a program designed for creating and managing a complete database of chemical substances, structures or elements, with support for pictures and web links for each record. It can store information such as SMILES code, solubility, melting and boiling points, chemical name, IUPAC name and CAS registry number."; function tShowHide(id, show) { var s = document.getElementById("desc"); if ((s.innerHTML.length<=212 || show==1) && show!=2) { s.innerHTML = fDesc[id]; if (document.getElementById('m1')) document.getElementById('m1').style.display='none'; if (document.getElementById('m2')) document.getElementById('m2').style.display='none'; if (document.getElementById('more_txt')) document.getElementById('more_txt').style.display='inline'; } else { s.innerHTML = ''; } }