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 (LeadingZeros32290 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32290(secs) { if (secs < 0) { document.getElementById("cntdwns32290").innerHTML = FinishMessages32290; return; } DisplayStrs32290 = DisplayFormats32290.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32290 = DisplayStrs32290.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32290 = DisplayStrs32290.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32290 = DisplayStrs32290.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32290").innerHTML = DisplayStrs32290; if (CountActives32290) //alert(SetTimeOutPeriods32290); setTimeout("CountBacks32290(" + (secs+CountSteppers32290) + ")", SetTimeOutPeriods32290); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32290)=="undefined") BackColors32290 = ""; if (typeof(ForeColors32290)=="undefined") ForeColors32290= "white"; if (typeof(TargetDates32290)=="undefined") TargetDates32290 = "05/11/2025 10:00:00 PM"; if (typeof(DisplayFormats32290)=="undefined") DisplayFormats32290 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32290)=="undefined") CountActives32290 = true; if (typeof(FinishMessages32290)=="undefined") FinishMessages32290 = ""; if (typeof(CountSteppers32290)!="number") CountSteppers32290 = -1; if (typeof(LeadingZeros32290)=="undefined") LeadingZeros32290 = true; CountSteppers32290 = Math.ceil(CountSteppers32290); if (CountSteppers32290 == 0) CountActives32290 = false; var SetTimeOutPeriods32290 = (Math.abs(CountSteppers32290)-1)*1000 + 990; puti(BackColors32290, ForeColors32290); var dthens32290 = new Date(TargetDates32290); var dnows32290 = new Date("05/09/2025 4:05:10 PM"); if(CountSteppers32290>0) ddiffs32290 = new Date(dnows32290-dthens32290); else ddiffs32290 = new Date(dthens32290-dnows32290); gsecss32290 = Math.floor(ddiffs32290.valueOf()/1000); CountBacks32290(gsecss32290);