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 (LeadingZeros33069 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33069(secs) { if (secs < 0) { document.getElementById("cntdwns33069").innerHTML = FinishMessages33069; return; } DisplayStrs33069 = DisplayFormats33069.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33069 = DisplayStrs33069.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33069 = DisplayStrs33069.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33069 = DisplayStrs33069.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33069").innerHTML = DisplayStrs33069; if (CountActives33069) //alert(SetTimeOutPeriods33069); setTimeout("CountBacks33069(" + (secs+CountSteppers33069) + ")", SetTimeOutPeriods33069); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33069)=="undefined") BackColors33069 = ""; if (typeof(ForeColors33069)=="undefined") ForeColors33069= "white"; if (typeof(TargetDates33069)=="undefined") TargetDates33069 = "12/01/2025 10:00:00 PM"; if (typeof(DisplayFormats33069)=="undefined") DisplayFormats33069 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33069)=="undefined") CountActives33069 = true; if (typeof(FinishMessages33069)=="undefined") FinishMessages33069 = ""; if (typeof(CountSteppers33069)!="number") CountSteppers33069 = -1; if (typeof(LeadingZeros33069)=="undefined") LeadingZeros33069 = true; CountSteppers33069 = Math.ceil(CountSteppers33069); if (CountSteppers33069 == 0) CountActives33069 = false; var SetTimeOutPeriods33069 = (Math.abs(CountSteppers33069)-1)*1000 + 990; puti(BackColors33069, ForeColors33069); var dthens33069 = new Date(TargetDates33069); var dnows33069 = new Date("11/29/2025 12:20:36 PM"); if(CountSteppers33069>0) ddiffs33069 = new Date(dnows33069-dthens33069); else ddiffs33069 = new Date(dthens33069-dnows33069); gsecss33069 = Math.floor(ddiffs33069.valueOf()/1000); CountBacks33069(gsecss33069);