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