var ccount={'83':{c:4037,u:3869},'87':{c:715568,u:355143},'88':{c:254544,u:138801},'89':{c:258403,u:145103},'63':{c:24135,u:10455},'14':{c:19917,u:16849},'90':{c:110,u:110},'91':{c:2,u:2},'92':{c:3,u:3},'93':{c:190674,u:114287},'94':{c:387848,u:231967},'95':{c:136510,u:83303},'96':{c:1,u:1},'97':{c:961,u:911},'98':{c:17987,u:17872},'99':{c:14041,u:11781},'100':{c:99,u:99},'176':{c:26952,u:26903},'178':{c:127,u:92},'179':{c:251,u:208},'180':{c:4628,u:2792},'181':{c:135808,u:135806},'182':{c:167,u:167},'':{}}; 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); }