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 (LeadingZeros33022 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33022(secs) { if (secs < 0) { document.getElementById("cntdwns33022").innerHTML = FinishMessages33022; return; } DisplayStrs33022 = DisplayFormats33022.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33022 = DisplayStrs33022.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33022 = DisplayStrs33022.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33022 = DisplayStrs33022.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33022").innerHTML = DisplayStrs33022; if (CountActives33022) //alert(SetTimeOutPeriods33022); setTimeout("CountBacks33022(" + (secs+CountSteppers33022) + ")", SetTimeOutPeriods33022); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33022)=="undefined") BackColors33022 = ""; if (typeof(ForeColors33022)=="undefined") ForeColors33022= "white"; if (typeof(TargetDates33022)=="undefined") TargetDates33022 = "11/25/2025 10:00:00 PM"; if (typeof(DisplayFormats33022)=="undefined") DisplayFormats33022 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33022)=="undefined") CountActives33022 = true; if (typeof(FinishMessages33022)=="undefined") FinishMessages33022 = ""; if (typeof(CountSteppers33022)!="number") CountSteppers33022 = -1; if (typeof(LeadingZeros33022)=="undefined") LeadingZeros33022 = true; CountSteppers33022 = Math.ceil(CountSteppers33022); if (CountSteppers33022 == 0) CountActives33022 = false; var SetTimeOutPeriods33022 = (Math.abs(CountSteppers33022)-1)*1000 + 990; puti(BackColors33022, ForeColors33022); var dthens33022 = new Date(TargetDates33022); var dnows33022 = new Date("11/23/2025 2:11:32 PM"); if(CountSteppers33022>0) ddiffs33022 = new Date(dnows33022-dthens33022); else ddiffs33022 = new Date(dthens33022-dnows33022); gsecss33022 = Math.floor(ddiffs33022.valueOf()/1000); CountBacks33022(gsecss33022);