postids = ["1403", "1406", "1413", "1416", "1418", "1420", ""]; counts = ["3", "1", "2", "0", "2", "3", ""]; start = 0; end = 7; function commentCounter (postid) { for (i = start; i < end; i++) { if (postids[i] == postid) { document.write (counts[i]); return } } document.write ("0"); return } tbpostids = ["1405", "1408", "1414", "1416", ""]; tbcounts = ["2", "4", "2", "1", ""]; tbstart = 0; tbend = 5; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }