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 (LeadingZeros32265 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32265(secs) { if (secs < 0) { document.getElementById("cntdwns32265").innerHTML = FinishMessages32265; return; } DisplayStrs32265 = DisplayFormats32265.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32265 = DisplayStrs32265.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32265 = DisplayStrs32265.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32265 = DisplayStrs32265.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32265").innerHTML = DisplayStrs32265; if (CountActives32265) //alert(SetTimeOutPeriods32265); setTimeout("CountBacks32265(" + (secs+CountSteppers32265) + ")", SetTimeOutPeriods32265); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32265)=="undefined") BackColors32265 = ""; if (typeof(ForeColors32265)=="undefined") ForeColors32265= "white"; if (typeof(TargetDates32265)=="undefined") TargetDates32265 = "05/09/2025 10:00:00 PM"; if (typeof(DisplayFormats32265)=="undefined") DisplayFormats32265 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32265)=="undefined") CountActives32265 = true; if (typeof(FinishMessages32265)=="undefined") FinishMessages32265 = ""; if (typeof(CountSteppers32265)!="number") CountSteppers32265 = -1; if (typeof(LeadingZeros32265)=="undefined") LeadingZeros32265 = true; CountSteppers32265 = Math.ceil(CountSteppers32265); if (CountSteppers32265 == 0) CountActives32265 = false; var SetTimeOutPeriods32265 = (Math.abs(CountSteppers32265)-1)*1000 + 990; puti(BackColors32265, ForeColors32265); var dthens32265 = new Date(TargetDates32265); var dnows32265 = new Date("05/08/2025 9:54:02 PM"); if(CountSteppers32265>0) ddiffs32265 = new Date(dnows32265-dthens32265); else ddiffs32265 = new Date(dthens32265-dnows32265); gsecss32265 = Math.floor(ddiffs32265.valueOf()/1000); CountBacks32265(gsecss32265);