var fDesc=new Array(); fDesc[0] = "TX Text Control .NET for WPF is a royalty-free, programmable rich-text edit control for Visual Studio. It provides comprehensive text formatting, mail merge features and all word processing key concepts such as table support, images, headers and footers, and page sections. You can also use data sources that can be hierarchical, such as related DataTables, DataSets, and IEnumerable objects."; 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 = ''; } }