var fDesc=new Array(); fDesc[0] = "This workbook includes tables and calculations for easy option of fits of machine parts and determination of their dimensional tolerances and deviations. Using this tool you can solve the following tasks: selection of suitable fits of machine parts, selection of preferred fits of machine parts and others."; 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 = ''; } }