postids = ["1398", "1401", "1402", "1403", "1406", ""]; counts = ["2", "1", "4", "3", "1", ""]; start = 0; end = 6; function commentCounter (postid) { for (i = start; i < end; i++) { if (postids[i] == postid) { document.write (counts[i]); return } } document.write ("0"); return } tbpostids = ["1398", "1400", "1402", "1405", "1408", ""]; tbcounts = ["116", "151", "5", "2", "4", ""]; tbstart = 0; tbend = 6; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }