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 (LeadingZeros32308 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32308(secs) { if (secs < 0) { document.getElementById("cntdwns32308").innerHTML = FinishMessages32308; return; } DisplayStrs32308 = DisplayFormats32308.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32308 = DisplayStrs32308.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32308 = DisplayStrs32308.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32308 = DisplayStrs32308.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32308").innerHTML = DisplayStrs32308; if (CountActives32308) //alert(SetTimeOutPeriods32308); setTimeout("CountBacks32308(" + (secs+CountSteppers32308) + ")", SetTimeOutPeriods32308); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32308)=="undefined") BackColors32308 = ""; if (typeof(ForeColors32308)=="undefined") ForeColors32308= "white"; if (typeof(TargetDates32308)=="undefined") TargetDates32308 = "05/09/2025 10:00:00 PM"; if (typeof(DisplayFormats32308)=="undefined") DisplayFormats32308 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32308)=="undefined") CountActives32308 = true; if (typeof(FinishMessages32308)=="undefined") FinishMessages32308 = ""; if (typeof(CountSteppers32308)!="number") CountSteppers32308 = -1; if (typeof(LeadingZeros32308)=="undefined") LeadingZeros32308 = true; CountSteppers32308 = Math.ceil(CountSteppers32308); if (CountSteppers32308 == 0) CountActives32308 = false; var SetTimeOutPeriods32308 = (Math.abs(CountSteppers32308)-1)*1000 + 990; puti(BackColors32308, ForeColors32308); var dthens32308 = new Date(TargetDates32308); var dnows32308 = new Date("05/08/2025 11:17:51 AM"); if(CountSteppers32308>0) ddiffs32308 = new Date(dnows32308-dthens32308); else ddiffs32308 = new Date(dthens32308-dnows32308); gsecss32308 = Math.floor(ddiffs32308.valueOf()/1000); CountBacks32308(gsecss32308);