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 (LeadingZeros32332 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32332(secs) { if (secs < 0) { document.getElementById("cntdwns32332").innerHTML = FinishMessages32332; return; } DisplayStrs32332 = DisplayFormats32332.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32332 = DisplayStrs32332.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32332 = DisplayStrs32332.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32332 = DisplayStrs32332.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32332").innerHTML = DisplayStrs32332; if (CountActives32332) //alert(SetTimeOutPeriods32332); setTimeout("CountBacks32332(" + (secs+CountSteppers32332) + ")", SetTimeOutPeriods32332); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32332)=="undefined") BackColors32332 = ""; if (typeof(ForeColors32332)=="undefined") ForeColors32332= "white"; if (typeof(TargetDates32332)=="undefined") TargetDates32332 = "06/09/2025 10:00:00 PM"; if (typeof(DisplayFormats32332)=="undefined") DisplayFormats32332 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32332)=="undefined") CountActives32332 = true; if (typeof(FinishMessages32332)=="undefined") FinishMessages32332 = ""; if (typeof(CountSteppers32332)!="number") CountSteppers32332 = -1; if (typeof(LeadingZeros32332)=="undefined") LeadingZeros32332 = true; CountSteppers32332 = Math.ceil(CountSteppers32332); if (CountSteppers32332 == 0) CountActives32332 = false; var SetTimeOutPeriods32332 = (Math.abs(CountSteppers32332)-1)*1000 + 990; puti(BackColors32332, ForeColors32332); var dthens32332 = new Date(TargetDates32332); var dnows32332 = new Date("06/07/2025 8:16:45 PM"); if(CountSteppers32332>0) ddiffs32332 = new Date(dnows32332-dthens32332); else ddiffs32332 = new Date(dthens32332-dnows32332); gsecss32332 = Math.floor(ddiffs32332.valueOf()/1000); CountBacks32332(gsecss32332);