Script working on one page but not on another

Hi all,

I hope I’m in the right forum here - I am using a mixture of Javascript and CSS to create an Overlay. I have 12 pages with 2 different overlays on each page. I’ll explain in a little more detail. Each page represents a Star Sign - This is the 12 pages. On each sign there is an overlay that pops up when you click the “Send to a Friend” link and these all work perfectly. It’s a different overlay for each page.

The second overlay is for the “Newsletter” signup in the right hand sidebar. I use exactly the same method as I do with the send to a friend links. The one for the Aquarius page works but the one for all the other signs does not. The code I have used is as follows:

At the top of the page just after the opening <body> tag:

<div id="newsletterbox" style="display: none;"></div>

I have checked all pages and they are identical.

The link for the Newsletter Signup:

Click <a href="#" onclick='return newsletterbox();'>HERE</a> to signup now.

I have checked all pages and they are identical.

The code at the bottom of the page, before the closing <body> tag:

<script>
function newsletterbox(){
	var thediv=document.getElementById('newsletterbox'),txt="";
	if(thediv.style.display == "none"){
		txt =  '<ul class="close-form-link"><li><a class="overlay-close" href="#" onclick="return newsletterbox();" >Close Form</a></li></ul> <br /><br /><iframe frameborder="0" scrolling="no" width="700px" height="600px" src="http://togevi.com/newsletter-signup-aquarius.html"></iframe>';
		thediv.style.display = "";
	}
    else{
	 thediv.style.display = "none";
    }
  	thediv.innerHTML = txt;
	return false;
}
</script>

I have checked all pages and they are identical, except for the src of the iframe which is different for each star sign page. All src locations are correct and are uploaded and accessible via the web. For instance on the Aries page, the src is “http://togevi.com/newsletter-signup-aries.html” - This page does exist and is referenced correctly.

This is exactly the same method used to create the “Send to a friend” links which are also different for each of the pages so I don’t understand why it won’t work with this.

Could somebody please help?

The page that works is http://togevi.com/aquarius
One of the pages that won’t work is http://togevi.com/aries (In fact, choose any of the pages from the “choose another sign” drop down and they will all display the same problem.

The link that should bring up the overlay for the newsletter signup is on the right hand side at the bottom of the sidebar.

Look forward to hearing some suggestions.

The solution is waiting for you in the error console. Click on your signup link first.