BASE href problem in javascript in IE

This first link opens a copy of this page in a new window using a standard <a> tag

This second link should do the same, but using javascript. This works fine in Mozilla, but in IE, returns a page not found as the URL opened is wrong.