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 (LeadingZeros33115 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33115(secs) { if (secs < 0) { document.getElementById("cntdwns33115").innerHTML = FinishMessages33115; return; } DisplayStrs33115 = DisplayFormats33115.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33115 = DisplayStrs33115.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33115 = DisplayStrs33115.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33115 = DisplayStrs33115.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33115").innerHTML = DisplayStrs33115; if (CountActives33115) //alert(SetTimeOutPeriods33115); setTimeout("CountBacks33115(" + (secs+CountSteppers33115) + ")", SetTimeOutPeriods33115); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33115)=="undefined") BackColors33115 = ""; if (typeof(ForeColors33115)=="undefined") ForeColors33115= "white"; if (typeof(TargetDates33115)=="undefined") TargetDates33115 = "12/07/2025 10:00:00 PM"; if (typeof(DisplayFormats33115)=="undefined") DisplayFormats33115 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33115)=="undefined") CountActives33115 = true; if (typeof(FinishMessages33115)=="undefined") FinishMessages33115 = ""; if (typeof(CountSteppers33115)!="number") CountSteppers33115 = -1; if (typeof(LeadingZeros33115)=="undefined") LeadingZeros33115 = true; CountSteppers33115 = Math.ceil(CountSteppers33115); if (CountSteppers33115 == 0) CountActives33115 = false; var SetTimeOutPeriods33115 = (Math.abs(CountSteppers33115)-1)*1000 + 990; puti(BackColors33115, ForeColors33115); var dthens33115 = new Date(TargetDates33115); var dnows33115 = new Date("12/05/2025 10:33:36 AM"); if(CountSteppers33115>0) ddiffs33115 = new Date(dnows33115-dthens33115); else ddiffs33115 = new Date(dthens33115-dnows33115); gsecss33115 = Math.floor(ddiffs33115.valueOf()/1000); CountBacks33115(gsecss33115);