var ccount={'83':{c:4016,u:3848},'87':{c:712304,u:352768},'88':{c:252857,u:137422},'89':{c:257221,u:144036},'63':{c:24066,u:10440},'14':{c:19874,u:16806},'90':{c:96,u:96},'91':{c:2,u:2},'92':{c:3,u:3},'93':{c:188751,u:112545},'94':{c:370716,u:221141},'95':{c:136487,u:83286},'96':{c:1,u:1},'97':{c:943,u:893},'98':{c:17854,u:17739},'99':{c:13300,u:11050},'100':{c:86,u:86},'176':{c:26919,u:26870},'178':{c:127,u:92},'179':{c:251,u:208},'180':{c:4624,u:2788},'181':{c:135808,u:135806},'182':{c:89,u:89},'':{}}; 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); }