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 (LeadingZeros33242 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33242(secs) { if (secs < 0) { document.getElementById("cntdwns33242").innerHTML = FinishMessages33242; return; } DisplayStrs33242 = DisplayFormats33242.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33242 = DisplayStrs33242.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33242 = DisplayStrs33242.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33242 = DisplayStrs33242.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33242").innerHTML = DisplayStrs33242; if (CountActives33242) //alert(SetTimeOutPeriods33242); setTimeout("CountBacks33242(" + (secs+CountSteppers33242) + ")", SetTimeOutPeriods33242); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33242)=="undefined") BackColors33242 = ""; if (typeof(ForeColors33242)=="undefined") ForeColors33242= "white"; if (typeof(TargetDates33242)=="undefined") TargetDates33242 = "01/12/2026 10:00:00 PM"; if (typeof(DisplayFormats33242)=="undefined") DisplayFormats33242 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33242)=="undefined") CountActives33242 = true; if (typeof(FinishMessages33242)=="undefined") FinishMessages33242 = ""; if (typeof(CountSteppers33242)!="number") CountSteppers33242 = -1; if (typeof(LeadingZeros33242)=="undefined") LeadingZeros33242 = true; CountSteppers33242 = Math.ceil(CountSteppers33242); if (CountSteppers33242 == 0) CountActives33242 = false; var SetTimeOutPeriods33242 = (Math.abs(CountSteppers33242)-1)*1000 + 990; puti(BackColors33242, ForeColors33242); var dthens33242 = new Date(TargetDates33242); var dnows33242 = new Date("01/10/2026 2:59:04 AM"); if(CountSteppers33242>0) ddiffs33242 = new Date(dnows33242-dthens33242); else ddiffs33242 = new Date(dthens33242-dnows33242); gsecss33242 = Math.floor(ddiffs33242.valueOf()/1000); CountBacks33242(gsecss33242);