postids = ["1522", "1524", "1525", "1526", "1528", "1532", "1533", "1534", "1536", "1537", "1538", ""]; counts = ["7", "2", "3", "5", "3", "2", "1", "1", "1", "4", "7", ""]; 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 = ["1521", "1525", "1527", "1529", "1531", "1536", ""]; tbcounts = ["1", "1", "4", "5", "3", "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 }