1) Attach an onclick handler to all your links.
2) In your winOPEN() method, check if the checkbox was checked. If so, get the value from the link and open it in a new window.
Here's the fix: http://pastebin.com/cgxmbwfG
Read the comments.
In programming, you have to write things correctly or else it will not work. For example,
- document.getElementById NOT document.getElementID
- document.getElementById() accepts only one argument
- html files always has a tag
Also, know that modern browsers will NOT open popup windows. Instead they will open them in a new tab. IE might still though I am not sure.