JavaScript in Visual Studio

I’m building a website in ASP.NET (with C#) using Visual Studio 2005. I’m trying to use a JavaScript but I’m can’t get it to work.

The problem is that VS tries to compile my JavaScript. Since JavaScript syntax is kind of “loose” VS won’t accept it. The first thing it finds is strings written between ’ ’ instead of " ". This is valid JavaScript, but VS don’t like it.

Why is VS trying to compile my Javascript? Is it really suppose to do that? Can I make it ignore my JavaScript while compiling?

I’m using VS built-in webserver to view my webpage.

There is nothing wrong with the JavaScript. It is flashobject.js that I use to insert my Flash image-gallery into my webpage so that the user don’t have to click it before using it. I’ve used this script before without any problems.

I’m really greatful for any help!!