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 (LeadingZeros33181 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33181(secs) { if (secs < 0) { document.getElementById("cntdwns33181").innerHTML = FinishMessages33181; return; } DisplayStrs33181 = DisplayFormats33181.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33181 = DisplayStrs33181.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33181 = DisplayStrs33181.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33181 = DisplayStrs33181.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33181").innerHTML = DisplayStrs33181; if (CountActives33181) //alert(SetTimeOutPeriods33181); setTimeout("CountBacks33181(" + (secs+CountSteppers33181) + ")", SetTimeOutPeriods33181); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33181)=="undefined") BackColors33181 = ""; if (typeof(ForeColors33181)=="undefined") ForeColors33181= "white"; if (typeof(TargetDates33181)=="undefined") TargetDates33181 = "12/08/2025 10:00:00 PM"; if (typeof(DisplayFormats33181)=="undefined") DisplayFormats33181 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33181)=="undefined") CountActives33181 = true; if (typeof(FinishMessages33181)=="undefined") FinishMessages33181 = ""; if (typeof(CountSteppers33181)!="number") CountSteppers33181 = -1; if (typeof(LeadingZeros33181)=="undefined") LeadingZeros33181 = true; CountSteppers33181 = Math.ceil(CountSteppers33181); if (CountSteppers33181 == 0) CountActives33181 = false; var SetTimeOutPeriods33181 = (Math.abs(CountSteppers33181)-1)*1000 + 990; puti(BackColors33181, ForeColors33181); var dthens33181 = new Date(TargetDates33181); var dnows33181 = new Date("12/06/2025 7:33:20 AM"); if(CountSteppers33181>0) ddiffs33181 = new Date(dnows33181-dthens33181); else ddiffs33181 = new Date(dthens33181-dnows33181); gsecss33181 = Math.floor(ddiffs33181.valueOf()/1000); CountBacks33181(gsecss33181);