postids = ["1362", "1365", "1367", "1368", "1369", "1370", "1372", "1373", "1375", "1378", ""]; counts = ["3", "2", "4", "5", "1", "1", "4", "2", "2", "2", ""]; 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 = ["1365", "1366", "1377", ""]; tbcounts = ["2", "1", "331", ""]; 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 }