Javascript call not working in Safari

I have a dynamic text field where I create an html link based on a couple of pieces of data.

Here’s an example of the code for the link:

var aTag:String = "<p class = 'landing'><a href=\"javascript:openVidPlayer('/vidplayer.html?video="+sel.v_id+"&category="+sel.cat+"');\" target = '_parent'>"+sel.ttl+"</a></p>";

My problem is that the popup works fine in Windows IE, Mac/Win Firefox just fine. It won’t work in Safari. It shows as link, but when you click, nothing happens. Can anyone think of a reason why this wouldn’t work?

I also have an onPress handler on a movieclip that won’t work in Safari:

main_mc.onPress = function() {
		getURL("javascript:openVidPlayer('/vidplayer.html?video=" + sel.v_id + "&category=" + sel.cat + "');",  "_parent");
	};