function setEnd(jahr,monat,tag,stunde,minute,sekunde){
	return new Date(jahr, monat - 1, tag, stunde, minute, sekunde);
}
function zweistellig(n) {
  s = "";
  if (n < 10) s += "0";
  return (s + n).toString();
}

function countdown(idTage,idZeit) {
  d = new Date();
  zeinh = Math.floor(end.getTime() - d.getTime());
  
  if(zeinh > 0) {
    zeinh = Math.floor(zeinh/1000);
    seconds = zweistellig(zeinh%60); 
	zeinh = Math.floor(zeinh/60);
    minutes = zweistellig(zeinh%60); 
	zeinh = Math.floor(zeinh/60);
    hours = zweistellig(zeinh%24); 
	zeinh = Math.floor(zeinh/24);
    days = zeinh;
	if (days==1){
		document.getElementById(idTage).innerHTML = days + ' Tag';
	}else{
		document.getElementById(idTage).innerHTML = days + ' Tage';
    }
	document.getElementById(idZeit).innerHTML = hours + ':' + minutes + ':' + seconds;
	setTimeout("countdown('"+idTage+"','"+idZeit+"')", 1000);
  }
}
//var end = setEnd(2010, 11, 27, 23, 0, 0);
//countdown('c1','c2');
//<span id="c1" style="FONT: bold 30px arial"></span>
//<span id="c2" style="font: bold 25px arial">;</span>

