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 (LeadingZeros32361 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32361(secs) { if (secs < 0) { document.getElementById("cntdwns32361").innerHTML = FinishMessages32361; return; } DisplayStrs32361 = DisplayFormats32361.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32361 = DisplayStrs32361.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32361 = DisplayStrs32361.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32361 = DisplayStrs32361.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32361").innerHTML = DisplayStrs32361; if (CountActives32361) //alert(SetTimeOutPeriods32361); setTimeout("CountBacks32361(" + (secs+CountSteppers32361) + ")", SetTimeOutPeriods32361); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32361)=="undefined") BackColors32361 = ""; if (typeof(ForeColors32361)=="undefined") ForeColors32361= "white"; if (typeof(TargetDates32361)=="undefined") TargetDates32361 = "06/04/2025 10:00:00 PM"; if (typeof(DisplayFormats32361)=="undefined") DisplayFormats32361 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32361)=="undefined") CountActives32361 = true; if (typeof(FinishMessages32361)=="undefined") FinishMessages32361 = ""; if (typeof(CountSteppers32361)!="number") CountSteppers32361 = -1; if (typeof(LeadingZeros32361)=="undefined") LeadingZeros32361 = true; CountSteppers32361 = Math.ceil(CountSteppers32361); if (CountSteppers32361 == 0) CountActives32361 = false; var SetTimeOutPeriods32361 = (Math.abs(CountSteppers32361)-1)*1000 + 990; puti(BackColors32361, ForeColors32361); var dthens32361 = new Date(TargetDates32361); var dnows32361 = new Date("06/03/2025 9:28:30 PM"); if(CountSteppers32361>0) ddiffs32361 = new Date(dnows32361-dthens32361); else ddiffs32361 = new Date(dthens32361-dnows32361); gsecss32361 = Math.floor(ddiffs32361.valueOf()/1000); CountBacks32361(gsecss32361);