postids = ["1382", "1383", "1385", "1387", "1389", "1392", "1394", "1398", ""]; counts = ["3", "1", "0", "2", "2", "7", "2", "2", ""]; start = 0; end = 9; function commentCounter (postid) { for (i = start; i < end; i++) { if (postids[i] == postid) { document.write (counts[i]); return } } document.write ("0"); return } tbpostids = ["1382", "1385", "1389", "1390", "1391", "1394", "1398", "1400", ""]; tbcounts = ["1", "133", "311", "1", "2", "1", "116", "151", ""]; tbstart = 0; tbend = 9; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }