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 (LeadingZeros32595 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32595(secs) { if (secs < 0) { document.getElementById("cntdwns32595").innerHTML = FinishMessages32595; return; } DisplayStrs32595 = DisplayFormats32595.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32595 = DisplayStrs32595.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32595 = DisplayStrs32595.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32595 = DisplayStrs32595.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32595").innerHTML = DisplayStrs32595; if (CountActives32595) //alert(SetTimeOutPeriods32595); setTimeout("CountBacks32595(" + (secs+CountSteppers32595) + ")", SetTimeOutPeriods32595); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32595)=="undefined") BackColors32595 = ""; if (typeof(ForeColors32595)=="undefined") ForeColors32595= "white"; if (typeof(TargetDates32595)=="undefined") TargetDates32595 = "07/25/2025 10:00:00 PM"; if (typeof(DisplayFormats32595)=="undefined") DisplayFormats32595 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32595)=="undefined") CountActives32595 = true; if (typeof(FinishMessages32595)=="undefined") FinishMessages32595 = ""; if (typeof(CountSteppers32595)!="number") CountSteppers32595 = -1; if (typeof(LeadingZeros32595)=="undefined") LeadingZeros32595 = true; CountSteppers32595 = Math.ceil(CountSteppers32595); if (CountSteppers32595 == 0) CountActives32595 = false; var SetTimeOutPeriods32595 = (Math.abs(CountSteppers32595)-1)*1000 + 990; puti(BackColors32595, ForeColors32595); var dthens32595 = new Date(TargetDates32595); var dnows32595 = new Date("07/22/2025 3:28:11 PM"); if(CountSteppers32595>0) ddiffs32595 = new Date(dnows32595-dthens32595); else ddiffs32595 = new Date(dthens32595-dnows32595); gsecss32595 = Math.floor(ddiffs32595.valueOf()/1000); CountBacks32595(gsecss32595);