function calcage(secs, num1, num2, addDay, seconds) { if (addDay == 1){ s = ((Math.floor(secs/num1))).toString(); } else{ s = ((Math.floor(secs/num1))%num2).toString(); } if (LeadingZeros32586 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32586(secs) { if (secs < 0) { document.getElementById("cntdwns32586").innerHTML = FinishMessages32586; return; } DisplayStrs32586 = DisplayFormats32586.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32586 = DisplayStrs32586.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32586 = DisplayStrs32586.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32586 = DisplayStrs32586.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32586").innerHTML = DisplayStrs32586; if (CountActives32586) //alert(SetTimeOutPeriods32586); setTimeout("CountBacks32586(" + (secs+CountSteppers32586) + ")", SetTimeOutPeriods32586); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32586)=="undefined") BackColors32586 = ""; if (typeof(ForeColors32586)=="undefined") ForeColors32586= "white"; if (typeof(TargetDates32586)=="undefined") TargetDates32586 = "12/10/2025 9:00:00 PM"; if (typeof(DisplayFormats32586)=="undefined") DisplayFormats32586 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32586)=="undefined") CountActives32586 = true; if (typeof(FinishMessages32586)=="undefined") FinishMessages32586 = ""; if (typeof(CountSteppers32586)!="number") CountSteppers32586 = -1; if (typeof(LeadingZeros32586)=="undefined") LeadingZeros32586 = true; CountSteppers32586 = Math.ceil(CountSteppers32586); if (CountSteppers32586 == 0) CountActives32586 = false; var SetTimeOutPeriods32586 = (Math.abs(CountSteppers32586)-1)*1000 + 990; puti(BackColors32586, ForeColors32586); var dthens32586 = new Date(TargetDates32586); var dnows32586 = new Date("12/09/2025 2:14:47 AM"); if(CountSteppers32586>0) ddiffs32586 = new Date(dnows32586-dthens32586); else ddiffs32586 = new Date(dthens32586-dnows32586); gsecss32586 = Math.floor(ddiffs32586.valueOf()/1000); CountBacks32586(gsecss32586);