postids = ["1528", "1532", "1533", "1534", "1536", "1537", "1538", "1540", "1541", "1542", "1543", "1544", ""]; counts = ["3", "2", "1", "1", "1", "4", "7", "2", "2", "3", "5", "4", ""]; 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 = ["1529", "1531", "1536", ""]; tbcounts = ["5", "3", "4", ""]; tbstart = 0; tbend = 4; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }