var fDesc=new Array(); fDesc[0] = "3d Printer Calculator is an application that helps you predict the material and monetary costs of printing objects on a 3d printer. It has density information for ABS, PLA, PVA, and HDPE plastics. To find out how much filament is required for a model, open up the gcode file for the model and scroll all the way to the bottom."; 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 = ''; } }