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 (LeadingZeros32561 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32561(secs) { if (secs < 0) { document.getElementById("cntdwns32561").innerHTML = FinishMessages32561; return; } DisplayStrs32561 = DisplayFormats32561.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32561 = DisplayStrs32561.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32561 = DisplayStrs32561.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32561 = DisplayStrs32561.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32561").innerHTML = DisplayStrs32561; if (CountActives32561) //alert(SetTimeOutPeriods32561); setTimeout("CountBacks32561(" + (secs+CountSteppers32561) + ")", SetTimeOutPeriods32561); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32561)=="undefined") BackColors32561 = ""; if (typeof(ForeColors32561)=="undefined") ForeColors32561= "white"; if (typeof(TargetDates32561)=="undefined") TargetDates32561 = "08/02/2025 10:00:00 PM"; if (typeof(DisplayFormats32561)=="undefined") DisplayFormats32561 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32561)=="undefined") CountActives32561 = true; if (typeof(FinishMessages32561)=="undefined") FinishMessages32561 = ""; if (typeof(CountSteppers32561)!="number") CountSteppers32561 = -1; if (typeof(LeadingZeros32561)=="undefined") LeadingZeros32561 = true; CountSteppers32561 = Math.ceil(CountSteppers32561); if (CountSteppers32561 == 0) CountActives32561 = false; var SetTimeOutPeriods32561 = (Math.abs(CountSteppers32561)-1)*1000 + 990; puti(BackColors32561, ForeColors32561); var dthens32561 = new Date(TargetDates32561); var dnows32561 = new Date("08/01/2025 5:42:36 PM"); if(CountSteppers32561>0) ddiffs32561 = new Date(dnows32561-dthens32561); else ddiffs32561 = new Date(dthens32561-dnows32561); gsecss32561 = Math.floor(ddiffs32561.valueOf()/1000); CountBacks32561(gsecss32561);