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 (LeadingZeros32537 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32537(secs) { if (secs < 0) { document.getElementById("cntdwns32537").innerHTML = FinishMessages32537; return; } DisplayStrs32537 = DisplayFormats32537.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32537 = DisplayStrs32537.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32537 = DisplayStrs32537.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32537 = DisplayStrs32537.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32537").innerHTML = DisplayStrs32537; if (CountActives32537) //alert(SetTimeOutPeriods32537); setTimeout("CountBacks32537(" + (secs+CountSteppers32537) + ")", SetTimeOutPeriods32537); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32537)=="undefined") BackColors32537 = ""; if (typeof(ForeColors32537)=="undefined") ForeColors32537= "white"; if (typeof(TargetDates32537)=="undefined") TargetDates32537 = "07/04/2025 10:00:00 PM"; if (typeof(DisplayFormats32537)=="undefined") DisplayFormats32537 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32537)=="undefined") CountActives32537 = true; if (typeof(FinishMessages32537)=="undefined") FinishMessages32537 = ""; if (typeof(CountSteppers32537)!="number") CountSteppers32537 = -1; if (typeof(LeadingZeros32537)=="undefined") LeadingZeros32537 = true; CountSteppers32537 = Math.ceil(CountSteppers32537); if (CountSteppers32537 == 0) CountActives32537 = false; var SetTimeOutPeriods32537 = (Math.abs(CountSteppers32537)-1)*1000 + 990; puti(BackColors32537, ForeColors32537); var dthens32537 = new Date(TargetDates32537); var dnows32537 = new Date("07/01/2025 3:24:37 PM"); if(CountSteppers32537>0) ddiffs32537 = new Date(dnows32537-dthens32537); else ddiffs32537 = new Date(dthens32537-dnows32537); gsecss32537 = Math.floor(ddiffs32537.valueOf()/1000); CountBacks32537(gsecss32537);