Query String + window.open=problem

I am making a website.
the url of the site is:
www.webpage.com/index.asp?cat=3

I want to open a new page in a popup window. But its not working.

the code on the page:
<a href="#" onclick=“javascript:window.open(‘test.asp’,‘testpage’,‘width=400,height=200’)”>test</a>

can someone pls tell me what is wrong and what is the fix.