var fDesc=new Array();
fDesc[0] = "R Color Code is a great tool that allows you to decrypt the color code of fixed resistors.
The marking starts with the band nearest to one end of the resistor. A wider band is always the last one. Encoded are the resistance in Ohm, indicated by 2 or 3 bands and the multiplier, the tolerance in % and in certain cases the temperature coefficient. The temperature coefficient is the last wider band in the 6 band code. It's given in ppm/K.";
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 = '';
}
}