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 (LeadingZeros32979 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32979(secs) { if (secs < 0) { document.getElementById("cntdwns32979").innerHTML = FinishMessages32979; return; } DisplayStrs32979 = DisplayFormats32979.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32979 = DisplayStrs32979.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32979 = DisplayStrs32979.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32979 = DisplayStrs32979.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32979").innerHTML = DisplayStrs32979; if (CountActives32979) //alert(SetTimeOutPeriods32979); setTimeout("CountBacks32979(" + (secs+CountSteppers32979) + ")", SetTimeOutPeriods32979); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32979)=="undefined") BackColors32979 = ""; if (typeof(ForeColors32979)=="undefined") ForeColors32979= "white"; if (typeof(TargetDates32979)=="undefined") TargetDates32979 = "11/25/2025 9:00:00 PM"; if (typeof(DisplayFormats32979)=="undefined") DisplayFormats32979 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32979)=="undefined") CountActives32979 = true; if (typeof(FinishMessages32979)=="undefined") FinishMessages32979 = ""; if (typeof(CountSteppers32979)!="number") CountSteppers32979 = -1; if (typeof(LeadingZeros32979)=="undefined") LeadingZeros32979 = true; CountSteppers32979 = Math.ceil(CountSteppers32979); if (CountSteppers32979 == 0) CountActives32979 = false; var SetTimeOutPeriods32979 = (Math.abs(CountSteppers32979)-1)*1000 + 990; puti(BackColors32979, ForeColors32979); var dthens32979 = new Date(TargetDates32979); var dnows32979 = new Date("11/23/2025 8:58:19 PM"); if(CountSteppers32979>0) ddiffs32979 = new Date(dnows32979-dthens32979); else ddiffs32979 = new Date(dthens32979-dnows32979); gsecss32979 = Math.floor(ddiffs32979.valueOf()/1000); CountBacks32979(gsecss32979);