I have a script which displays the current date in each page of mysite. In all pages i call the script as follows

<script language="javascript" src="http://mydomain.com/scripts/dispdate.js"></script>

This works fine on IE but not in NS.

The error it gave me in NS is :

JavaScript Error:
http://mydomain.com/scripts/dispdate.js, line
1:

illegal character.

9
.^



The line 1 of the JS file is

var montharray=new Array(all months);

However if i include contents of the script file directly in each page without using the src attribute, it works fine in both IE and NS.

Whats the problem?