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 (LeadingZeros33201 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33201(secs) { if (secs < 0) { document.getElementById("cntdwns33201").innerHTML = FinishMessages33201; return; } DisplayStrs33201 = DisplayFormats33201.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33201 = DisplayStrs33201.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33201 = DisplayStrs33201.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33201 = DisplayStrs33201.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33201").innerHTML = DisplayStrs33201; if (CountActives33201) //alert(SetTimeOutPeriods33201); setTimeout("CountBacks33201(" + (secs+CountSteppers33201) + ")", SetTimeOutPeriods33201); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33201)=="undefined") BackColors33201 = ""; if (typeof(ForeColors33201)=="undefined") ForeColors33201= "white"; if (typeof(TargetDates33201)=="undefined") TargetDates33201 = "12/21/2025 10:00:00 PM"; if (typeof(DisplayFormats33201)=="undefined") DisplayFormats33201 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33201)=="undefined") CountActives33201 = true; if (typeof(FinishMessages33201)=="undefined") FinishMessages33201 = ""; if (typeof(CountSteppers33201)!="number") CountSteppers33201 = -1; if (typeof(LeadingZeros33201)=="undefined") LeadingZeros33201 = true; CountSteppers33201 = Math.ceil(CountSteppers33201); if (CountSteppers33201 == 0) CountActives33201 = false; var SetTimeOutPeriods33201 = (Math.abs(CountSteppers33201)-1)*1000 + 990; puti(BackColors33201, ForeColors33201); var dthens33201 = new Date(TargetDates33201); var dnows33201 = new Date("12/19/2025 7:48:23 AM"); if(CountSteppers33201>0) ddiffs33201 = new Date(dnows33201-dthens33201); else ddiffs33201 = new Date(dthens33201-dnows33201); gsecss33201 = Math.floor(ddiffs33201.valueOf()/1000); CountBacks33201(gsecss33201);