var countmode=1; var showmode=1; var counterstyle="03"; var countlen=5; var countvalue=61668; var str = ""; var iValueLength = countvalue.toString().length; var sCountValue = countvalue.toString(); for(;sCountValue.length<=countlen;i++) { sCountValue = "0" + sCountValue; } if(showmode == 1) { for(var i=0;i"; } document.write(str); } else { document.write(countvalue); }