postids = ["1599", "1601", "1603", "1604", "1605", "1607", "1609", "1610", "1611", "1612", "1613", ""]; counts = ["2", "7", "2", "2", "3", "1", "6", "1", "13", "1", "1", ""]; start = 0; end = 12; function commentCounter (postid) { for (i = start; i < end; i++) { if (postids[i] == postid) { document.write (counts[i]); return } } document.write ("0"); return } tbpostids = ["1598", "1599", "1600", ""]; tbcounts = ["2", "2", "4", ""]; tbstart = 0; tbend = 4; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }