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 (LeadingZeros33204 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33204(secs) { if (secs < 0) { document.getElementById("cntdwns33204").innerHTML = FinishMessages33204; return; } DisplayStrs33204 = DisplayFormats33204.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33204 = DisplayStrs33204.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33204 = DisplayStrs33204.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33204 = DisplayStrs33204.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33204").innerHTML = DisplayStrs33204; if (CountActives33204) //alert(SetTimeOutPeriods33204); setTimeout("CountBacks33204(" + (secs+CountSteppers33204) + ")", SetTimeOutPeriods33204); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33204)=="undefined") BackColors33204 = ""; if (typeof(ForeColors33204)=="undefined") ForeColors33204= "white"; if (typeof(TargetDates33204)=="undefined") TargetDates33204 = "12/09/2025 10:00:00 PM"; if (typeof(DisplayFormats33204)=="undefined") DisplayFormats33204 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33204)=="undefined") CountActives33204 = true; if (typeof(FinishMessages33204)=="undefined") FinishMessages33204 = ""; if (typeof(CountSteppers33204)!="number") CountSteppers33204 = -1; if (typeof(LeadingZeros33204)=="undefined") LeadingZeros33204 = true; CountSteppers33204 = Math.ceil(CountSteppers33204); if (CountSteppers33204 == 0) CountActives33204 = false; var SetTimeOutPeriods33204 = (Math.abs(CountSteppers33204)-1)*1000 + 990; puti(BackColors33204, ForeColors33204); var dthens33204 = new Date(TargetDates33204); var dnows33204 = new Date("12/07/2025 5:31:26 PM"); if(CountSteppers33204>0) ddiffs33204 = new Date(dnows33204-dthens33204); else ddiffs33204 = new Date(dthens33204-dnows33204); gsecss33204 = Math.floor(ddiffs33204.valueOf()/1000); CountBacks33204(gsecss33204);