Are you trying to open a new window with a K9shows.php?code script?
Or are you trying to run the program K9shows.php from JS?
Are you trying to pass a query string from the command line with ?code=
at the end of the command line?
I'm not sure I understand what you are trying to accomplish.