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 (LeadingZeros32536 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32536(secs) { if (secs < 0) { document.getElementById("cntdwns32536").innerHTML = FinishMessages32536; return; } DisplayStrs32536 = DisplayFormats32536.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32536 = DisplayStrs32536.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32536 = DisplayStrs32536.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32536 = DisplayStrs32536.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32536").innerHTML = DisplayStrs32536; if (CountActives32536) //alert(SetTimeOutPeriods32536); setTimeout("CountBacks32536(" + (secs+CountSteppers32536) + ")", SetTimeOutPeriods32536); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32536)=="undefined") BackColors32536 = ""; if (typeof(ForeColors32536)=="undefined") ForeColors32536= "white"; if (typeof(TargetDates32536)=="undefined") TargetDates32536 = "07/08/2025 10:00:00 PM"; if (typeof(DisplayFormats32536)=="undefined") DisplayFormats32536 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32536)=="undefined") CountActives32536 = true; if (typeof(FinishMessages32536)=="undefined") FinishMessages32536 = ""; if (typeof(CountSteppers32536)!="number") CountSteppers32536 = -1; if (typeof(LeadingZeros32536)=="undefined") LeadingZeros32536 = true; CountSteppers32536 = Math.ceil(CountSteppers32536); if (CountSteppers32536 == 0) CountActives32536 = false; var SetTimeOutPeriods32536 = (Math.abs(CountSteppers32536)-1)*1000 + 990; puti(BackColors32536, ForeColors32536); var dthens32536 = new Date(TargetDates32536); var dnows32536 = new Date("07/06/2025 9:33:20 AM"); if(CountSteppers32536>0) ddiffs32536 = new Date(dnows32536-dthens32536); else ddiffs32536 = new Date(dthens32536-dnows32536); gsecss32536 = Math.floor(ddiffs32536.valueOf()/1000); CountBacks32536(gsecss32536);