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 (LeadingZeros34332 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34332(secs) { if (secs < 0) { document.getElementById("cntdwns34332").innerHTML = FinishMessages34332; return; } DisplayStrs34332 = DisplayFormats34332.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34332 = DisplayStrs34332.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34332 = DisplayStrs34332.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34332 = DisplayStrs34332.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34332").innerHTML = DisplayStrs34332; if (CountActives34332) //alert(SetTimeOutPeriods34332); setTimeout("CountBacks34332(" + (secs+CountSteppers34332) + ")", SetTimeOutPeriods34332); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34332)=="undefined") BackColors34332 = ""; if (typeof(ForeColors34332)=="undefined") ForeColors34332= "white"; if (typeof(TargetDates34332)=="undefined") TargetDates34332 = "11/29/2026 10:00:00 AM"; if (typeof(DisplayFormats34332)=="undefined") DisplayFormats34332 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34332)=="undefined") CountActives34332 = true; if (typeof(FinishMessages34332)=="undefined") FinishMessages34332 = ""; if (typeof(CountSteppers34332)!="number") CountSteppers34332 = -1; if (typeof(LeadingZeros34332)=="undefined") LeadingZeros34332 = true; CountSteppers34332 = Math.ceil(CountSteppers34332); if (CountSteppers34332 == 0) CountActives34332 = false; var SetTimeOutPeriods34332 = (Math.abs(CountSteppers34332)-1)*1000 + 990; puti(BackColors34332, ForeColors34332); var dthens34332 = new Date(TargetDates34332); var dnows34332 = new Date("11/27/2026 4:54:51 AM"); if(CountSteppers34332>0) ddiffs34332 = new Date(dnows34332-dthens34332); else ddiffs34332 = new Date(dthens34332-dnows34332); gsecss34332 = Math.floor(ddiffs34332.valueOf()/1000); CountBacks34332(gsecss34332);