var fDesc=new Array(); fDesc[0] = "This program calculates reliable irradiation and temperature data for around 50,000 locations worldwide. In addition to this, it enables users to make a reliable choice of inverter according to grid code and country approval. It performs reliable yield and profitability calculations on the basis of the data collected."; 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 = ''; } }