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 (LeadingZeros33192 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33192(secs) { if (secs < 0) { document.getElementById("cntdwns33192").innerHTML = FinishMessages33192; return; } DisplayStrs33192 = DisplayFormats33192.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33192 = DisplayStrs33192.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33192 = DisplayStrs33192.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33192 = DisplayStrs33192.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33192").innerHTML = DisplayStrs33192; if (CountActives33192) //alert(SetTimeOutPeriods33192); setTimeout("CountBacks33192(" + (secs+CountSteppers33192) + ")", SetTimeOutPeriods33192); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33192)=="undefined") BackColors33192 = ""; if (typeof(ForeColors33192)=="undefined") ForeColors33192= "white"; if (typeof(TargetDates33192)=="undefined") TargetDates33192 = "12/15/2025 10:00:00 PM"; if (typeof(DisplayFormats33192)=="undefined") DisplayFormats33192 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33192)=="undefined") CountActives33192 = true; if (typeof(FinishMessages33192)=="undefined") FinishMessages33192 = ""; if (typeof(CountSteppers33192)!="number") CountSteppers33192 = -1; if (typeof(LeadingZeros33192)=="undefined") LeadingZeros33192 = true; CountSteppers33192 = Math.ceil(CountSteppers33192); if (CountSteppers33192 == 0) CountActives33192 = false; var SetTimeOutPeriods33192 = (Math.abs(CountSteppers33192)-1)*1000 + 990; puti(BackColors33192, ForeColors33192); var dthens33192 = new Date(TargetDates33192); var dnows33192 = new Date("12/12/2025 10:00:57 AM"); if(CountSteppers33192>0) ddiffs33192 = new Date(dnows33192-dthens33192); else ddiffs33192 = new Date(dthens33192-dnows33192); gsecss33192 = Math.floor(ddiffs33192.valueOf()/1000); CountBacks33192(gsecss33192);