postids = ["1349", "1350", "1351", "1352", "1354", "1355", "1357", "1358", "1359", "1362", "1365", ""]; counts = ["1", "1", "3", "1", "5", "2", "2", "2", "2", "3", "2", ""]; start = 0; end = 12; function commentCounter (postid) { for (i = start; i < end; i++) { if (postids[i] == postid) { document.write (counts[i]); return } } document.write ("0"); return } tbpostids = ["1349", "1350", "1352", "1359", "1365", "1366", ""]; tbcounts = ["140", "1", "2", "6", "2", "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 }