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 (LeadingZeros32360 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32360(secs) { if (secs < 0) { document.getElementById("cntdwns32360").innerHTML = FinishMessages32360; return; } DisplayStrs32360 = DisplayFormats32360.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32360 = DisplayStrs32360.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32360 = DisplayStrs32360.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32360 = DisplayStrs32360.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32360").innerHTML = DisplayStrs32360; if (CountActives32360) //alert(SetTimeOutPeriods32360); setTimeout("CountBacks32360(" + (secs+CountSteppers32360) + ")", SetTimeOutPeriods32360); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32360)=="undefined") BackColors32360 = ""; if (typeof(ForeColors32360)=="undefined") ForeColors32360= "white"; if (typeof(TargetDates32360)=="undefined") TargetDates32360 = "06/04/2025 10:00:00 PM"; if (typeof(DisplayFormats32360)=="undefined") DisplayFormats32360 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32360)=="undefined") CountActives32360 = true; if (typeof(FinishMessages32360)=="undefined") FinishMessages32360 = ""; if (typeof(CountSteppers32360)!="number") CountSteppers32360 = -1; if (typeof(LeadingZeros32360)=="undefined") LeadingZeros32360 = true; CountSteppers32360 = Math.ceil(CountSteppers32360); if (CountSteppers32360 == 0) CountActives32360 = false; var SetTimeOutPeriods32360 = (Math.abs(CountSteppers32360)-1)*1000 + 990; puti(BackColors32360, ForeColors32360); var dthens32360 = new Date(TargetDates32360); var dnows32360 = new Date("06/03/2025 8:30:45 AM"); if(CountSteppers32360>0) ddiffs32360 = new Date(dnows32360-dthens32360); else ddiffs32360 = new Date(dthens32360-dnows32360); gsecss32360 = Math.floor(ddiffs32360.valueOf()/1000); CountBacks32360(gsecss32360);