// C.O.U.N.T.E.R #1 (positive time offset)
// (c) asymmetric.warfare@gmx.net 2008
function $(ID) { 
return document.getElementById(ID) 
}
function datediff(y, o, d, h, m, s) {
var n=new Date((new Date(y,o,d,h,m,s)).getTime()-(new Date()).getTime());
var match=/\s+0?(\d+):0?(\d+):0?(\d+)/.exec(n.toString());
this.y=n.getFullYear()-1970; this.o=n.getMonth(); 
this.d=n.getDate()-1; this.h=match[1]; this.m=match[2]; 
this.s=match[3]; 
}
function update(p1, p2, y, o, d, h, m, s) {
with(new datediff(y,o-1,d,h,m,s)) {
$(p1).innerHTML=(y?y+' Jahr(e), ':'')+(o?o+' Monat(e), ':'')+(d?d+'':'')
$(p2).innerHTML=(h?h+'&nbsp;&nbsp;&nbsp;':'')+m+'&nbsp; '+s+'';
}
}
window.onload = setInterval(function(){update('c1','c2',2010,02,28,09,00,00)},1000);



