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 (LeadingZeros32245 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32245(secs) { if (secs < 0) { document.getElementById("cntdwns32245").innerHTML = FinishMessages32245; return; } DisplayStrs32245 = DisplayFormats32245.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32245 = DisplayStrs32245.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32245 = DisplayStrs32245.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32245 = DisplayStrs32245.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32245").innerHTML = DisplayStrs32245; if (CountActives32245) //alert(SetTimeOutPeriods32245); setTimeout("CountBacks32245(" + (secs+CountSteppers32245) + ")", SetTimeOutPeriods32245); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32245)=="undefined") BackColors32245 = ""; if (typeof(ForeColors32245)=="undefined") ForeColors32245= "white"; if (typeof(TargetDates32245)=="undefined") TargetDates32245 = "05/05/2025 10:00:00 PM"; if (typeof(DisplayFormats32245)=="undefined") DisplayFormats32245 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32245)=="undefined") CountActives32245 = true; if (typeof(FinishMessages32245)=="undefined") FinishMessages32245 = ""; if (typeof(CountSteppers32245)!="number") CountSteppers32245 = -1; if (typeof(LeadingZeros32245)=="undefined") LeadingZeros32245 = true; CountSteppers32245 = Math.ceil(CountSteppers32245); if (CountSteppers32245 == 0) CountActives32245 = false; var SetTimeOutPeriods32245 = (Math.abs(CountSteppers32245)-1)*1000 + 990; puti(BackColors32245, ForeColors32245); var dthens32245 = new Date(TargetDates32245); var dnows32245 = new Date("05/03/2025 5:11:52 PM"); if(CountSteppers32245>0) ddiffs32245 = new Date(dnows32245-dthens32245); else ddiffs32245 = new Date(dthens32245-dnows32245); gsecss32245 = Math.floor(ddiffs32245.valueOf()/1000); CountBacks32245(gsecss32245);