JavaScript routine for opening external anchors in a new tab