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 (LeadingZeros32526 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32526(secs) { if (secs < 0) { document.getElementById("cntdwns32526").innerHTML = FinishMessages32526; return; } DisplayStrs32526 = DisplayFormats32526.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32526 = DisplayStrs32526.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32526 = DisplayStrs32526.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32526 = DisplayStrs32526.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32526").innerHTML = DisplayStrs32526; if (CountActives32526) //alert(SetTimeOutPeriods32526); setTimeout("CountBacks32526(" + (secs+CountSteppers32526) + ")", SetTimeOutPeriods32526); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32526)=="undefined") BackColors32526 = ""; if (typeof(ForeColors32526)=="undefined") ForeColors32526= "white"; if (typeof(TargetDates32526)=="undefined") TargetDates32526 = "08/02/2025 10:00:00 PM"; if (typeof(DisplayFormats32526)=="undefined") DisplayFormats32526 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32526)=="undefined") CountActives32526 = true; if (typeof(FinishMessages32526)=="undefined") FinishMessages32526 = ""; if (typeof(CountSteppers32526)!="number") CountSteppers32526 = -1; if (typeof(LeadingZeros32526)=="undefined") LeadingZeros32526 = true; CountSteppers32526 = Math.ceil(CountSteppers32526); if (CountSteppers32526 == 0) CountActives32526 = false; var SetTimeOutPeriods32526 = (Math.abs(CountSteppers32526)-1)*1000 + 990; puti(BackColors32526, ForeColors32526); var dthens32526 = new Date(TargetDates32526); var dnows32526 = new Date("07/31/2025 7:21:18 PM"); if(CountSteppers32526>0) ddiffs32526 = new Date(dnows32526-dthens32526); else ddiffs32526 = new Date(dthens32526-dnows32526); gsecss32526 = Math.floor(ddiffs32526.valueOf()/1000); CountBacks32526(gsecss32526);