Alrite-I tried adding a target="_blank" attribute to my anchor tag. A new window is launched but with the "Page cannot be displayed" message. The address in the browser shows "javascript:createDispatch(xxxx)" where xxx is the value I passed.
Looks like execution of the JS function is not completed-no cgi script is called when I add the target attr. The browser just tries to display the JS function.