postids = ["1586", "1587", "1588", "1589", "1590", "1591", "1592", "1594", "1597", "1599", "1601", "1603", ""]; counts = ["3", "2", "3", "3", "2", "9", "0", "6", "5", "2", "7", "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 = ["1587", "1589", "1593", "1598", "1599", "1600", ""]; tbcounts = ["2", "1", "5", "2", "2", "4", ""]; tbstart = 0; tbend = 7; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }