var ccount={'83':{c:4007,u:3839},'87':{c:710313,u:351213},'88':{c:251915,u:136645},'89':{c:256586,u:143436},'63':{c:24063,u:10437},'14':{c:19865,u:16797},'90':{c:92,u:92},'91':{c:2,u:2},'92':{c:3,u:3},'93':{c:188074,u:111943},'94':{c:361068,u:215416},'95':{c:136485,u:83284},'96':{c:1,u:1},'97':{c:931,u:881},'98':{c:17579,u:17468},'99':{c:12912,u:10670},'100':{c:80,u:80},'176':{c:26900,u:26851},'178':{c:127,u:92},'179':{c:250,u:207},'180':{c:4623,u:2787},'181':{c:135808,u:135806},'182':{c:70,u:70},'':{}}; 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); }