postids = ["2314", "2315", "2320", "2321", "2322", "2323", "2324", "2326", "2328", "2329", "2332", "2333", ""]; counts = ["1", "4", "2", "4", "1", "4", "3", "4", "2", "2", "2", "6", ""]; start = 0; end = 13; 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 }