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 (LeadingZeros27962 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27962(secs) { if (secs < 0) { document.getElementById("cntdwns27962").innerHTML = FinishMessages27962; return; } DisplayStrs27962 = DisplayFormats27962.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27962 = DisplayStrs27962.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27962 = DisplayStrs27962.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27962 = DisplayStrs27962.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27962").innerHTML = DisplayStrs27962; if (CountActives27962) //alert(SetTimeOutPeriods27962); setTimeout("CountBacks27962(" + (secs+CountSteppers27962) + ")", SetTimeOutPeriods27962); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27962)=="undefined") BackColors27962 = ""; if (typeof(ForeColors27962)=="undefined") ForeColors27962= "white"; if (typeof(TargetDates27962)=="undefined") TargetDates27962 = "06/07/2023 11:00:00 PM"; if (typeof(DisplayFormats27962)=="undefined") DisplayFormats27962 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27962)=="undefined") CountActives27962 = true; if (typeof(FinishMessages27962)=="undefined") FinishMessages27962 = ""; if (typeof(CountSteppers27962)!="number") CountSteppers27962 = -1; if (typeof(LeadingZeros27962)=="undefined") LeadingZeros27962 = true; CountSteppers27962 = Math.ceil(CountSteppers27962); if (CountSteppers27962 == 0) CountActives27962 = false; var SetTimeOutPeriods27962 = (Math.abs(CountSteppers27962)-1)*1000 + 990; puti(BackColors27962, ForeColors27962); var dthens27962 = new Date(TargetDates27962); var dnows27962 = new Date("05/11/2025 5:42:38 PM"); if(CountSteppers27962>0) ddiffs27962 = new Date(dnows27962-dthens27962); else ddiffs27962 = new Date(dthens27962-dnows27962); gsecss27962 = Math.floor(ddiffs27962.valueOf()/1000); CountBacks27962(gsecss27962);