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 (LeadingZeros32295 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32295(secs) { if (secs < 0) { document.getElementById("cntdwns32295").innerHTML = FinishMessages32295; return; } DisplayStrs32295 = DisplayFormats32295.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32295 = DisplayStrs32295.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32295 = DisplayStrs32295.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32295 = DisplayStrs32295.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32295").innerHTML = DisplayStrs32295; if (CountActives32295) //alert(SetTimeOutPeriods32295); setTimeout("CountBacks32295(" + (secs+CountSteppers32295) + ")", SetTimeOutPeriods32295); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32295)=="undefined") BackColors32295 = ""; if (typeof(ForeColors32295)=="undefined") ForeColors32295= "white"; if (typeof(TargetDates32295)=="undefined") TargetDates32295 = "05/13/2025 10:00:00 PM"; if (typeof(DisplayFormats32295)=="undefined") DisplayFormats32295 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32295)=="undefined") CountActives32295 = true; if (typeof(FinishMessages32295)=="undefined") FinishMessages32295 = ""; if (typeof(CountSteppers32295)!="number") CountSteppers32295 = -1; if (typeof(LeadingZeros32295)=="undefined") LeadingZeros32295 = true; CountSteppers32295 = Math.ceil(CountSteppers32295); if (CountSteppers32295 == 0) CountActives32295 = false; var SetTimeOutPeriods32295 = (Math.abs(CountSteppers32295)-1)*1000 + 990; puti(BackColors32295, ForeColors32295); var dthens32295 = new Date(TargetDates32295); var dnows32295 = new Date("05/10/2025 5:22:04 AM"); if(CountSteppers32295>0) ddiffs32295 = new Date(dnows32295-dthens32295); else ddiffs32295 = new Date(dthens32295-dnows32295); gsecss32295 = Math.floor(ddiffs32295.valueOf()/1000); CountBacks32295(gsecss32295);