var fDesc=new Array(); fDesc[0] = "This program will help you write NC code programs or to learn how to write NC programs or event to debug such programs. This software supports the standard G Code commands and also sub program calls and macro programming with IF statements and WHILE loops etc. The program draws a graphical representation of the programmed G-Code tool path in an isometric 3D view."; 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 = ''; } }