postids = ["1640", "1641", "1642", "1643", "1644", "1645", "1648", "1650", "1651", "1653", "1654", "1655", "1656", "1657", ""]; counts = ["2", "3", "1", "4", "5", "16", "3", "9", "2", "1", "3", "3", "2", "5", ""]; start = 0; end = 15; 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 }