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 (LeadingZeros34349 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34349(secs) { if (secs < 0) { document.getElementById("cntdwns34349").innerHTML = FinishMessages34349; return; } DisplayStrs34349 = DisplayFormats34349.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34349 = DisplayStrs34349.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34349 = DisplayStrs34349.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34349 = DisplayStrs34349.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34349").innerHTML = DisplayStrs34349; if (CountActives34349) //alert(SetTimeOutPeriods34349); setTimeout("CountBacks34349(" + (secs+CountSteppers34349) + ")", SetTimeOutPeriods34349); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34349)=="undefined") BackColors34349 = ""; if (typeof(ForeColors34349)=="undefined") ForeColors34349= "white"; if (typeof(TargetDates34349)=="undefined") TargetDates34349 = "11/14/2026 10:00:00 PM"; if (typeof(DisplayFormats34349)=="undefined") DisplayFormats34349 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34349)=="undefined") CountActives34349 = true; if (typeof(FinishMessages34349)=="undefined") FinishMessages34349 = ""; if (typeof(CountSteppers34349)!="number") CountSteppers34349 = -1; if (typeof(LeadingZeros34349)=="undefined") LeadingZeros34349 = true; CountSteppers34349 = Math.ceil(CountSteppers34349); if (CountSteppers34349 == 0) CountActives34349 = false; var SetTimeOutPeriods34349 = (Math.abs(CountSteppers34349)-1)*1000 + 990; puti(BackColors34349, ForeColors34349); var dthens34349 = new Date(TargetDates34349); var dnows34349 = new Date("11/11/2026 7:14:13 AM"); if(CountSteppers34349>0) ddiffs34349 = new Date(dnows34349-dthens34349); else ddiffs34349 = new Date(dthens34349-dnows34349); gsecss34349 = Math.floor(ddiffs34349.valueOf()/1000); CountBacks34349(gsecss34349);