postids = ["1562", "1564", "1565", "1566", "1567", "1568", "1570", "1571", "1576", "1577", ""]; counts = ["0", "2", "1", "1", "5", "4", "6", "4", "1", "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 = ["1572", "1574", ""]; tbcounts = ["3", "6", ""]; tbstart = 0; tbend = 3; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }