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 (LeadingZeros33165 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33165(secs) { if (secs < 0) { document.getElementById("cntdwns33165").innerHTML = FinishMessages33165; return; } DisplayStrs33165 = DisplayFormats33165.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33165 = DisplayStrs33165.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33165 = DisplayStrs33165.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33165 = DisplayStrs33165.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33165").innerHTML = DisplayStrs33165; if (CountActives33165) //alert(SetTimeOutPeriods33165); setTimeout("CountBacks33165(" + (secs+CountSteppers33165) + ")", SetTimeOutPeriods33165); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33165)=="undefined") BackColors33165 = ""; if (typeof(ForeColors33165)=="undefined") ForeColors33165= "white"; if (typeof(TargetDates33165)=="undefined") TargetDates33165 = "12/07/2025 10:00:00 PM"; if (typeof(DisplayFormats33165)=="undefined") DisplayFormats33165 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33165)=="undefined") CountActives33165 = true; if (typeof(FinishMessages33165)=="undefined") FinishMessages33165 = ""; if (typeof(CountSteppers33165)!="number") CountSteppers33165 = -1; if (typeof(LeadingZeros33165)=="undefined") LeadingZeros33165 = true; CountSteppers33165 = Math.ceil(CountSteppers33165); if (CountSteppers33165 == 0) CountActives33165 = false; var SetTimeOutPeriods33165 = (Math.abs(CountSteppers33165)-1)*1000 + 990; puti(BackColors33165, ForeColors33165); var dthens33165 = new Date(TargetDates33165); var dnows33165 = new Date("12/04/2025 11:54:24 AM"); if(CountSteppers33165>0) ddiffs33165 = new Date(dnows33165-dthens33165); else ddiffs33165 = new Date(dthens33165-dnows33165); gsecss33165 = Math.floor(ddiffs33165.valueOf()/1000); CountBacks33165(gsecss33165);