var ccount={'83':{c:3985,u:3817},'87':{c:692646,u:339169},'88':{c:245079,u:131177},'89':{c:252512,u:139860},'63':{c:23423,u:9999},'14':{c:19800,u:16732},'90':{c:29,u:29},'91':{c:2,u:2},'92':{c:3,u:3},'93':{c:184231,u:108847},'94':{c:287593,u:167362},'95':{c:136400,u:83235},'96':{c:1,u:1},'97':{c:863,u:813},'98':{c:16772,u:16662},'99':{c:10102,u:8232},'100':{c:33,u:33},'176':{c:26403,u:26375},'178':{c:127,u:92},'179':{c:248,u:206},'180':{c:4578,u:2742},'181':{c:135805,u:135803},'182':{c:11,u:11},'':{}}; function ccount_display(id) { document.write(ccount[id]['c'].formatThousands('UK')); } function ccount_unique(id) { document.write(ccount[id]['u'].formatThousands('UK')); } Number.prototype.formatThousands = function(notation) { var n = this, separator = ""; switch (notation) { case "US": separator = ","; break; case "UK": separator = "."; break; case "FR": separator = " "; break; default: return n; } n = parseInt(n) + ""; j = (j = n.length) > 3 ? j % 3 : 0; return (j ? n.substr(0, j) + separator : "") + n.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + separator); }