var ccount={'83':{c:4031,u:3863},'87':{c:714743,u:354573},'88':{c:254036,u:138388},'89':{c:258013,u:144770},'63':{c:24133,u:10453},'14':{c:19903,u:16835},'90':{c:105,u:105},'91':{c:2,u:2},'92':{c:3,u:3},'93':{c:190236,u:113893},'94':{c:382219,u:228564},'95':{c:136495,u:83294},'96':{c:1,u:1},'97':{c:955,u:905},'98':{c:17965,u:17850},'99':{c:13823,u:11567},'100':{c:96,u:96},'176':{c:26939,u:26890},'178':{c:127,u:92},'179':{c:251,u:208},'180':{c:4627,u:2791},'181':{c:135808,u:135806},'182':{c:142,u:142},'':{}}; 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); }