postids = ["1568", "1570", "1571", "1576", "1577", "1582", "1584", "1586", ""]; counts = ["4", "6", "4", "1", "9", "4", "1", "3", ""]; start = 0; end = 9; function commentCounter (postid) { for (i = start; i < end; i++) { if (postids[i] == postid) { document.write (counts[i]); return } } document.write ("0"); return } tbpostids = ["1572", "1574", "1580", "1582", "1585", ""]; tbcounts = ["3", "6", "1", "1", "6", ""]; tbstart = 0; tbend = 6; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }