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 (LeadingZeros32319 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32319(secs) { if (secs < 0) { document.getElementById("cntdwns32319").innerHTML = FinishMessages32319; return; } DisplayStrs32319 = DisplayFormats32319.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32319 = DisplayStrs32319.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32319 = DisplayStrs32319.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32319 = DisplayStrs32319.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32319").innerHTML = DisplayStrs32319; if (CountActives32319) //alert(SetTimeOutPeriods32319); setTimeout("CountBacks32319(" + (secs+CountSteppers32319) + ")", SetTimeOutPeriods32319); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32319)=="undefined") BackColors32319 = ""; if (typeof(ForeColors32319)=="undefined") ForeColors32319= "white"; if (typeof(TargetDates32319)=="undefined") TargetDates32319 = "06/03/2025 10:00:00 PM"; if (typeof(DisplayFormats32319)=="undefined") DisplayFormats32319 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32319)=="undefined") CountActives32319 = true; if (typeof(FinishMessages32319)=="undefined") FinishMessages32319 = ""; if (typeof(CountSteppers32319)!="number") CountSteppers32319 = -1; if (typeof(LeadingZeros32319)=="undefined") LeadingZeros32319 = true; CountSteppers32319 = Math.ceil(CountSteppers32319); if (CountSteppers32319 == 0) CountActives32319 = false; var SetTimeOutPeriods32319 = (Math.abs(CountSteppers32319)-1)*1000 + 990; puti(BackColors32319, ForeColors32319); var dthens32319 = new Date(TargetDates32319); var dnows32319 = new Date("06/03/2025 1:36:52 AM"); if(CountSteppers32319>0) ddiffs32319 = new Date(dnows32319-dthens32319); else ddiffs32319 = new Date(dthens32319-dnows32319); gsecss32319 = Math.floor(ddiffs32319.valueOf()/1000); CountBacks32319(gsecss32319);