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 (LeadingZeros33030 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33030(secs) { if (secs < 0) { document.getElementById("cntdwns33030").innerHTML = FinishMessages33030; return; } DisplayStrs33030 = DisplayFormats33030.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33030 = DisplayStrs33030.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33030 = DisplayStrs33030.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33030 = DisplayStrs33030.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33030").innerHTML = DisplayStrs33030; if (CountActives33030) //alert(SetTimeOutPeriods33030); setTimeout("CountBacks33030(" + (secs+CountSteppers33030) + ")", SetTimeOutPeriods33030); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33030)=="undefined") BackColors33030 = ""; if (typeof(ForeColors33030)=="undefined") ForeColors33030= "white"; if (typeof(TargetDates33030)=="undefined") TargetDates33030 = "11/04/2025 10:00:00 PM"; if (typeof(DisplayFormats33030)=="undefined") DisplayFormats33030 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33030)=="undefined") CountActives33030 = true; if (typeof(FinishMessages33030)=="undefined") FinishMessages33030 = ""; if (typeof(CountSteppers33030)!="number") CountSteppers33030 = -1; if (typeof(LeadingZeros33030)=="undefined") LeadingZeros33030 = true; CountSteppers33030 = Math.ceil(CountSteppers33030); if (CountSteppers33030 == 0) CountActives33030 = false; var SetTimeOutPeriods33030 = (Math.abs(CountSteppers33030)-1)*1000 + 990; puti(BackColors33030, ForeColors33030); var dthens33030 = new Date(TargetDates33030); var dnows33030 = new Date("11/01/2025 9:11:59 PM"); if(CountSteppers33030>0) ddiffs33030 = new Date(dnows33030-dthens33030); else ddiffs33030 = new Date(dthens33030-dnows33030); gsecss33030 = Math.floor(ddiffs33030.valueOf()/1000); CountBacks33030(gsecss33030);