postids = ["1163", "1165", "1166", "1169", "1172", "1173", "1174", "1176", ""]; counts = ["2", "1", "1", "4", "3", "3", "3", "4", ""]; start = 0; end = 9; function commentCounter (postid) { for (i = start; i < end; i++) { if (postids[i] == postid) { document.write (counts[i]); return } } document.write ("0"); return } tbpostids = ["1168", "1176", ""]; tbcounts = ["308", "5", ""]; tbstart = 0; tbend = 3; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }