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 (LeadingZeros32207 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32207(secs) { if (secs < 0) { document.getElementById("cntdwns32207").innerHTML = FinishMessages32207; return; } DisplayStrs32207 = DisplayFormats32207.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32207 = DisplayStrs32207.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32207 = DisplayStrs32207.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32207 = DisplayStrs32207.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32207").innerHTML = DisplayStrs32207; if (CountActives32207) //alert(SetTimeOutPeriods32207); setTimeout("CountBacks32207(" + (secs+CountSteppers32207) + ")", SetTimeOutPeriods32207); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32207)=="undefined") BackColors32207 = ""; if (typeof(ForeColors32207)=="undefined") ForeColors32207= "white"; if (typeof(TargetDates32207)=="undefined") TargetDates32207 = "04/21/2025 10:00:00 PM"; if (typeof(DisplayFormats32207)=="undefined") DisplayFormats32207 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32207)=="undefined") CountActives32207 = true; if (typeof(FinishMessages32207)=="undefined") FinishMessages32207 = ""; if (typeof(CountSteppers32207)!="number") CountSteppers32207 = -1; if (typeof(LeadingZeros32207)=="undefined") LeadingZeros32207 = true; CountSteppers32207 = Math.ceil(CountSteppers32207); if (CountSteppers32207 == 0) CountActives32207 = false; var SetTimeOutPeriods32207 = (Math.abs(CountSteppers32207)-1)*1000 + 990; puti(BackColors32207, ForeColors32207); var dthens32207 = new Date(TargetDates32207); var dnows32207 = new Date("04/19/2025 2:52:02 PM"); if(CountSteppers32207>0) ddiffs32207 = new Date(dnows32207-dthens32207); else ddiffs32207 = new Date(dthens32207-dnows32207); gsecss32207 = Math.floor(ddiffs32207.valueOf()/1000); CountBacks32207(gsecss32207);