postids = ["1057", "1059", "1060", "1062", "1065", "1066", "1067", "1068", ""]; counts = ["2", "4", "2", "3", "2", "5", "3", "1", ""]; 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 = ["1061", "1062", "1068", ""]; tbcounts = ["1", "1", "2", ""]; tbstart = 0; tbend = 4; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }