postids = ["2392", "2393", "2395", "2396", "2397", "2398", "2399", "2400", "2401", "2404", "2410", "2412", "2413", ""]; counts = ["1", "4", "5", "1", "5", "2", "3", "12", "2", "2", "2", "2", "1", ""]; 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 }