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 (LeadingZeros34012 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34012(secs) { if (secs < 0) { document.getElementById("cntdwns34012").innerHTML = FinishMessages34012; return; } DisplayStrs34012 = DisplayFormats34012.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34012 = DisplayStrs34012.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34012 = DisplayStrs34012.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34012 = DisplayStrs34012.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34012").innerHTML = DisplayStrs34012; if (CountActives34012) //alert(SetTimeOutPeriods34012); setTimeout("CountBacks34012(" + (secs+CountSteppers34012) + ")", SetTimeOutPeriods34012); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34012)=="undefined") BackColors34012 = ""; if (typeof(ForeColors34012)=="undefined") ForeColors34012= "white"; if (typeof(TargetDates34012)=="undefined") TargetDates34012 = "06/13/2026 9:00:00 PM"; if (typeof(DisplayFormats34012)=="undefined") DisplayFormats34012 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34012)=="undefined") CountActives34012 = true; if (typeof(FinishMessages34012)=="undefined") FinishMessages34012 = ""; if (typeof(CountSteppers34012)!="number") CountSteppers34012 = -1; if (typeof(LeadingZeros34012)=="undefined") LeadingZeros34012 = true; CountSteppers34012 = Math.ceil(CountSteppers34012); if (CountSteppers34012 == 0) CountActives34012 = false; var SetTimeOutPeriods34012 = (Math.abs(CountSteppers34012)-1)*1000 + 990; puti(BackColors34012, ForeColors34012); var dthens34012 = new Date(TargetDates34012); var dnows34012 = new Date("06/10/2026 11:11:57 AM"); if(CountSteppers34012>0) ddiffs34012 = new Date(dnows34012-dthens34012); else ddiffs34012 = new Date(dthens34012-dnows34012); gsecss34012 = Math.floor(ddiffs34012.valueOf()/1000); CountBacks34012(gsecss34012);