postids = ["1648", "1650", "1651", "1653", "1654", "1655", "1656", "1657", "1658", "1661", "1662", "1663", ""]; counts = ["3", "9", "2", "1", "3", "3", "2", "5", "7", "2", "6", "5", ""]; 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 }