On release code valid?

This on release code has two getURLs and Google Analytics seem isn’t tracking the “clicked” ads. I’m wondering if more than one getURL in an event function a valid code or it doesn’t work that way? What’s alternative solution if this code is not valid?:

box.onRelease = function():Void {
            getURL("javascript:pageTracker._trackPageview(trackad[p]);");
			getURL(link[p], "_blank");

appreciate any help in advance!

Friggin’ Mick