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 (LeadingZeros31753 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31753(secs) { if (secs < 0) { document.getElementById("cntdwns31753").innerHTML = FinishMessages31753; return; } DisplayStrs31753 = DisplayFormats31753.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31753 = DisplayStrs31753.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31753 = DisplayStrs31753.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31753 = DisplayStrs31753.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31753").innerHTML = DisplayStrs31753; if (CountActives31753) //alert(SetTimeOutPeriods31753); setTimeout("CountBacks31753(" + (secs+CountSteppers31753) + ")", SetTimeOutPeriods31753); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31753)=="undefined") BackColors31753 = ""; if (typeof(ForeColors31753)=="undefined") ForeColors31753= "white"; if (typeof(TargetDates31753)=="undefined") TargetDates31753 = "02/07/2025 10:00:00 PM"; if (typeof(DisplayFormats31753)=="undefined") DisplayFormats31753 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31753)=="undefined") CountActives31753 = true; if (typeof(FinishMessages31753)=="undefined") FinishMessages31753 = ""; if (typeof(CountSteppers31753)!="number") CountSteppers31753 = -1; if (typeof(LeadingZeros31753)=="undefined") LeadingZeros31753 = true; CountSteppers31753 = Math.ceil(CountSteppers31753); if (CountSteppers31753 == 0) CountActives31753 = false; var SetTimeOutPeriods31753 = (Math.abs(CountSteppers31753)-1)*1000 + 990; puti(BackColors31753, ForeColors31753); var dthens31753 = new Date(TargetDates31753); var dnows31753 = new Date("02/05/2025 7:58:39 AM"); if(CountSteppers31753>0) ddiffs31753 = new Date(dnows31753-dthens31753); else ddiffs31753 = new Date(dthens31753-dnows31753); gsecss31753 = Math.floor(ddiffs31753.valueOf()/1000); CountBacks31753(gsecss31753);