postids = ["1314", "1315", "1317", "1318", "1319", "1322", "1324", "1325", "1326", "1327", "1328", "1329", ""]; counts = ["3", "8", "1", "3", "6", "5", "4", "3", "5", "1", "1", "3", ""]; 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 = ["1315", "1319", "1320", "1321", "1322", "1323", "1324", "1327", "1328", ""]; tbcounts = ["-33", "1", "109", "196", "123", "126", "139", "139", "4", ""]; 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 }