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 (LeadingZeros32005 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32005(secs) { if (secs < 0) { document.getElementById("cntdwns32005").innerHTML = FinishMessages32005; return; } DisplayStrs32005 = DisplayFormats32005.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32005 = DisplayStrs32005.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32005 = DisplayStrs32005.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32005 = DisplayStrs32005.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32005").innerHTML = DisplayStrs32005; if (CountActives32005) //alert(SetTimeOutPeriods32005); setTimeout("CountBacks32005(" + (secs+CountSteppers32005) + ")", SetTimeOutPeriods32005); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32005)=="undefined") BackColors32005 = ""; if (typeof(ForeColors32005)=="undefined") ForeColors32005= "white"; if (typeof(TargetDates32005)=="undefined") TargetDates32005 = "04/02/2025 11:00:00 PM"; if (typeof(DisplayFormats32005)=="undefined") DisplayFormats32005 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32005)=="undefined") CountActives32005 = true; if (typeof(FinishMessages32005)=="undefined") FinishMessages32005 = ""; if (typeof(CountSteppers32005)!="number") CountSteppers32005 = -1; if (typeof(LeadingZeros32005)=="undefined") LeadingZeros32005 = true; CountSteppers32005 = Math.ceil(CountSteppers32005); if (CountSteppers32005 == 0) CountActives32005 = false; var SetTimeOutPeriods32005 = (Math.abs(CountSteppers32005)-1)*1000 + 990; puti(BackColors32005, ForeColors32005); var dthens32005 = new Date(TargetDates32005); var dnows32005 = new Date("04/02/2025 4:03:32 AM"); if(CountSteppers32005>0) ddiffs32005 = new Date(dnows32005-dthens32005); else ddiffs32005 = new Date(dthens32005-dnows32005); gsecss32005 = Math.floor(ddiffs32005.valueOf()/1000); CountBacks32005(gsecss32005);