postids = ["1576", "1577", "1582", "1584", "1586", "1587", "1588", "1589", "1590", "1591", ""]; counts = ["1", "9", "4", "1", "3", "2", "3", "3", "2", "9", ""]; start = 0; end = 11; function commentCounter (postid) { for (i = start; i < end; i++) { if (postids[i] == postid) { document.write (counts[i]); return } } document.write ("0"); return } tbpostids = ["1574", "1580", "1582", "1585", "1587", "1589", ""]; tbcounts = ["6", "1", "1", "6", "2", "1", ""]; 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 }