var fDesc=new Array(); fDesc[0] = "Free Percentage Calculator is a program that allows you to find out the value that represents the percentage of a certain amount. You just enter the rate on the first box, then enter the base and click Calculate. The answer will appear below in just a few second. The program can also compare two numbers in order to find out the ratio and express it as a percentage."; 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 = ''; } }