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 (LeadingZeros33719 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33719(secs) { if (secs < 0) { document.getElementById("cntdwns33719").innerHTML = FinishMessages33719; return; } DisplayStrs33719 = DisplayFormats33719.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33719 = DisplayStrs33719.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33719 = DisplayStrs33719.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33719 = DisplayStrs33719.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33719").innerHTML = DisplayStrs33719; if (CountActives33719) //alert(SetTimeOutPeriods33719); setTimeout("CountBacks33719(" + (secs+CountSteppers33719) + ")", SetTimeOutPeriods33719); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33719)=="undefined") BackColors33719 = ""; if (typeof(ForeColors33719)=="undefined") ForeColors33719= "white"; if (typeof(TargetDates33719)=="undefined") TargetDates33719 = "05/07/2026 11:00:00 PM"; if (typeof(DisplayFormats33719)=="undefined") DisplayFormats33719 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33719)=="undefined") CountActives33719 = true; if (typeof(FinishMessages33719)=="undefined") FinishMessages33719 = ""; if (typeof(CountSteppers33719)!="number") CountSteppers33719 = -1; if (typeof(LeadingZeros33719)=="undefined") LeadingZeros33719 = true; CountSteppers33719 = Math.ceil(CountSteppers33719); if (CountSteppers33719 == 0) CountActives33719 = false; var SetTimeOutPeriods33719 = (Math.abs(CountSteppers33719)-1)*1000 + 990; puti(BackColors33719, ForeColors33719); var dthens33719 = new Date(TargetDates33719); var dnows33719 = new Date("05/05/2026 8:14:42 AM"); if(CountSteppers33719>0) ddiffs33719 = new Date(dnows33719-dthens33719); else ddiffs33719 = new Date(dthens33719-dnows33719); gsecss33719 = Math.floor(ddiffs33719.valueOf()/1000); CountBacks33719(gsecss33719);