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 (LeadingZeros33142 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33142(secs) { if (secs < 0) { document.getElementById("cntdwns33142").innerHTML = FinishMessages33142; return; } DisplayStrs33142 = DisplayFormats33142.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33142 = DisplayStrs33142.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33142 = DisplayStrs33142.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33142 = DisplayStrs33142.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33142").innerHTML = DisplayStrs33142; if (CountActives33142) //alert(SetTimeOutPeriods33142); setTimeout("CountBacks33142(" + (secs+CountSteppers33142) + ")", SetTimeOutPeriods33142); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33142)=="undefined") BackColors33142 = ""; if (typeof(ForeColors33142)=="undefined") ForeColors33142= "white"; if (typeof(TargetDates33142)=="undefined") TargetDates33142 = "12/07/2025 10:00:00 PM"; if (typeof(DisplayFormats33142)=="undefined") DisplayFormats33142 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33142)=="undefined") CountActives33142 = true; if (typeof(FinishMessages33142)=="undefined") FinishMessages33142 = ""; if (typeof(CountSteppers33142)!="number") CountSteppers33142 = -1; if (typeof(LeadingZeros33142)=="undefined") LeadingZeros33142 = true; CountSteppers33142 = Math.ceil(CountSteppers33142); if (CountSteppers33142 == 0) CountActives33142 = false; var SetTimeOutPeriods33142 = (Math.abs(CountSteppers33142)-1)*1000 + 990; puti(BackColors33142, ForeColors33142); var dthens33142 = new Date(TargetDates33142); var dnows33142 = new Date("12/05/2025 10:33:27 AM"); if(CountSteppers33142>0) ddiffs33142 = new Date(dnows33142-dthens33142); else ddiffs33142 = new Date(dthens33142-dnows33142); gsecss33142 = Math.floor(ddiffs33142.valueOf()/1000); CountBacks33142(gsecss33142);