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 (LeadingZeros32069 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32069(secs) { if (secs < 0) { document.getElementById("cntdwns32069").innerHTML = FinishMessages32069; return; } DisplayStrs32069 = DisplayFormats32069.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32069 = DisplayStrs32069.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32069 = DisplayStrs32069.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32069 = DisplayStrs32069.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32069").innerHTML = DisplayStrs32069; if (CountActives32069) //alert(SetTimeOutPeriods32069); setTimeout("CountBacks32069(" + (secs+CountSteppers32069) + ")", SetTimeOutPeriods32069); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32069)=="undefined") BackColors32069 = ""; if (typeof(ForeColors32069)=="undefined") ForeColors32069= "white"; if (typeof(TargetDates32069)=="undefined") TargetDates32069 = "04/01/2025 10:00:00 PM"; if (typeof(DisplayFormats32069)=="undefined") DisplayFormats32069 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32069)=="undefined") CountActives32069 = true; if (typeof(FinishMessages32069)=="undefined") FinishMessages32069 = ""; if (typeof(CountSteppers32069)!="number") CountSteppers32069 = -1; if (typeof(LeadingZeros32069)=="undefined") LeadingZeros32069 = true; CountSteppers32069 = Math.ceil(CountSteppers32069); if (CountSteppers32069 == 0) CountActives32069 = false; var SetTimeOutPeriods32069 = (Math.abs(CountSteppers32069)-1)*1000 + 990; puti(BackColors32069, ForeColors32069); var dthens32069 = new Date(TargetDates32069); var dnows32069 = new Date("04/01/2025 11:13:04 AM"); if(CountSteppers32069>0) ddiffs32069 = new Date(dnows32069-dthens32069); else ddiffs32069 = new Date(dthens32069-dnows32069); gsecss32069 = Math.floor(ddiffs32069.valueOf()/1000); CountBacks32069(gsecss32069);