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 (LeadingZeros33110 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33110(secs) { if (secs < 0) { document.getElementById("cntdwns33110").innerHTML = FinishMessages33110; return; } DisplayStrs33110 = DisplayFormats33110.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33110 = DisplayStrs33110.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33110 = DisplayStrs33110.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33110 = DisplayStrs33110.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33110").innerHTML = DisplayStrs33110; if (CountActives33110) //alert(SetTimeOutPeriods33110); setTimeout("CountBacks33110(" + (secs+CountSteppers33110) + ")", SetTimeOutPeriods33110); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33110)=="undefined") BackColors33110 = ""; if (typeof(ForeColors33110)=="undefined") ForeColors33110= "white"; if (typeof(TargetDates33110)=="undefined") TargetDates33110 = "11/19/2025 10:00:00 PM"; if (typeof(DisplayFormats33110)=="undefined") DisplayFormats33110 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33110)=="undefined") CountActives33110 = true; if (typeof(FinishMessages33110)=="undefined") FinishMessages33110 = ""; if (typeof(CountSteppers33110)!="number") CountSteppers33110 = -1; if (typeof(LeadingZeros33110)=="undefined") LeadingZeros33110 = true; CountSteppers33110 = Math.ceil(CountSteppers33110); if (CountSteppers33110 == 0) CountActives33110 = false; var SetTimeOutPeriods33110 = (Math.abs(CountSteppers33110)-1)*1000 + 990; puti(BackColors33110, ForeColors33110); var dthens33110 = new Date(TargetDates33110); var dnows33110 = new Date("12/07/2025 11:46:07 PM"); if(CountSteppers33110>0) ddiffs33110 = new Date(dnows33110-dthens33110); else ddiffs33110 = new Date(dthens33110-dnows33110); gsecss33110 = Math.floor(ddiffs33110.valueOf()/1000); CountBacks33110(gsecss33110);