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 (LeadingZeros33640 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33640(secs) { if (secs < 0) { document.getElementById("cntdwns33640").innerHTML = FinishMessages33640; return; } DisplayStrs33640 = DisplayFormats33640.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33640 = DisplayStrs33640.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33640 = DisplayStrs33640.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33640 = DisplayStrs33640.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33640").innerHTML = DisplayStrs33640; if (CountActives33640) //alert(SetTimeOutPeriods33640); setTimeout("CountBacks33640(" + (secs+CountSteppers33640) + ")", SetTimeOutPeriods33640); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33640)=="undefined") BackColors33640 = ""; if (typeof(ForeColors33640)=="undefined") ForeColors33640= "white"; if (typeof(TargetDates33640)=="undefined") TargetDates33640 = "04/05/2026 11:00:00 PM"; if (typeof(DisplayFormats33640)=="undefined") DisplayFormats33640 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33640)=="undefined") CountActives33640 = true; if (typeof(FinishMessages33640)=="undefined") FinishMessages33640 = ""; if (typeof(CountSteppers33640)!="number") CountSteppers33640 = -1; if (typeof(LeadingZeros33640)=="undefined") LeadingZeros33640 = true; CountSteppers33640 = Math.ceil(CountSteppers33640); if (CountSteppers33640 == 0) CountActives33640 = false; var SetTimeOutPeriods33640 = (Math.abs(CountSteppers33640)-1)*1000 + 990; puti(BackColors33640, ForeColors33640); var dthens33640 = new Date(TargetDates33640); var dnows33640 = new Date("04/03/2026 10:13:01 AM"); if(CountSteppers33640>0) ddiffs33640 = new Date(dnows33640-dthens33640); else ddiffs33640 = new Date(dthens33640-dnows33640); gsecss33640 = Math.floor(ddiffs33640.valueOf()/1000); CountBacks33640(gsecss33640);