postids = ["1342", "1343", "1345", "1349", "1350", "1351", "1352", "1354", "1355", "1357", "1358", "1359", ""]; counts = ["1", "-3", "0", "1", "1", "3", "1", "5", "2", "2", "2", "2", ""]; 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 = ["1341", "1342", "1347", "1348", "1349", "1350", "1352", "1359", ""]; tbcounts = ["1", "137", "122", "3", "140", "1", "2", "6", ""]; tbstart = 0; tbend = 9; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }