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 (LeadingZeros32613 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32613(secs) { if (secs < 0) { document.getElementById("cntdwns32613").innerHTML = FinishMessages32613; return; } DisplayStrs32613 = DisplayFormats32613.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32613 = DisplayStrs32613.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32613 = DisplayStrs32613.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32613 = DisplayStrs32613.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32613").innerHTML = DisplayStrs32613; if (CountActives32613) //alert(SetTimeOutPeriods32613); setTimeout("CountBacks32613(" + (secs+CountSteppers32613) + ")", SetTimeOutPeriods32613); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32613)=="undefined") BackColors32613 = ""; if (typeof(ForeColors32613)=="undefined") ForeColors32613= "white"; if (typeof(TargetDates32613)=="undefined") TargetDates32613 = "08/02/2025 8:00:00 AM"; if (typeof(DisplayFormats32613)=="undefined") DisplayFormats32613 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32613)=="undefined") CountActives32613 = true; if (typeof(FinishMessages32613)=="undefined") FinishMessages32613 = ""; if (typeof(CountSteppers32613)!="number") CountSteppers32613 = -1; if (typeof(LeadingZeros32613)=="undefined") LeadingZeros32613 = true; CountSteppers32613 = Math.ceil(CountSteppers32613); if (CountSteppers32613 == 0) CountActives32613 = false; var SetTimeOutPeriods32613 = (Math.abs(CountSteppers32613)-1)*1000 + 990; puti(BackColors32613, ForeColors32613); var dthens32613 = new Date(TargetDates32613); var dnows32613 = new Date("07/31/2025 7:21:18 PM"); if(CountSteppers32613>0) ddiffs32613 = new Date(dnows32613-dthens32613); else ddiffs32613 = new Date(dthens32613-dnows32613); gsecss32613 = Math.floor(ddiffs32613.valueOf()/1000); CountBacks32613(gsecss32613);