var fDesc=new Array(); fDesc[0] = "Netpas Distance is a Port Distance Table providing 12,000 ports and 0.1 billion distance data with (S)ECA, weather forecast, and piracy alerts. You can get distance from Coordinates to Coordinates / Coordinates to Port using its database. It also calculates Alternative Routes for you and Anti-Piracy Options to avoid pirate zones during route calculation."; 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 = ''; } }