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 (LeadingZeros31212 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31212(secs) { if (secs < 0) { document.getElementById("cntdwns31212").innerHTML = FinishMessages31212; return; } DisplayStrs31212 = DisplayFormats31212.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31212 = DisplayStrs31212.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31212 = DisplayStrs31212.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31212 = DisplayStrs31212.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31212").innerHTML = DisplayStrs31212; if (CountActives31212) //alert(SetTimeOutPeriods31212); setTimeout("CountBacks31212(" + (secs+CountSteppers31212) + ")", SetTimeOutPeriods31212); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31212)=="undefined") BackColors31212 = ""; if (typeof(ForeColors31212)=="undefined") ForeColors31212= "white"; if (typeof(TargetDates31212)=="undefined") TargetDates31212 = "01/19/2025 9:00:00 PM"; if (typeof(DisplayFormats31212)=="undefined") DisplayFormats31212 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31212)=="undefined") CountActives31212 = true; if (typeof(FinishMessages31212)=="undefined") FinishMessages31212 = ""; if (typeof(CountSteppers31212)!="number") CountSteppers31212 = -1; if (typeof(LeadingZeros31212)=="undefined") LeadingZeros31212 = true; CountSteppers31212 = Math.ceil(CountSteppers31212); if (CountSteppers31212 == 0) CountActives31212 = false; var SetTimeOutPeriods31212 = (Math.abs(CountSteppers31212)-1)*1000 + 990; puti(BackColors31212, ForeColors31212); var dthens31212 = new Date(TargetDates31212); var dnows31212 = new Date("02/05/2025 3:47:22 PM"); if(CountSteppers31212>0) ddiffs31212 = new Date(dnows31212-dthens31212); else ddiffs31212 = new Date(dthens31212-dnows31212); gsecss31212 = Math.floor(ddiffs31212.valueOf()/1000); CountBacks31212(gsecss31212);