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 (LeadingZeros32234 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32234(secs) { if (secs < 0) { document.getElementById("cntdwns32234").innerHTML = FinishMessages32234; return; } DisplayStrs32234 = DisplayFormats32234.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32234 = DisplayStrs32234.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32234 = DisplayStrs32234.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32234 = DisplayStrs32234.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32234").innerHTML = DisplayStrs32234; if (CountActives32234) //alert(SetTimeOutPeriods32234); setTimeout("CountBacks32234(" + (secs+CountSteppers32234) + ")", SetTimeOutPeriods32234); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32234)=="undefined") BackColors32234 = ""; if (typeof(ForeColors32234)=="undefined") ForeColors32234= "white"; if (typeof(TargetDates32234)=="undefined") TargetDates32234 = "05/27/2025 10:00:00 PM"; if (typeof(DisplayFormats32234)=="undefined") DisplayFormats32234 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32234)=="undefined") CountActives32234 = true; if (typeof(FinishMessages32234)=="undefined") FinishMessages32234 = ""; if (typeof(CountSteppers32234)!="number") CountSteppers32234 = -1; if (typeof(LeadingZeros32234)=="undefined") LeadingZeros32234 = true; CountSteppers32234 = Math.ceil(CountSteppers32234); if (CountSteppers32234 == 0) CountActives32234 = false; var SetTimeOutPeriods32234 = (Math.abs(CountSteppers32234)-1)*1000 + 990; puti(BackColors32234, ForeColors32234); var dthens32234 = new Date(TargetDates32234); var dnows32234 = new Date("06/04/2025 7:37:21 AM"); if(CountSteppers32234>0) ddiffs32234 = new Date(dnows32234-dthens32234); else ddiffs32234 = new Date(dthens32234-dnows32234); gsecss32234 = Math.floor(ddiffs32234.valueOf()/1000); CountBacks32234(gsecss32234);