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 (LeadingZeros34309 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34309(secs) { if (secs < 0) { document.getElementById("cntdwns34309").innerHTML = FinishMessages34309; return; } DisplayStrs34309 = DisplayFormats34309.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34309 = DisplayStrs34309.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34309 = DisplayStrs34309.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34309 = DisplayStrs34309.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34309").innerHTML = DisplayStrs34309; if (CountActives34309) //alert(SetTimeOutPeriods34309); setTimeout("CountBacks34309(" + (secs+CountSteppers34309) + ")", SetTimeOutPeriods34309); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34309)=="undefined") BackColors34309 = ""; if (typeof(ForeColors34309)=="undefined") ForeColors34309= "white"; if (typeof(TargetDates34309)=="undefined") TargetDates34309 = "11/24/2026 12:00:00 PM"; if (typeof(DisplayFormats34309)=="undefined") DisplayFormats34309 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34309)=="undefined") CountActives34309 = true; if (typeof(FinishMessages34309)=="undefined") FinishMessages34309 = ""; if (typeof(CountSteppers34309)!="number") CountSteppers34309 = -1; if (typeof(LeadingZeros34309)=="undefined") LeadingZeros34309 = true; CountSteppers34309 = Math.ceil(CountSteppers34309); if (CountSteppers34309 == 0) CountActives34309 = false; var SetTimeOutPeriods34309 = (Math.abs(CountSteppers34309)-1)*1000 + 990; puti(BackColors34309, ForeColors34309); var dthens34309 = new Date(TargetDates34309); var dnows34309 = new Date("11/22/2026 1:58:47 PM"); if(CountSteppers34309>0) ddiffs34309 = new Date(dnows34309-dthens34309); else ddiffs34309 = new Date(dthens34309-dnows34309); gsecss34309 = Math.floor(ddiffs34309.valueOf()/1000); CountBacks34309(gsecss34309);