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 (LeadingZeros32324 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32324(secs) { if (secs < 0) { document.getElementById("cntdwns32324").innerHTML = FinishMessages32324; return; } DisplayStrs32324 = DisplayFormats32324.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32324 = DisplayStrs32324.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32324 = DisplayStrs32324.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32324 = DisplayStrs32324.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32324").innerHTML = DisplayStrs32324; if (CountActives32324) //alert(SetTimeOutPeriods32324); setTimeout("CountBacks32324(" + (secs+CountSteppers32324) + ")", SetTimeOutPeriods32324); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32324)=="undefined") BackColors32324 = ""; if (typeof(ForeColors32324)=="undefined") ForeColors32324= "white"; if (typeof(TargetDates32324)=="undefined") TargetDates32324 = "05/12/2025 10:00:00 PM"; if (typeof(DisplayFormats32324)=="undefined") DisplayFormats32324 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32324)=="undefined") CountActives32324 = true; if (typeof(FinishMessages32324)=="undefined") FinishMessages32324 = ""; if (typeof(CountSteppers32324)!="number") CountSteppers32324 = -1; if (typeof(LeadingZeros32324)=="undefined") LeadingZeros32324 = true; CountSteppers32324 = Math.ceil(CountSteppers32324); if (CountSteppers32324 == 0) CountActives32324 = false; var SetTimeOutPeriods32324 = (Math.abs(CountSteppers32324)-1)*1000 + 990; puti(BackColors32324, ForeColors32324); var dthens32324 = new Date(TargetDates32324); var dnows32324 = new Date("05/09/2025 4:09:01 PM"); if(CountSteppers32324>0) ddiffs32324 = new Date(dnows32324-dthens32324); else ddiffs32324 = new Date(dthens32324-dnows32324); gsecss32324 = Math.floor(ddiffs32324.valueOf()/1000); CountBacks32324(gsecss32324);