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 (LeadingZeros34333 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34333(secs) { if (secs < 0) { document.getElementById("cntdwns34333").innerHTML = FinishMessages34333; return; } DisplayStrs34333 = DisplayFormats34333.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34333 = DisplayStrs34333.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34333 = DisplayStrs34333.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34333 = DisplayStrs34333.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34333").innerHTML = DisplayStrs34333; if (CountActives34333) //alert(SetTimeOutPeriods34333); setTimeout("CountBacks34333(" + (secs+CountSteppers34333) + ")", SetTimeOutPeriods34333); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34333)=="undefined") BackColors34333 = ""; if (typeof(ForeColors34333)=="undefined") ForeColors34333= "white"; if (typeof(TargetDates34333)=="undefined") TargetDates34333 = "11/30/2026 10:00:00 AM"; if (typeof(DisplayFormats34333)=="undefined") DisplayFormats34333 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34333)=="undefined") CountActives34333 = true; if (typeof(FinishMessages34333)=="undefined") FinishMessages34333 = ""; if (typeof(CountSteppers34333)!="number") CountSteppers34333 = -1; if (typeof(LeadingZeros34333)=="undefined") LeadingZeros34333 = true; CountSteppers34333 = Math.ceil(CountSteppers34333); if (CountSteppers34333 == 0) CountActives34333 = false; var SetTimeOutPeriods34333 = (Math.abs(CountSteppers34333)-1)*1000 + 990; puti(BackColors34333, ForeColors34333); var dthens34333 = new Date(TargetDates34333); var dnows34333 = new Date("11/27/2026 4:54:51 AM"); if(CountSteppers34333>0) ddiffs34333 = new Date(dnows34333-dthens34333); else ddiffs34333 = new Date(dthens34333-dnows34333); gsecss34333 = Math.floor(ddiffs34333.valueOf()/1000); CountBacks34333(gsecss34333);