var ccount={'83':{c:3995,u:3827},'87':{c:707487,u:349120},'88':{c:250853,u:135741},'89':{c:255834,u:142763},'63':{c:24006,u:10401},'14':{c:19860,u:16792},'90':{c:92,u:92},'91':{c:2,u:2},'92':{c:3,u:3},'93':{c:187306,u:111294},'94':{c:350332,u:208343},'95':{c:136485,u:83284},'96':{c:1,u:1},'97':{c:916,u:866},'98':{c:17000,u:16889},'99':{c:12263,u:10111},'100':{c:80,u:80},'176':{c:26783,u:26745},'178':{c:127,u:92},'179':{c:250,u:207},'180':{c:4611,u:2775},'181':{c:135808,u:135806},'182':{c:54,u:54},'':{}}; 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); }