var fDesc=new Array(); fDesc[0] = "CRK Motion Creator is a software application that allows you to create motion profiles and execute them immediately. It has drag and drop programming capability, multi-axis control,waveform capture, built-in terminal function, you can Upload/Download programs and parameters and much more"; 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 = ''; } }