var fDesc=new Array(); fDesc[0] = "MITCalc is a set of engineering, industrial, and technical calculations for your day-to-day routines. It will reliably, precisely, and most of all quickly guide you through the design of components, the solution of a technical problem, or a calculation of an engineering point without any significant need for expert knowledge."; 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 = ''; } }