Jscript to show month / year to comply with Firefox Mozilla

may 10th 2006

I´ve employed the script at the bottom of this page to show month/year ;
It works fine with IE , Opera and Netscape if “Display like IE” menu is selected ;
is there a way to modify this script to render it compatible with Firefox or even another script that
works with all main browsers ?

<script type=“text/javascript”>
var n = new Date(), m = [‘Jan’, ‘Feb’, ‘March’, ‘April’, ‘May’, ‘June’, ‘July’, ‘August’, ‘September’,
‘October’, ‘November’, ‘December’];
document.write(m[n.getMonth()] + ’ ’ + n.getFullYear());

pardon my previous post , I should be forty winks , the script was supposed to be inserted somewhere into the body tag.
I tried to modify the script to [U]show only month & year [/U](I do not need the date) ;
it has not worked .
any hint ?