Hi I have a problem which I cant seem to get my head around.

Let me just quickly explain the scenario.

I have a website which contains a left navigation section where users click to access different parts of the site.

This left navigation section is done by using:

<script type="text/javascript" src="ItemName.js"></script>

on all the pages that I want the navigation bar to appear.

In the ItemName.js File I am using:

document.write("Insert Html code here");

This all works fine for me when I have a html code to insert in there as i just replace the "" in the html codes with '' and then it works.

However, Now i want to put javascript contents into the Itemname.js File as i want to add a google adsense onto it. However google adsense code is given in javascript and not html.

This is where I am confused and dont know what to do.

Is there a way that i can use the same method to include the google javascript in my ItemName.js file?

I want to do this because then i wont need to go through 100+ webpages and edit and update them all with the google adsense code.

The google adsense code is:

<script type="text/javascript"><!--
google_ad_client = "pub-0044630742873078";
/* Hitman Reborn Kun */
google_ad_slot = "7892258453";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

Hope someone can help. Thank you for your help in advance.