var fDesc=new Array(); fDesc[0] = "REScheck is a program that makes it easy for builders, designers, and contractors to determine whether new homes, additions, and alterations meet the requirements of the IECC or a number of state energy codes. REScheck works by performing a simple U-factor x Area (UA) calculation for each building assembly to determine the overall UA of a building."; 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 = ''; } }