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 (LeadingZeros31655 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31655(secs) { if (secs < 0) { document.getElementById("cntdwns31655").innerHTML = FinishMessages31655; return; } DisplayStrs31655 = DisplayFormats31655.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31655 = DisplayStrs31655.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31655 = DisplayStrs31655.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31655 = DisplayStrs31655.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31655").innerHTML = DisplayStrs31655; if (CountActives31655) //alert(SetTimeOutPeriods31655); setTimeout("CountBacks31655(" + (secs+CountSteppers31655) + ")", SetTimeOutPeriods31655); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31655)=="undefined") BackColors31655 = ""; if (typeof(ForeColors31655)=="undefined") ForeColors31655= "white"; if (typeof(TargetDates31655)=="undefined") TargetDates31655 = "02/01/2025 10:00:00 PM"; if (typeof(DisplayFormats31655)=="undefined") DisplayFormats31655 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31655)=="undefined") CountActives31655 = true; if (typeof(FinishMessages31655)=="undefined") FinishMessages31655 = ""; if (typeof(CountSteppers31655)!="number") CountSteppers31655 = -1; if (typeof(LeadingZeros31655)=="undefined") LeadingZeros31655 = true; CountSteppers31655 = Math.ceil(CountSteppers31655); if (CountSteppers31655 == 0) CountActives31655 = false; var SetTimeOutPeriods31655 = (Math.abs(CountSteppers31655)-1)*1000 + 990; puti(BackColors31655, ForeColors31655); var dthens31655 = new Date(TargetDates31655); var dnows31655 = new Date("01/30/2025 3:38:42 PM"); if(CountSteppers31655>0) ddiffs31655 = new Date(dnows31655-dthens31655); else ddiffs31655 = new Date(dthens31655-dnows31655); gsecss31655 = Math.floor(ddiffs31655.valueOf()/1000); CountBacks31655(gsecss31655);