ok buddy its easy
what you have to do is add a script tag to your code
script tag below for attribute src (where i have given as myJS.js) you have to give the path of the javascript file
actually in VS 2008 after typing src=" if u press CTRL + Space u can pick the url by selecting the Pick URL Option
<script type="text\javascript" src="myJS.js" />