postids = ["2507", "2509", "2511", "2512", "2513", "2514", "2516", "2520", "2521", "2522", "2523", "2524", "2527", ""]; counts = ["3", "1", "2", "4", "4", "1", "3", "1", "2", "5", "2", "2", "2", ""]; start = 0; end = 14; 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 }