postids = ["1466", "1469", "1471", "1472", "1473", "1475", "1476", "1477", "1478", "1480", "1482", "1483", ""]; counts = ["8", "1", "6", "1", "1", "1", "12", "1", "1", "7", "2", "2", ""]; start = 0; end = 13; function commentCounter (postid) { for (i = start; i < end; i++) { if (postids[i] == postid) { document.write (counts[i]); return } } document.write ("0"); return } tbpostids = ["1465", "1466", "1467", "1471", "1472", "1476", "1478", "1482", ""]; tbcounts = ["2", "1", "1", "2", "4", "2", "5", "2", ""]; 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 }