postids = ["1699", "1700", "1701", "1702", "1704", "1706", "1708", "1710", "1711", "1712", "1714", "1717", ""]; counts = ["2", "2", "1", "1", "4", "1", "8", "3", "1", "7", "3", "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 = ["1707", "1708", "1710", "1712", ""]; tbcounts = ["2", "1", "1", "1", ""]; tbstart = 0; tbend = 5; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }