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 (LeadingZeros32259 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32259(secs) { if (secs < 0) { document.getElementById("cntdwns32259").innerHTML = FinishMessages32259; return; } DisplayStrs32259 = DisplayFormats32259.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32259 = DisplayStrs32259.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32259 = DisplayStrs32259.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32259 = DisplayStrs32259.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32259").innerHTML = DisplayStrs32259; if (CountActives32259) //alert(SetTimeOutPeriods32259); setTimeout("CountBacks32259(" + (secs+CountSteppers32259) + ")", SetTimeOutPeriods32259); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32259)=="undefined") BackColors32259 = ""; if (typeof(ForeColors32259)=="undefined") ForeColors32259= "white"; if (typeof(TargetDates32259)=="undefined") TargetDates32259 = "05/01/2025 10:00:00 PM"; if (typeof(DisplayFormats32259)=="undefined") DisplayFormats32259 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32259)=="undefined") CountActives32259 = true; if (typeof(FinishMessages32259)=="undefined") FinishMessages32259 = ""; if (typeof(CountSteppers32259)!="number") CountSteppers32259 = -1; if (typeof(LeadingZeros32259)=="undefined") LeadingZeros32259 = true; CountSteppers32259 = Math.ceil(CountSteppers32259); if (CountSteppers32259 == 0) CountActives32259 = false; var SetTimeOutPeriods32259 = (Math.abs(CountSteppers32259)-1)*1000 + 990; puti(BackColors32259, ForeColors32259); var dthens32259 = new Date(TargetDates32259); var dnows32259 = new Date("04/29/2025 7:09:19 PM"); if(CountSteppers32259>0) ddiffs32259 = new Date(dnows32259-dthens32259); else ddiffs32259 = new Date(dthens32259-dnows32259); gsecss32259 = Math.floor(ddiffs32259.valueOf()/1000); CountBacks32259(gsecss32259);