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 (LeadingZeros31665 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31665(secs) { if (secs < 0) { document.getElementById("cntdwns31665").innerHTML = FinishMessages31665; return; } DisplayStrs31665 = DisplayFormats31665.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31665 = DisplayStrs31665.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31665 = DisplayStrs31665.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31665 = DisplayStrs31665.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31665").innerHTML = DisplayStrs31665; if (CountActives31665) //alert(SetTimeOutPeriods31665); setTimeout("CountBacks31665(" + (secs+CountSteppers31665) + ")", SetTimeOutPeriods31665); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31665)=="undefined") BackColors31665 = ""; if (typeof(ForeColors31665)=="undefined") ForeColors31665= "white"; if (typeof(TargetDates31665)=="undefined") TargetDates31665 = "02/07/2025 10:00:00 PM"; if (typeof(DisplayFormats31665)=="undefined") DisplayFormats31665 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31665)=="undefined") CountActives31665 = true; if (typeof(FinishMessages31665)=="undefined") FinishMessages31665 = ""; if (typeof(CountSteppers31665)!="number") CountSteppers31665 = -1; if (typeof(LeadingZeros31665)=="undefined") LeadingZeros31665 = true; CountSteppers31665 = Math.ceil(CountSteppers31665); if (CountSteppers31665 == 0) CountActives31665 = false; var SetTimeOutPeriods31665 = (Math.abs(CountSteppers31665)-1)*1000 + 990; puti(BackColors31665, ForeColors31665); var dthens31665 = new Date(TargetDates31665); var dnows31665 = new Date("02/05/2025 12:46:41 PM"); if(CountSteppers31665>0) ddiffs31665 = new Date(dnows31665-dthens31665); else ddiffs31665 = new Date(dthens31665-dnows31665); gsecss31665 = Math.floor(ddiffs31665.valueOf()/1000); CountBacks31665(gsecss31665);