Fixed bug WEB-169

target="_blank" has been deprecated, see for example http://www.sitepoint.com/standards-compliant-world/
Have replaced it with javascript.