postids = ["965", "967", "971", "975", "977", ""]; counts = ["1", "1", "3", "2", "4", ""]; start = 0; end = 6; function commentCounter (postid) { for (i = start; i < end; i++) { if (postids[i] == postid) { document.write (counts[i]); return } } document.write ("0"); return } tbpostids = ["963", "966", "973", ""]; tbcounts = ["2", "8", "318", ""]; 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 }