Javascript: popup not working in IE

Alright, this is just one more reason why I hate IE…-.-

Alright, I have a single js function that I use for all of my popup’s

this is the funcion…

<script language=“JavaScript” type=“text/JavaScript”>
<!–
function popUp(URL,winName,features) {
window.open(URL,winName,features);
}
//–>
</script>

…nothing fancy.

Now when i have a link like…

<a href=“javascript:popUp(‘display.php?display=popup&type=url&id=<?php echo mysql_result($query,$i,“id”);?>’,‘Ad-Core’,‘resizable=yes,width=500,height=200,scrollbars=yes’);”>

something like that, it works perfectly in firefox(as always), but it does nothing in IE. I’m really confused.

Here’s an example of what the link looks like on the executed page.

javascript:popUp(‘display.php?display=popup&type=url&id=6’,‘Ad-Core’,‘resizable=yes,width=500,height=200,scrollbars=yes’);

I really dont see whats wrong with it.

-Naaman