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 (LeadingZeros33212 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33212(secs) { if (secs < 0) { document.getElementById("cntdwns33212").innerHTML = FinishMessages33212; return; } DisplayStrs33212 = DisplayFormats33212.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33212 = DisplayStrs33212.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33212 = DisplayStrs33212.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33212 = DisplayStrs33212.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33212").innerHTML = DisplayStrs33212; if (CountActives33212) //alert(SetTimeOutPeriods33212); setTimeout("CountBacks33212(" + (secs+CountSteppers33212) + ")", SetTimeOutPeriods33212); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33212)=="undefined") BackColors33212 = ""; if (typeof(ForeColors33212)=="undefined") ForeColors33212= "white"; if (typeof(TargetDates33212)=="undefined") TargetDates33212 = "12/11/2025 10:00:00 PM"; if (typeof(DisplayFormats33212)=="undefined") DisplayFormats33212 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33212)=="undefined") CountActives33212 = true; if (typeof(FinishMessages33212)=="undefined") FinishMessages33212 = ""; if (typeof(CountSteppers33212)!="number") CountSteppers33212 = -1; if (typeof(LeadingZeros33212)=="undefined") LeadingZeros33212 = true; CountSteppers33212 = Math.ceil(CountSteppers33212); if (CountSteppers33212 == 0) CountActives33212 = false; var SetTimeOutPeriods33212 = (Math.abs(CountSteppers33212)-1)*1000 + 990; puti(BackColors33212, ForeColors33212); var dthens33212 = new Date(TargetDates33212); var dnows33212 = new Date("12/08/2025 11:17:42 PM"); if(CountSteppers33212>0) ddiffs33212 = new Date(dnows33212-dthens33212); else ddiffs33212 = new Date(dthens33212-dnows33212); gsecss33212 = Math.floor(ddiffs33212.valueOf()/1000); CountBacks33212(gsecss33212);