postids = ["2342", "2345", "2349", "2350", "2351", "2352", "2353", "2354", "2356", "2357", "2359", "2360", "2362", "2363", ""]; counts = ["3", "2", "2", "2", "11", "1", "1", "3", "23", "2", "1", "3", "3", "1", ""]; start = 0; end = 15; function commentCounter (postid) { for (i = start; i < end; i++) { if (postids[i] == postid) { document.write (counts[i]); return } } document.write ("0"); return } tbpostids = [""]; tbcounts = [""]; tbstart = 0; tbend = 1; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }