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 (LeadingZeros32364 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32364(secs) { if (secs < 0) { document.getElementById("cntdwns32364").innerHTML = FinishMessages32364; return; } DisplayStrs32364 = DisplayFormats32364.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32364 = DisplayStrs32364.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32364 = DisplayStrs32364.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32364 = DisplayStrs32364.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32364").innerHTML = DisplayStrs32364; if (CountActives32364) //alert(SetTimeOutPeriods32364); setTimeout("CountBacks32364(" + (secs+CountSteppers32364) + ")", SetTimeOutPeriods32364); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32364)=="undefined") BackColors32364 = ""; if (typeof(ForeColors32364)=="undefined") ForeColors32364= "white"; if (typeof(TargetDates32364)=="undefined") TargetDates32364 = "06/03/2025 10:00:00 PM"; if (typeof(DisplayFormats32364)=="undefined") DisplayFormats32364 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32364)=="undefined") CountActives32364 = true; if (typeof(FinishMessages32364)=="undefined") FinishMessages32364 = ""; if (typeof(CountSteppers32364)!="number") CountSteppers32364 = -1; if (typeof(LeadingZeros32364)=="undefined") LeadingZeros32364 = true; CountSteppers32364 = Math.ceil(CountSteppers32364); if (CountSteppers32364 == 0) CountActives32364 = false; var SetTimeOutPeriods32364 = (Math.abs(CountSteppers32364)-1)*1000 + 990; puti(BackColors32364, ForeColors32364); var dthens32364 = new Date(TargetDates32364); var dnows32364 = new Date("06/03/2025 8:30:45 AM"); if(CountSteppers32364>0) ddiffs32364 = new Date(dnows32364-dthens32364); else ddiffs32364 = new Date(dthens32364-dnows32364); gsecss32364 = Math.floor(ddiffs32364.valueOf()/1000); CountBacks32364(gsecss32364);