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 (LeadingZeros32620 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32620(secs) { if (secs < 0) { document.getElementById("cntdwns32620").innerHTML = FinishMessages32620; return; } DisplayStrs32620 = DisplayFormats32620.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32620 = DisplayStrs32620.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32620 = DisplayStrs32620.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32620 = DisplayStrs32620.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32620").innerHTML = DisplayStrs32620; if (CountActives32620) //alert(SetTimeOutPeriods32620); setTimeout("CountBacks32620(" + (secs+CountSteppers32620) + ")", SetTimeOutPeriods32620); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32620)=="undefined") BackColors32620 = ""; if (typeof(ForeColors32620)=="undefined") ForeColors32620= "white"; if (typeof(TargetDates32620)=="undefined") TargetDates32620 = "08/03/2025 10:00:00 PM"; if (typeof(DisplayFormats32620)=="undefined") DisplayFormats32620 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32620)=="undefined") CountActives32620 = true; if (typeof(FinishMessages32620)=="undefined") FinishMessages32620 = ""; if (typeof(CountSteppers32620)!="number") CountSteppers32620 = -1; if (typeof(LeadingZeros32620)=="undefined") LeadingZeros32620 = true; CountSteppers32620 = Math.ceil(CountSteppers32620); if (CountSteppers32620 == 0) CountActives32620 = false; var SetTimeOutPeriods32620 = (Math.abs(CountSteppers32620)-1)*1000 + 990; puti(BackColors32620, ForeColors32620); var dthens32620 = new Date(TargetDates32620); var dnows32620 = new Date("08/02/2025 4:24:07 AM"); if(CountSteppers32620>0) ddiffs32620 = new Date(dnows32620-dthens32620); else ddiffs32620 = new Date(dthens32620-dnows32620); gsecss32620 = Math.floor(ddiffs32620.valueOf()/1000); CountBacks32620(gsecss32620);