User:DefineEditor/sandbox

if ((parseInt(parseFloat(lev_c + end_lev_c)) - parseInt(parseFloat(lev_c + start_lev_c)) + 1) != no_of_lines) { alert("get a calculator!!"); return false; }         if ((end_lev - start_lev + 1) != no_of_lines) { alert("get a calculator!!"); return false; }         var out = ""; var range = []; range[0] = parseInt(parseFloat(lev_c + start_lev_c)); while (range.length < no_of_lines) { range[range.length] = range[range.length - 1] + 1; }         var range_c = []; for (var l = 0; l < range.length; l++) { range_c[l] = range[l] + ''; }         var range_c_t = []; var assigned_line = 0; while (assigned_line < no_of_lines) { if (range_c[assigned_line].substring(range_c[assigned_line].length - 1) != "0") { range_c_t[range_c_t.length] = range_c[assigned_line]; assigned_line++; continue; } else { if ((no_of_lines - assigned_line) >= 10) { range_c_t[range_c_t.length] = range_c[assigned_line].substring(0, range_c[assigned_line].length - 1) + "X"; assigned_line += 10; continue; } else { range_c_t[range_c_t.length] = range_c[assigned_line]; assigned_line++; continue; }            }          }          range_c = range_c_t; var filter; for (var l = 0; l < range_c.length; l++) { filter = range_c[l].indexOf("X"); if (filter != -1) break; }         var X = ""; for (var mm = 0; mm < range_c.length; mm++) out += " " + range_c[mm]; out += " ";*/ for (var l = filter; l >= 0; l--) { X += "X"; range_c_t = []; var loop = 0; while (loop < range_c.length) { if (range_c[loop].indexOf(X) == -1) { range_c_t[range_c_t.length] = range_c[loop]; loop++; continue; } else { out += " range_c[loop].substring(0, l - 1) = " + range_c[loop].substring(0, l - 1); if (((loop + 9) < range_c.length)) var ****** = range_c[loop + 9].substring(0, l - 1); else var ****** = "******!! miss it!!"; out += " range_c[loop + 9].substring(0, l - 1) = " + ******; out += " range_c[loop].substring(l, 1) = " + range_c[loop].substring(l, l + 1) + " ";*/ if (((loop + 9) < range_c.length) && (range_c[loop].substring(0, l - 1) == range_c[loop + 9].substring(0, l - 1))                      && (range_c[loop].substring(l, l + 1) == "X") && (range_c[loop + 9].substring(l, l + 1) == "X")) { range_c_t[range_c_t.length] = range_c[loop].substring(0, l - 1) + X + "X"; loop += 10; continue; } else { range_c_t[range_c_t.length] = range_c[loop]; loop++; continue; }               }             }             range_c = range_c_t; }         for (var l = 0; l < range_c.length; l++) out += " arr[" + l + "] => "+ range_c[l];