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 (LeadingZeros32272 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32272(secs) { if (secs < 0) { document.getElementById("cntdwns32272").innerHTML = FinishMessages32272; return; } DisplayStrs32272 = DisplayFormats32272.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32272 = DisplayStrs32272.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32272 = DisplayStrs32272.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32272 = DisplayStrs32272.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32272").innerHTML = DisplayStrs32272; if (CountActives32272) //alert(SetTimeOutPeriods32272); setTimeout("CountBacks32272(" + (secs+CountSteppers32272) + ")", SetTimeOutPeriods32272); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32272)=="undefined") BackColors32272 = ""; if (typeof(ForeColors32272)=="undefined") ForeColors32272= "white"; if (typeof(TargetDates32272)=="undefined") TargetDates32272 = "06/04/2025 10:00:00 PM"; if (typeof(DisplayFormats32272)=="undefined") DisplayFormats32272 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32272)=="undefined") CountActives32272 = true; if (typeof(FinishMessages32272)=="undefined") FinishMessages32272 = ""; if (typeof(CountSteppers32272)!="number") CountSteppers32272 = -1; if (typeof(LeadingZeros32272)=="undefined") LeadingZeros32272 = true; CountSteppers32272 = Math.ceil(CountSteppers32272); if (CountSteppers32272 == 0) CountActives32272 = false; var SetTimeOutPeriods32272 = (Math.abs(CountSteppers32272)-1)*1000 + 990; puti(BackColors32272, ForeColors32272); var dthens32272 = new Date(TargetDates32272); var dnows32272 = new Date("06/04/2025 3:20:30 PM"); if(CountSteppers32272>0) ddiffs32272 = new Date(dnows32272-dthens32272); else ddiffs32272 = new Date(dthens32272-dnows32272); gsecss32272 = Math.floor(ddiffs32272.valueOf()/1000); CountBacks32272(gsecss32272);