var fDesc=new Array(); fDesc[0] = "Xcell puzzle is a grid (4x4 to 10x10) with numbers given at the intersection of cells. You are required to fill each cell with a slash, like / or \, such the count of slashes pointing towards an intersection must be same as the number given at the intersection, an intersection with a * (a star) must have exactly four slashes, pointed towards or away from the star, an intersection with no number can have slashes in any direction."; 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 = ''; } }