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 (LeadingZeros32621 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32621(secs) { if (secs < 0) { document.getElementById("cntdwns32621").innerHTML = FinishMessages32621; return; } DisplayStrs32621 = DisplayFormats32621.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32621 = DisplayStrs32621.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32621 = DisplayStrs32621.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32621 = DisplayStrs32621.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32621").innerHTML = DisplayStrs32621; if (CountActives32621) //alert(SetTimeOutPeriods32621); setTimeout("CountBacks32621(" + (secs+CountSteppers32621) + ")", SetTimeOutPeriods32621); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32621)=="undefined") BackColors32621 = ""; if (typeof(ForeColors32621)=="undefined") ForeColors32621= "white"; if (typeof(TargetDates32621)=="undefined") TargetDates32621 = "08/03/2025 10:00:00 PM"; if (typeof(DisplayFormats32621)=="undefined") DisplayFormats32621 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32621)=="undefined") CountActives32621 = true; if (typeof(FinishMessages32621)=="undefined") FinishMessages32621 = ""; if (typeof(CountSteppers32621)!="number") CountSteppers32621 = -1; if (typeof(LeadingZeros32621)=="undefined") LeadingZeros32621 = true; CountSteppers32621 = Math.ceil(CountSteppers32621); if (CountSteppers32621 == 0) CountActives32621 = false; var SetTimeOutPeriods32621 = (Math.abs(CountSteppers32621)-1)*1000 + 990; puti(BackColors32621, ForeColors32621); var dthens32621 = new Date(TargetDates32621); var dnows32621 = new Date("08/02/2025 4:27:19 AM"); if(CountSteppers32621>0) ddiffs32621 = new Date(dnows32621-dthens32621); else ddiffs32621 = new Date(dthens32621-dnows32621); gsecss32621 = Math.floor(ddiffs32621.valueOf()/1000); CountBacks32621(gsecss32621);