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 (LeadingZeros32193 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32193(secs) { if (secs < 0) { document.getElementById("cntdwns32193").innerHTML = FinishMessages32193; return; } DisplayStrs32193 = DisplayFormats32193.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32193 = DisplayStrs32193.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32193 = DisplayStrs32193.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32193 = DisplayStrs32193.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32193").innerHTML = DisplayStrs32193; if (CountActives32193) //alert(SetTimeOutPeriods32193); setTimeout("CountBacks32193(" + (secs+CountSteppers32193) + ")", SetTimeOutPeriods32193); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32193)=="undefined") BackColors32193 = ""; if (typeof(ForeColors32193)=="undefined") ForeColors32193= "white"; if (typeof(TargetDates32193)=="undefined") TargetDates32193 = "05/03/2025 10:00:00 PM"; if (typeof(DisplayFormats32193)=="undefined") DisplayFormats32193 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32193)=="undefined") CountActives32193 = true; if (typeof(FinishMessages32193)=="undefined") FinishMessages32193 = ""; if (typeof(CountSteppers32193)!="number") CountSteppers32193 = -1; if (typeof(LeadingZeros32193)=="undefined") LeadingZeros32193 = true; CountSteppers32193 = Math.ceil(CountSteppers32193); if (CountSteppers32193 == 0) CountActives32193 = false; var SetTimeOutPeriods32193 = (Math.abs(CountSteppers32193)-1)*1000 + 990; puti(BackColors32193, ForeColors32193); var dthens32193 = new Date(TargetDates32193); var dnows32193 = new Date("05/01/2025 2:25:16 PM"); if(CountSteppers32193>0) ddiffs32193 = new Date(dnows32193-dthens32193); else ddiffs32193 = new Date(dthens32193-dnows32193); gsecss32193 = Math.floor(ddiffs32193.valueOf()/1000); CountBacks32193(gsecss32193);