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 (LeadingZeros33046 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33046(secs) { if (secs < 0) { document.getElementById("cntdwns33046").innerHTML = FinishMessages33046; return; } DisplayStrs33046 = DisplayFormats33046.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33046 = DisplayStrs33046.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33046 = DisplayStrs33046.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33046 = DisplayStrs33046.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33046").innerHTML = DisplayStrs33046; if (CountActives33046) //alert(SetTimeOutPeriods33046); setTimeout("CountBacks33046(" + (secs+CountSteppers33046) + ")", SetTimeOutPeriods33046); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33046)=="undefined") BackColors33046 = ""; if (typeof(ForeColors33046)=="undefined") ForeColors33046= "white"; if (typeof(TargetDates33046)=="undefined") TargetDates33046 = "12/07/2025 10:00:00 PM"; if (typeof(DisplayFormats33046)=="undefined") DisplayFormats33046 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33046)=="undefined") CountActives33046 = true; if (typeof(FinishMessages33046)=="undefined") FinishMessages33046 = ""; if (typeof(CountSteppers33046)!="number") CountSteppers33046 = -1; if (typeof(LeadingZeros33046)=="undefined") LeadingZeros33046 = true; CountSteppers33046 = Math.ceil(CountSteppers33046); if (CountSteppers33046 == 0) CountActives33046 = false; var SetTimeOutPeriods33046 = (Math.abs(CountSteppers33046)-1)*1000 + 990; puti(BackColors33046, ForeColors33046); var dthens33046 = new Date(TargetDates33046); var dnows33046 = new Date("12/04/2025 11:23:48 AM"); if(CountSteppers33046>0) ddiffs33046 = new Date(dnows33046-dthens33046); else ddiffs33046 = new Date(dthens33046-dnows33046); gsecss33046 = Math.floor(ddiffs33046.valueOf()/1000); CountBacks33046(gsecss33046);