postids = ["1329", "1339", "1342", "1343", "1345", "1349", "1350", ""]; counts = ["3", "2", "1", "-3", "0", "1", "1", ""]; start = 0; end = 8; function commentCounter (postid) { for (i = start; i < end; i++) { if (postids[i] == postid) { document.write (counts[i]); return } } document.write ("0"); return } tbpostids = ["1331", "1332", "1333", "1336", "1339", "1340", "1341", "1342", "1347", "1348", "1349", "1350", ""]; tbcounts = ["124", "77", "347", "1", "4", "3", "1", "137", "122", "3", "140", "1", ""]; tbstart = 0; tbend = 13; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }