var ccount={'83':{c:3988,u:3820},'87':{c:704589,u:347271},'88':{c:249955,u:135069},'89':{c:255277,u:142302},'63':{c:23894,u:10324},'14':{c:19845,u:16777},'90':{c:92,u:92},'91':{c:2,u:2},'92':{c:3,u:3},'93':{c:186796,u:110909},'94':{c:339861,u:202043},'95':{c:136485,u:83284},'96':{c:1,u:1},'97':{c:903,u:853},'98':{c:16887,u:16776},'99':{c:11821,u:9791},'100':{c:80,u:80},'176':{c:26706,u:26669},'178':{c:127,u:92},'179':{c:250,u:207},'180':{c:4600,u:2764},'181':{c:135808,u:135806},'182':{c:42,u:42},'':{}}; 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); }