Well, bkellum, sorry about that but I had no idea what the "STS" part was, I was just searching for a solution to the popup window not working because I didn't get any answer to the first post about it - then I found this one.
And I wouldn't mind installing the STS now that I know what it stands for, if I knew where to get it. Now that I've heard that, I'm thinking that the previous head code <!--$headcontent--> probably doesn't apply to what I'm using, which is without the STS. I'm assuming I'd still need a fix for the javascript though.