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 (LeadingZeros32085 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32085(secs) { if (secs < 0) { document.getElementById("cntdwns32085").innerHTML = FinishMessages32085; return; } DisplayStrs32085 = DisplayFormats32085.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32085 = DisplayStrs32085.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32085 = DisplayStrs32085.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32085 = DisplayStrs32085.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32085").innerHTML = DisplayStrs32085; if (CountActives32085) //alert(SetTimeOutPeriods32085); setTimeout("CountBacks32085(" + (secs+CountSteppers32085) + ")", SetTimeOutPeriods32085); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32085)=="undefined") BackColors32085 = ""; if (typeof(ForeColors32085)=="undefined") ForeColors32085= "white"; if (typeof(TargetDates32085)=="undefined") TargetDates32085 = "04/03/2025 10:00:00 PM"; if (typeof(DisplayFormats32085)=="undefined") DisplayFormats32085 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32085)=="undefined") CountActives32085 = true; if (typeof(FinishMessages32085)=="undefined") FinishMessages32085 = ""; if (typeof(CountSteppers32085)!="number") CountSteppers32085 = -1; if (typeof(LeadingZeros32085)=="undefined") LeadingZeros32085 = true; CountSteppers32085 = Math.ceil(CountSteppers32085); if (CountSteppers32085 == 0) CountActives32085 = false; var SetTimeOutPeriods32085 = (Math.abs(CountSteppers32085)-1)*1000 + 990; puti(BackColors32085, ForeColors32085); var dthens32085 = new Date(TargetDates32085); var dnows32085 = new Date("04/02/2025 12:55:25 PM"); if(CountSteppers32085>0) ddiffs32085 = new Date(dnows32085-dthens32085); else ddiffs32085 = new Date(dthens32085-dnows32085); gsecss32085 = Math.floor(ddiffs32085.valueOf()/1000); CountBacks32085(gsecss32085);