var ccount={'83':{c:4001,u:3833},'87':{c:708973,u:350200},'88':{c:251433,u:136218},'89':{c:256242,u:143116},'63':{c:24062,u:10436},'14':{c:19862,u:16794},'90':{c:92,u:92},'91':{c:2,u:2},'92':{c:3,u:3},'93':{c:187687,u:111623},'94':{c:356155,u:212239},'95':{c:136485,u:83284},'96':{c:1,u:1},'97':{c:924,u:874},'98':{c:17306,u:17195},'99':{c:12651,u:10415},'100':{c:80,u:80},'176':{c:26862,u:26813},'178':{c:127,u:92},'179':{c:250,u:207},'180':{c:4622,u:2786},'181':{c:135808,u:135806},'182':{c:60,u:60},'':{}}; 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); }