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 (LeadingZeros32268 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32268(secs) { if (secs < 0) { document.getElementById("cntdwns32268").innerHTML = FinishMessages32268; return; } DisplayStrs32268 = DisplayFormats32268.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32268 = DisplayStrs32268.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32268 = DisplayStrs32268.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32268 = DisplayStrs32268.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32268").innerHTML = DisplayStrs32268; if (CountActives32268) //alert(SetTimeOutPeriods32268); setTimeout("CountBacks32268(" + (secs+CountSteppers32268) + ")", SetTimeOutPeriods32268); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32268)=="undefined") BackColors32268 = ""; if (typeof(ForeColors32268)=="undefined") ForeColors32268= "white"; if (typeof(TargetDates32268)=="undefined") TargetDates32268 = "05/06/2025 10:00:00 PM"; if (typeof(DisplayFormats32268)=="undefined") DisplayFormats32268 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32268)=="undefined") CountActives32268 = true; if (typeof(FinishMessages32268)=="undefined") FinishMessages32268 = ""; if (typeof(CountSteppers32268)!="number") CountSteppers32268 = -1; if (typeof(LeadingZeros32268)=="undefined") LeadingZeros32268 = true; CountSteppers32268 = Math.ceil(CountSteppers32268); if (CountSteppers32268 == 0) CountActives32268 = false; var SetTimeOutPeriods32268 = (Math.abs(CountSteppers32268)-1)*1000 + 990; puti(BackColors32268, ForeColors32268); var dthens32268 = new Date(TargetDates32268); var dnows32268 = new Date("05/04/2025 12:35:23 PM"); if(CountSteppers32268>0) ddiffs32268 = new Date(dnows32268-dthens32268); else ddiffs32268 = new Date(dthens32268-dnows32268); gsecss32268 = Math.floor(ddiffs32268.valueOf()/1000); CountBacks32268(gsecss32268);