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 (LeadingZeros32109 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32109(secs) { if (secs < 0) { document.getElementById("cntdwns32109").innerHTML = FinishMessages32109; return; } DisplayStrs32109 = DisplayFormats32109.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32109 = DisplayStrs32109.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32109 = DisplayStrs32109.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32109 = DisplayStrs32109.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32109").innerHTML = DisplayStrs32109; if (CountActives32109) //alert(SetTimeOutPeriods32109); setTimeout("CountBacks32109(" + (secs+CountSteppers32109) + ")", SetTimeOutPeriods32109); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32109)=="undefined") BackColors32109 = ""; if (typeof(ForeColors32109)=="undefined") ForeColors32109= "white"; if (typeof(TargetDates32109)=="undefined") TargetDates32109 = "03/31/2025 10:00:00 PM"; if (typeof(DisplayFormats32109)=="undefined") DisplayFormats32109 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32109)=="undefined") CountActives32109 = true; if (typeof(FinishMessages32109)=="undefined") FinishMessages32109 = ""; if (typeof(CountSteppers32109)!="number") CountSteppers32109 = -1; if (typeof(LeadingZeros32109)=="undefined") LeadingZeros32109 = true; CountSteppers32109 = Math.ceil(CountSteppers32109); if (CountSteppers32109 == 0) CountActives32109 = false; var SetTimeOutPeriods32109 = (Math.abs(CountSteppers32109)-1)*1000 + 990; puti(BackColors32109, ForeColors32109); var dthens32109 = new Date(TargetDates32109); var dnows32109 = new Date("03/31/2025 6:20:43 PM"); if(CountSteppers32109>0) ddiffs32109 = new Date(dnows32109-dthens32109); else ddiffs32109 = new Date(dthens32109-dnows32109); gsecss32109 = Math.floor(ddiffs32109.valueOf()/1000); CountBacks32109(gsecss32109);