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 (LeadingZeros34492 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34492(secs) { if (secs < 0) { document.getElementById("cntdwns34492").innerHTML = FinishMessages34492; return; } DisplayStrs34492 = DisplayFormats34492.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34492 = DisplayStrs34492.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34492 = DisplayStrs34492.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34492 = DisplayStrs34492.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34492").innerHTML = DisplayStrs34492; if (CountActives34492) //alert(SetTimeOutPeriods34492); setTimeout("CountBacks34492(" + (secs+CountSteppers34492) + ")", SetTimeOutPeriods34492); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34492)=="undefined") BackColors34492 = ""; if (typeof(ForeColors34492)=="undefined") ForeColors34492= "white"; if (typeof(TargetDates34492)=="undefined") TargetDates34492 = "11/15/2026 1:00:00 PM"; if (typeof(DisplayFormats34492)=="undefined") DisplayFormats34492 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34492)=="undefined") CountActives34492 = true; if (typeof(FinishMessages34492)=="undefined") FinishMessages34492 = ""; if (typeof(CountSteppers34492)!="number") CountSteppers34492 = -1; if (typeof(LeadingZeros34492)=="undefined") LeadingZeros34492 = true; CountSteppers34492 = Math.ceil(CountSteppers34492); if (CountSteppers34492 == 0) CountActives34492 = false; var SetTimeOutPeriods34492 = (Math.abs(CountSteppers34492)-1)*1000 + 990; puti(BackColors34492, ForeColors34492); var dthens34492 = new Date(TargetDates34492); var dnows34492 = new Date("11/12/2026 6:02:37 PM"); if(CountSteppers34492>0) ddiffs34492 = new Date(dnows34492-dthens34492); else ddiffs34492 = new Date(dthens34492-dnows34492); gsecss34492 = Math.floor(ddiffs34492.valueOf()/1000); CountBacks34492(gsecss34492);