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 (LeadingZeros32242 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32242(secs) { if (secs < 0) { document.getElementById("cntdwns32242").innerHTML = FinishMessages32242; return; } DisplayStrs32242 = DisplayFormats32242.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32242 = DisplayStrs32242.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32242 = DisplayStrs32242.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32242 = DisplayStrs32242.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32242").innerHTML = DisplayStrs32242; if (CountActives32242) //alert(SetTimeOutPeriods32242); setTimeout("CountBacks32242(" + (secs+CountSteppers32242) + ")", SetTimeOutPeriods32242); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32242)=="undefined") BackColors32242 = ""; if (typeof(ForeColors32242)=="undefined") ForeColors32242= "white"; if (typeof(TargetDates32242)=="undefined") TargetDates32242 = "04/21/2025 10:00:00 PM"; if (typeof(DisplayFormats32242)=="undefined") DisplayFormats32242 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32242)=="undefined") CountActives32242 = true; if (typeof(FinishMessages32242)=="undefined") FinishMessages32242 = ""; if (typeof(CountSteppers32242)!="number") CountSteppers32242 = -1; if (typeof(LeadingZeros32242)=="undefined") LeadingZeros32242 = true; CountSteppers32242 = Math.ceil(CountSteppers32242); if (CountSteppers32242 == 0) CountActives32242 = false; var SetTimeOutPeriods32242 = (Math.abs(CountSteppers32242)-1)*1000 + 990; puti(BackColors32242, ForeColors32242); var dthens32242 = new Date(TargetDates32242); var dnows32242 = new Date("04/19/2025 8:49:25 PM"); if(CountSteppers32242>0) ddiffs32242 = new Date(dnows32242-dthens32242); else ddiffs32242 = new Date(dthens32242-dnows32242); gsecss32242 = Math.floor(ddiffs32242.valueOf()/1000); CountBacks32242(gsecss32242);