<!-- 
var black = "black.gif";
var white = "white.gif";
var height=1;
var size = 50;
var i;
var currentDate  = new Date();
var x = currentDate;
currentDate.setTime(currentDate.getTime() + (currentDate.getTimezoneOffset()*60000));
var blueMoonDate = new Date(96, 1, 3, 16, 15, 0);
var lunarPeriod  = 29*(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>");
}
document.write("<BR><FONT color= Red SIZE=4>Next Full Moon is in about ",time," day");
if (time > 1) document.write("s");
document.write("</font>");
document.write("<BR><FONT color= Red SIZE=5>Time of ");
if (time == 0 || time == 30 ) document.write("<BR><FONT SIZE=5>POONAM");
if (time == 15 ) document.write("<BR><FONT SIZE=5>AMASH");
if (time == 16 || time == 1) document.write("<BR><FONT SIZE=5>Chaudash");
if (time == 17 || time == 2) document.write("<BR><FONT SIZE=5>Terash");
if (time == 18 || time == 3) document.write("<BR><FONT SIZE=5>Barash");
if (time == 19 || time == 4) document.write("<BR><FONT SIZE=5>AGYARASH");
if (time == 20 || time == 5) document.write("<BR><FONT SIZE=5>Dasham");
if (time == 21 || time == 6) document.write("<BR><FONT SIZE=5>Nome");
if (time == 22 || time == 7) document.write("<BR><FONT SIZE=5>Atham");
if (time == 23 || time == 8) document.write("<BR><FONT SIZE=5>Satam");
if (time == 24 || time == 9) document.write("<BR><FONT SIZE=5>Chath");
if (time == 25 || time == 10) document.write("<BR><FONT SIZE=5>Pacham");
if (time == 26 || time == 11) document.write("<BR><FONT SIZE=5>CHAUTH");
if (time == 27 || time == 12) document.write("<BR><FONT SIZE=5>Trij");
if (time == 28 || time == 13) document.write("<BR><FONT SIZE=5>Bij");
if (time == 29 || time == 14) document.write("<BR><FONT SIZE=5>Akadashi");
document.write("</font>");
//  End -->
