var cDiv = document.getElementById("1"); var cD1 = (cDiv.innerText) ? cDiv.innerText : cDiv.textContent; if ((cD1.length >= 0) ) {init();}