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 (LeadingZeros32247 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32247(secs) { if (secs < 0) { document.getElementById("cntdwns32247").innerHTML = FinishMessages32247; return; } DisplayStrs32247 = DisplayFormats32247.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32247 = DisplayStrs32247.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32247 = DisplayStrs32247.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32247 = DisplayStrs32247.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32247").innerHTML = DisplayStrs32247; if (CountActives32247) //alert(SetTimeOutPeriods32247); setTimeout("CountBacks32247(" + (secs+CountSteppers32247) + ")", SetTimeOutPeriods32247); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32247)=="undefined") BackColors32247 = ""; if (typeof(ForeColors32247)=="undefined") ForeColors32247= "white"; if (typeof(TargetDates32247)=="undefined") TargetDates32247 = "05/05/2025 10:00:00 PM"; if (typeof(DisplayFormats32247)=="undefined") DisplayFormats32247 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32247)=="undefined") CountActives32247 = true; if (typeof(FinishMessages32247)=="undefined") FinishMessages32247 = ""; if (typeof(CountSteppers32247)!="number") CountSteppers32247 = -1; if (typeof(LeadingZeros32247)=="undefined") LeadingZeros32247 = true; CountSteppers32247 = Math.ceil(CountSteppers32247); if (CountSteppers32247 == 0) CountActives32247 = false; var SetTimeOutPeriods32247 = (Math.abs(CountSteppers32247)-1)*1000 + 990; puti(BackColors32247, ForeColors32247); var dthens32247 = new Date(TargetDates32247); var dnows32247 = new Date("05/03/2025 3:30:27 PM"); if(CountSteppers32247>0) ddiffs32247 = new Date(dnows32247-dthens32247); else ddiffs32247 = new Date(dthens32247-dnows32247); gsecss32247 = Math.floor(ddiffs32247.valueOf()/1000); CountBacks32247(gsecss32247);