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 (LeadingZeros33294 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33294(secs) { if (secs < 0) { document.getElementById("cntdwns33294").innerHTML = FinishMessages33294; return; } DisplayStrs33294 = DisplayFormats33294.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33294 = DisplayStrs33294.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33294 = DisplayStrs33294.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33294 = DisplayStrs33294.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33294").innerHTML = DisplayStrs33294; if (CountActives33294) //alert(SetTimeOutPeriods33294); setTimeout("CountBacks33294(" + (secs+CountSteppers33294) + ")", SetTimeOutPeriods33294); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33294)=="undefined") BackColors33294 = ""; if (typeof(ForeColors33294)=="undefined") ForeColors33294= "white"; if (typeof(TargetDates33294)=="undefined") TargetDates33294 = "12/26/2025 10:00:00 PM"; if (typeof(DisplayFormats33294)=="undefined") DisplayFormats33294 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33294)=="undefined") CountActives33294 = true; if (typeof(FinishMessages33294)=="undefined") FinishMessages33294 = ""; if (typeof(CountSteppers33294)!="number") CountSteppers33294 = -1; if (typeof(LeadingZeros33294)=="undefined") LeadingZeros33294 = true; CountSteppers33294 = Math.ceil(CountSteppers33294); if (CountSteppers33294 == 0) CountActives33294 = false; var SetTimeOutPeriods33294 = (Math.abs(CountSteppers33294)-1)*1000 + 990; puti(BackColors33294, ForeColors33294); var dthens33294 = new Date(TargetDates33294); var dnows33294 = new Date("12/23/2025 10:09:22 PM"); if(CountSteppers33294>0) ddiffs33294 = new Date(dnows33294-dthens33294); else ddiffs33294 = new Date(dthens33294-dnows33294); gsecss33294 = Math.floor(ddiffs33294.valueOf()/1000); CountBacks33294(gsecss33294);