postids = ["1737", "1738", "1740", "1741", "1742", "1744", "1745", "1746", "1747", "1749", "1752", "1753", ""]; counts = ["3", "1", "6", "11", "4", "1", "1", "4", "2", "6", "6", "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 = [""]; tbcounts = [""]; tbstart = 0; tbend = 1; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }