Hi,
I have no idea why it returns two Mar since it grabs the info from the Date Object and never modifies it. (just cuts away some info using .substr())
However, to fix it you could do like this:
function writeMonthOptions()
{
var Months = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","A ug","Sep","Oct","Nov","Dec")
for (monthCounter = 0; monthCounter < Months.length; monthCounter++)
{
document.write('<OPTION value=' + (monthCounter+1) + '>' + Months[monthCounter]);
}
}