postids = ["1324", "1325", "1326", "1327", "1328", "1329", "1339", ""]; counts = ["4", "3", "5", "1", "1", "3", "2", ""]; start = 0; end = 8; function commentCounter (postid) { for (i = start; i < end; i++) { if (postids[i] == postid) { document.write (counts[i]); return } } document.write ("0"); return } tbpostids = ["1324", "1327", "1328", "1331", "1332", "1333", "1336", "1339", "1340", ""]; tbcounts = ["139", "139", "4", "124", "77", "347", "1", "4", "3", ""]; tbstart = 0; tbend = 10; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }