<!--
theDate = new Date()
theYear = theDate.getYear()
theMonth = theDate.getMonth()+1
theDay = theDate.getDate()
theMoonAge = getMoonAge(theYear, theMonth, theDay)
theMoonPhase = getMoonPhase(theMoonAge)
document.write(""+theMoonPhase+"<BR>")
theMoonPhase = getMoonPhaseImg(theMoonAge)
document.write("<P>Dagens datum: "+getLongDate(theDate)+"<br>") 
document.write("Nästa <B>ny</B>måne: ")
document.write(""+getLongDate( getNextNew(theMoonAge) )+"<br>")
document.write("Nästa <B>full</B>måne: ")
document.write(""+getLongDate(getNextFull(theMoonAge))+"<br>")
document.write("<BR CLEAR=ALL>")
//-->