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 (LeadingZeros33111 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33111(secs) { if (secs < 0) { document.getElementById("cntdwns33111").innerHTML = FinishMessages33111; return; } DisplayStrs33111 = DisplayFormats33111.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33111 = DisplayStrs33111.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33111 = DisplayStrs33111.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33111 = DisplayStrs33111.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33111").innerHTML = DisplayStrs33111; if (CountActives33111) //alert(SetTimeOutPeriods33111); setTimeout("CountBacks33111(" + (secs+CountSteppers33111) + ")", SetTimeOutPeriods33111); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33111)=="undefined") BackColors33111 = ""; if (typeof(ForeColors33111)=="undefined") ForeColors33111= "white"; if (typeof(TargetDates33111)=="undefined") TargetDates33111 = "11/19/2025 10:00:00 PM"; if (typeof(DisplayFormats33111)=="undefined") DisplayFormats33111 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33111)=="undefined") CountActives33111 = true; if (typeof(FinishMessages33111)=="undefined") FinishMessages33111 = ""; if (typeof(CountSteppers33111)!="number") CountSteppers33111 = -1; if (typeof(LeadingZeros33111)=="undefined") LeadingZeros33111 = true; CountSteppers33111 = Math.ceil(CountSteppers33111); if (CountSteppers33111 == 0) CountActives33111 = false; var SetTimeOutPeriods33111 = (Math.abs(CountSteppers33111)-1)*1000 + 990; puti(BackColors33111, ForeColors33111); var dthens33111 = new Date(TargetDates33111); var dnows33111 = new Date("12/07/2025 11:44:37 PM"); if(CountSteppers33111>0) ddiffs33111 = new Date(dnows33111-dthens33111); else ddiffs33111 = new Date(dthens33111-dnows33111); gsecss33111 = Math.floor(ddiffs33111.valueOf()/1000); CountBacks33111(gsecss33111);