<div title="more disposal ban info" style="background-image:url('images/countdown.png'); background-repeat:no-repeat; height:62px; width:250px; padding-top:47px; text-align:center; font:31px Arial Black; color:#ffffff; cursor:pointer; " onClick="window.location='http://p2pays.org/BannedMaterials/index.asp';""><script type="text/javascript">
<!-- //start
dateFuture = new Date(2009,9,1,0,0,0);
// TESTING: comment out the line below to print out the "dateFuture" for testing purposes
//document.write(dateFuture +"<br />");
//###################################
//nothing beyond this point
function padZeros(theNumber, max) {
var numStr = String(theNumber);
while ( numStr.length < max) {
numStr = '0' + numStr;
}
return numStr;
}
function GetCount(){
dateNow = new Date(); //grab current date
amount = dateFuture.getTime() - dateNow.getTime(); //calc milliseconds between dates
delete dateNow;
// time is already past
if(amount < 0){
document.getElementById('countbox').innerHTML="Now!";
}
// date is still good
else{
days=0;hours=0;mins=0;secs=0;out="";
amount = Math.floor(amount/1000);//kill the "milliseconds" so just secs
days=Math.floor(amount/86400);//days
amount=amount%86400;
hours=Math.floor(amount/3600);//hours
amount=amount%3600;
mins=Math.floor(amount/60);//minutes
amount=amount%60;
secs=Math.floor(amount);//seconds
if(days != 0){out += padZeros(days, 2) +":";}
if(days != 0 || hours != 0){out += padZeros(hours, 2) +":";}
if(days != 0 || hours != 0 || mins != 0){out += padZeros(mins, 2) +":";}
out += padZeros(secs, 2);
document.getElementById('countbox').innerHTML=out;
setTimeout("GetCount()", 1000);
}
}
window.onload=GetCount;//call when everything has loaded
//-->
</script>
<div id="countbox"></div></div>