postids = ["1365", "1367", "1368", "1369", "1370", "1372", "1373", "1375", "1378", "1380", "1381", "1382", "1383", ""]; counts = ["2", "4", "5", "1", "1", "4", "2", "2", "2", "1", "1", "3", "1", ""]; start = 0; end = 14; 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", "1380", "1381", "1382", ""]; tbcounts = ["2", "1", "331", "4", "126", "1", ""]; tbstart = 0; tbend = 7; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }