open url in new windows only for http, https and ftp protocols