function vollmond(){
var black =  "black.gif";
var white =  "gelb.gif";

var height=1;
var size = 20;
var i;
var currentDate  = new Date();
var x = currentDate;
currentDate.setTime(currentDate.getTime() + (currentDate.getTimezoneOffset()*60000));
var blueMoonDate = new Date(2007, 0, 3, 13, 58, 30);
var lunarPeriod  = 29.012*(24*3600*1000) + 12*(3600*1000) + 44.05*(60*1000);
var moonPhaseTime = (currentDate.getTime() - blueMoonDate.getTime()) % lunarPeriod;
var percentRaw = (moonPhaseTime / lunarPeriod);
var percent    = Math.round(100*percentRaw) / 100;
var percentBy2 = Math.round(200*percentRaw);
var left  = (percentRaw >= 0.5) ? black : white;
var right = (percentRaw >= 0.5) ? white : black;
var time = Math.round((lunarPeriod-moonPhaseTime)/(24*3600*1000));
document.write("<center>");
if (percentBy2 > 100) {
percentBy2 = percentBy2 - 100;
}
for (i = -(size-1); i < size; ++i) {
var wid=2*parseFloat(Math.sqrt((size*size)-(i*i)));
if (percentBy2 != 100)
document.write ("<img src="+left +" height=1 width="+(wid*((100-percentBy2)/100))+">");
if (percentBy2 != 0)
document.write("<img src="+right+" height=1 width="+(wid*((percentBy2)/100))+">");
document.write("<br>");
}

}

function mondbilder()
{
var pics = "01.jpg,02.jpg,03.jpg,05.jpg,04.jpg,48.jpg,47.jpg,erdaufgang.jpg,em.jpg,earthmo5.jpg,earthmo3.jpg,earthmo2.jpg,earthjup.gif,2004lunareclipse.jpg,iss010e18585.jpg";
var pic  = pics.split(",");
var AnzahlBilder=15;
var PfadZumBild="images/" // Verzeichnis der Bilder, hier Bilder (Slash nicht vergessen), ansonsten "./"
var r    = parseInt((Math.random() * 100) % AnzahlBilder );   /* bei x Bildern */
document.write("<img src="+PfadZumBild+pic[r]+ " width='165'   alt='Erde-Mond'>;");  // height='131' 
}