var fDesc=new Array(); fDesc[0] = "Calculate LED Load Resistor Values: Calculate the value of a load resistor for a Light Emitting Diode (LED) based on supply voltage and LED characteristics. This application contains a number of standard LED products to choose from. After the value of the load resistor is calculated, a table of standard resistor values can be displayed so that the closest resistor value may be selected for the intended application."; 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 = ''; } }