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 (LeadingZeros32646 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32646(secs) { if (secs < 0) { document.getElementById("cntdwns32646").innerHTML = FinishMessages32646; return; } DisplayStrs32646 = DisplayFormats32646.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32646 = DisplayStrs32646.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32646 = DisplayStrs32646.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32646 = DisplayStrs32646.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32646").innerHTML = DisplayStrs32646; if (CountActives32646) //alert(SetTimeOutPeriods32646); setTimeout("CountBacks32646(" + (secs+CountSteppers32646) + ")", SetTimeOutPeriods32646); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32646)=="undefined") BackColors32646 = ""; if (typeof(ForeColors32646)=="undefined") ForeColors32646= "white"; if (typeof(TargetDates32646)=="undefined") TargetDates32646 = "08/04/2025 10:00:00 PM"; if (typeof(DisplayFormats32646)=="undefined") DisplayFormats32646 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32646)=="undefined") CountActives32646 = true; if (typeof(FinishMessages32646)=="undefined") FinishMessages32646 = ""; if (typeof(CountSteppers32646)!="number") CountSteppers32646 = -1; if (typeof(LeadingZeros32646)=="undefined") LeadingZeros32646 = true; CountSteppers32646 = Math.ceil(CountSteppers32646); if (CountSteppers32646 == 0) CountActives32646 = false; var SetTimeOutPeriods32646 = (Math.abs(CountSteppers32646)-1)*1000 + 990; puti(BackColors32646, ForeColors32646); var dthens32646 = new Date(TargetDates32646); var dnows32646 = new Date("08/02/2025 2:18:24 AM"); if(CountSteppers32646>0) ddiffs32646 = new Date(dnows32646-dthens32646); else ddiffs32646 = new Date(dthens32646-dnows32646); gsecss32646 = Math.floor(ddiffs32646.valueOf()/1000); CountBacks32646(gsecss32646);