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 (LeadingZeros32162 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32162(secs) { if (secs < 0) { document.getElementById("cntdwns32162").innerHTML = FinishMessages32162; return; } DisplayStrs32162 = DisplayFormats32162.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32162 = DisplayStrs32162.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32162 = DisplayStrs32162.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32162 = DisplayStrs32162.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32162").innerHTML = DisplayStrs32162; if (CountActives32162) //alert(SetTimeOutPeriods32162); setTimeout("CountBacks32162(" + (secs+CountSteppers32162) + ")", SetTimeOutPeriods32162); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32162)=="undefined") BackColors32162 = ""; if (typeof(ForeColors32162)=="undefined") ForeColors32162= "white"; if (typeof(TargetDates32162)=="undefined") TargetDates32162 = "04/21/2025 10:00:00 PM"; if (typeof(DisplayFormats32162)=="undefined") DisplayFormats32162 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32162)=="undefined") CountActives32162 = true; if (typeof(FinishMessages32162)=="undefined") FinishMessages32162 = ""; if (typeof(CountSteppers32162)!="number") CountSteppers32162 = -1; if (typeof(LeadingZeros32162)=="undefined") LeadingZeros32162 = true; CountSteppers32162 = Math.ceil(CountSteppers32162); if (CountSteppers32162 == 0) CountActives32162 = false; var SetTimeOutPeriods32162 = (Math.abs(CountSteppers32162)-1)*1000 + 990; puti(BackColors32162, ForeColors32162); var dthens32162 = new Date(TargetDates32162); var dnows32162 = new Date("04/19/2025 2:52:02 PM"); if(CountSteppers32162>0) ddiffs32162 = new Date(dnows32162-dthens32162); else ddiffs32162 = new Date(dthens32162-dnows32162); gsecss32162 = Math.floor(ddiffs32162.valueOf()/1000); CountBacks32162(gsecss32162);